public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [patch-2.4.0-test13-pre3] rootfs boot param. support
@ 2000-12-18 14:17 Andries.Brouwer
  2000-12-18 15:22 ` Peter Samuelson
  0 siblings, 1 reply; 8+ messages in thread
From: Andries.Brouwer @ 2000-12-18 14:17 UTC (permalink / raw)
  To: tigran, torvalds; +Cc: linux-kernel

    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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-12-19  7:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-18 14:17 [patch-2.4.0-test13-pre3] rootfs boot param. support Andries.Brouwer
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox