patch-2.0.21 linux/fs/super.c

Next file: linux/include/asm-i386/semaphore.h
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.20/linux/fs/super.c linux/fs/super.c
@@ -948,7 +948,7 @@
 				current->fs->root = inode;
 				ROOT_DEV = sb->s_dev;
 				printk (KERN_NOTICE "VFS: Mounted root (nfs filesystem).\n");
-				vfsmnt = add_vfsmnt(ROOT_DEV, "rootfs", "/");
+				vfsmnt = add_vfsmnt(ROOT_DEV, "/dev/root", "/");
 				if (!vfsmnt)
 					panic("VFS: add_vfsmnt failed for NFS root.\n");
 				vfsmnt->mnt_sb = sb;
@@ -1010,7 +1010,7 @@
 			printk ("VFS: Mounted root (%s filesystem)%s.\n",
 				fs_type->name,
 				(sb->s_flags & MS_RDONLY) ? " readonly" : "");
-			vfsmnt = add_vfsmnt(ROOT_DEV, "rootfs", "/");
+			vfsmnt = add_vfsmnt(ROOT_DEV, "/dev/root", "/");
 			if (!vfsmnt)
 				panic("VFS: add_vfsmnt failed for root fs");
 			vfsmnt->mnt_sb = sb;
@@ -1075,7 +1075,7 @@
 	}
 	iput(old_root); /* sb->s_covered */
 	remove_vfsmnt(old_root_dev);
-	vfsmnt = add_vfsmnt(old_root_dev,"old_rootfs",put_old);
+	vfsmnt = add_vfsmnt(old_root_dev,"/dev/root.old",put_old);
 	if (!vfsmnt) printk(KERN_CRIT "Trouble: add_vfsmnt failed\n");
 	else {
 		vfsmnt->mnt_sb = old_root->i_sb;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov