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
-  Lines: 12
 -  Date:
Mon Apr  8 15:57:11 1996
 -  Orig file: 
v1.3.84/linux/fs/super.c
 -  Orig date: 
Sun Mar 24 20:07:00 1996
 
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