patch-1.3.85 linux/fs/super.c

Next file: linux/include/asm-sparc/floppy.h
Previous file: linux/fs/read_write.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.84/linux/fs/super.c linux/fs/super.c
@@ -860,6 +860,11 @@
 				current->fs->root = inode;
 				ROOT_DEV = sb->s_dev;
 				printk (KERN_NOTICE "VFS: Mounted root (nfs filesystem).\n");
+				vfsmnt = add_vfsmnt(ROOT_DEV, "rootfs", "/");
+				if (!vfsmnt)
+					panic("VFS: add_vfsmnt failed for NFS root.\n");
+				vfsmnt->mnt_sb = sb;
+				vfsmnt->mnt_flags = sb->s_flags;
 				return;
 			}
 			sb->s_dev = 0;

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