From: Andries.Brouwer@cwi.nl
To: tigran@veritas.com, torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [patch-2.4.0-test13-pre3] rootfs boot param. support
Date: Mon, 18 Dec 2000 15:17:10 +0100 (MET) [thread overview]
Message-ID: <UTC200012181417.PAA167011.aeb@aak.cwi.nl> (raw)
From: Tigran Aivazian <tigran@veritas.com>
+ rootfs= [KNL] Use filesystem type specified (e.g. rootfs=ext2) for root.
(i) I prefer "rootfstype". Indeed, "rootfs" is ambiguous.
It gives some property of the root filesystem, but which?
+static char rootfs[128] __initdata = "ext2";
(ii) It is a bad idea to arbitrarily select "ext2".
Moreover, we want to recognize the case where a boot option was given,
see below.
+ fs_type = get_fs_type(rootfs);
+ if (fs_type) {
+ sb = read_super(ROOT_DEV,bdev,fs_type,root_mountflags,NULL,1);
+ if (sb)
+ goto mount_it;
+ }
(iii) I probably give the rootfstype explicitly because bad things
(like disk corruption) happen when the kernel misrecognizes some
filesystem, and perhaps starts updating access times or so.
Thus, if the boot option rootfstype is given, I prefer a boot failure
over a kernel attempt to try all filesystems it knows about, just like
mount(8) only will start guessing when no explicit type was given.
Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next reply other threads:[~2000-12-18 14:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-18 14:17 Andries.Brouwer [this message]
2000-12-18 15:22 ` Peter Samuelson
2000-12-18 15:36 ` Tigran Aivazian
2000-12-18 16:00 ` [patch-2.4.0-test13-pre3] rootfs (2nd attempt) Tigran Aivazian
2000-12-18 16:03 ` Oops " Tigran Aivazian
2000-12-18 18:23 ` Andreas Dilger
2000-12-18 18:31 ` [final] " Tigran Aivazian
2000-12-19 7:03 ` Is there a devfs patch for 2.2.18? Tri D. Hoang
[not found] <Pine.LNX.4.21.0012111102480.801-100000@penguin.homenet>
2000-12-18 11:56 ` [patch-2.4.0-test13-pre3] rootfs boot param. support Tigran Aivazian
2000-12-18 12:11 ` Andrzej Krzysztofowicz
2000-12-18 12:45 ` Peter Samuelson
2000-12-18 13:24 ` Tigran Aivazian
2000-12-18 15:12 ` Peter Samuelson
2000-12-18 15:21 ` 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=UTC200012181417.PAA167011.aeb@aak.cwi.nl \
--to=andries.brouwer@cwi.nl \
--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®