patch-2.1.79 linux/fs/super.c
Next file: linux/fs/sysv/inode.c
Previous file: linux/fs/proc/root.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Mon Jan 12 15:12:00 1998
- Orig file:
v2.1.78/linux/fs/super.c
- Orig date:
Sun Dec 21 22:36:16 1997
diff -u --recursive --new-file v2.1.78/linux/fs/super.c linux/fs/super.c
@@ -1064,7 +1064,11 @@
ROOT_DEV = 0;
if ((fs_type = get_fs_type("nfs"))) {
if ((vfsmnt = add_vfsmnt(ROOT_DEV, "/dev/root", "/"))) {
- sb = vfsmnt->mnt_sb;
+
+ sb = &super_blocks[0];
+ while (sb->s_dev) sb++;
+ vfsmnt->mnt_sb = sb;
+
sb->s_dev = get_unnamed_dev();
sb->s_flags = root_mountflags & ~MS_RDONLY;
if (nfs_root_mount(sb) >= 0) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov