mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <andrewm@uow.edu.au>
To: Tigran Aivazian <tigran@veritas.com>
Cc: Linus Torvalds <torvalds@transmeta.com>, linux-kernel@vger.kernel.org
Subject: Re: [patch] rootfstype= and rootcd= boot options.
Date: Mon, 23 Jul 2001 12:21:34 +1000	[thread overview]
Message-ID: <3B5B8A2E.CFD6F118@uow.edu.au> (raw)
In-Reply-To: <Pine.LNX.4.21.0107231107350.612-100000@penguin.homenet>

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);

  reply	other threads:[~2001-07-23 12:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-23 10:12 Tigran Aivazian
2001-07-23  2:21 ` Andrew Morton [this message]
2001-07-23 12:59   ` [new merged patch] " Tigran Aivazian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B5B8A2E.CFD6F118@uow.edu.au \
    --to=andrewm@uow.edu.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tigran@veritas.com \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®