Re: [patch] rootfstype= and rootcd= boot options.

Andrew Morton (andrewm@uow.edu.au)
Mon, 23 Jul 2001 12:21:34 +1000


Tigran Aivazian wrote:
>
> Hi Linus,
>
> This patch adds two boot options: rootfstype= and rootcd=.
>

That would be useful for ext2/ext3 interoperability too.

ext3 also need to ability to pass mount options to the
root fs. Any chance of munging these two things together?

--- linux-2.4.7/fs/super.c Wed Jul 4 18:21:31 2001
+++ lk-ext3/fs/super.c Fri Jun 29 02:09:31 2001
@@ -1467,6 +1467,17 @@ out1:
return retval;
}

+static char *root_mount_data;
+static int __init root_data_setup(char *line)
+{
+ static char buffer[128];
+
+ strcpy(buffer, line);
+ root_mount_data = buffer;
+ return 1;
+}
+__setup("rootflags=", root_data_setup);
+
void __init mount_root(void)
{
struct file_system_type * fs_type;
@@ -1594,7 +1605,8 @@ skip_nfs:
if (!try_inc_mod_count(fs_type->owner))
continue;
read_unlock(&file_systems_lock);
- sb = read_super(ROOT_DEV,bdev,fs_type,root_mountflags,NULL,1);
+ sb = read_super(ROOT_DEV,bdev,fs_type,root_mountflags,
+ root_mount_data,1);
if (sb)
goto mount_it;
read_lock(&file_systems_lock);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/