patch-pre2.0.9 linux/fs/nfs/dir.c

Next file: linux/fs/read_write.c
Previous file: linux/fs/isofs/util.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.8/linux/fs/nfs/dir.c linux/fs/nfs/dir.c
@@ -476,8 +476,12 @@
 	sattr.atime.seconds = sattr.mtime.seconds = (unsigned) -1;
 	error = nfs_proc_mkdir(NFS_SERVER(dir), NFS_FH(dir),
 		name, &sattr, &fhandle, &fattr);
-	if (!error)
-		nfs_lookup_cache_add(dir, name, &fhandle, &fattr);
+	if (!error) {
+		if (fattr.fileid == dir->i_ino)
+			printk("Sony NewsOS 4.1R buggy nfs server?\n");
+		else
+			nfs_lookup_cache_add(dir, name, &fhandle, &fattr);
+	}
 	iput(dir);
 	return error;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this