linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.0-test3-mm1 and rootflags
@ 2003-08-12 18:55 Valdis.Kletnieks
  2003-08-12 21:25 ` Andrew Morton
  0 siblings, 1 reply; 8+ messages in thread
From: Valdis.Kletnieks @ 2003-08-12 18:55 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 756 bytes --]

OK.. I'm stumped..

While testing something, I tried to boot with 'rootflags=noatime', and
found the system wouldn't boot, as ext3, ext2, and reiserfs all failed to
recognize the option.  Looking at the code in fs/ext3/super.c:parse_options()
and init/do_mounts.c:root_data_setup(), it appears to be impossible
to set any of the filesystem-independent flags via rootflags, which explains
the special-case code for the 'ro' and 'rw' flags.  However, there doesn't
seem to be any way to pass nodev, noatime, nodiratime, or any of the other
flags.  (And yes, all 3 of those make sense in my environment - it's a laptop
and I don't need atime, and I use devfs so nodev on the root makes sense too).

Am I missing something?  Or in fact, is this an non-doable?

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: 2.6.0-test3-mm1 and rootflags
@ 2003-08-13  6:10 "Andrey Borzenkov" 
  0 siblings, 0 replies; 8+ messages in thread
From: "Andrey Borzenkov"  @ 2003-08-13  6:10 UTC (permalink / raw)
  To: Valdis.Kletnieks; +Cc: linux-kernel


> If there's a consensus that a 'rootopts=' would be a Good Thing, I'll write a
> patch.  If not, I'll just fix the initial value of root_mountflags > in init/do_mount.c ;)

Mandrake does it in initrd - if mkinitrd detects any non-standard
rootfs option in use it makes it be mounted from within initrd.

Drawback is you can't change them on the fly. Unfortunately parsing
rootfstype/rootflags in initrd is not trivial given size constraints.

-andrey



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

end of thread, other threads:[~2021-06-29 19:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-12 18:55 2.6.0-test3-mm1 and rootflags Valdis.Kletnieks
2003-08-12 21:25 ` Andrew Morton
2003-08-13  3:41   ` Valdis.Kletnieks
2003-08-13 19:44     ` Valdis.Kletnieks
2021-06-29 17:20       ` Greg Depoire--Ferrer
2021-06-29 19:23         ` Randy Dunlap
2021-06-29 17:20       ` [PATCH] init: add rootopts=%d for rootfs mount flags Greg Depoire--Ferrer
2003-08-13  6:10 2.6.0-test3-mm1 and rootflags "Andrey Borzenkov" 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).