patch-2.4.13 linux/fs/super.c
Next file: linux/fs/udf/balloc.c
Previous file: linux/fs/reiserfs/tail_conversion.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Sat Oct 20 19:14:42 2001
- Orig file:
v2.4.12/linux/fs/super.c
- Orig date:
Thu Oct 11 08:02:26 2001
diff -u --recursive --new-file v2.4.12/linux/fs/super.c linux/fs/super.c
@@ -681,6 +681,7 @@
} else {
kdev_t dev = get_unnamed_dev();
if (!dev) {
+ spin_unlock(&sb_lock);
put_super(s);
return ERR_PTR(-EMFILE);
}
@@ -865,13 +866,21 @@
return do_kern_mount((char *)type->name, 0, (char *)type->name, NULL);
}
+static char * __initdata root_mount_data;
+static int __init root_data_setup(char *str)
+{
+ root_mount_data = str;
+ return 1;
+}
+
static char * __initdata root_fs_names;
static int __init fs_names_setup(char *str)
{
root_fs_names = str;
- return 0;
+ return 1;
}
+__setup("rootflags=", root_data_setup);
__setup("rootfstype=", fs_names_setup);
static void __init get_fs_names(char *page)
@@ -1022,7 +1031,8 @@
struct file_system_type * fs_type = get_fs_type(p);
if (!fs_type)
continue;
- sb = read_super(ROOT_DEV,bdev,fs_type,root_mountflags,NULL);
+ sb = read_super(ROOT_DEV, bdev, fs_type,
+ root_mountflags, root_mount_data);
if (sb)
goto mount_it;
put_filesystem(fs_type);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)