patch-2.3.2 linux/fs/nfsd/nfsfh.c

Next file: linux/fs/smbfs/inode.c
Previous file: linux/fs/ncpfs/sock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.1/linux/fs/nfsd/nfsfh.c linux/fs/nfsd/nfsfh.c
@@ -407,6 +407,9 @@
 	sb = get_super(dev);
 	if (!sb)
 		goto out_page;
+	result = ERR_PTR(-ENOSYS);
+	if (!sb->s_op->read_inode)	/* No working iget(), e.g. FAT */
+		goto out_page;
 	root = dget(sb->s_root);
 	root_ino = root->d_inode->i_ino; /* usually 2 */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)