mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Valdis.Kletnieks@vt.edu
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.0-test3-mm1 and rootflags
Date: Tue, 12 Aug 2003 14:25:19 -0700	[thread overview]
Message-ID: <20030812142519.69a04b7c.akpm@osdl.org> (raw)
In-Reply-To: <200308121855.h7CIt6St002437@turing-police.cc.vt.edu>

Valdis.Kletnieks@vt.edu wrote:
>
> 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).
> 

The fs-independent options are parsed in user space by mount(8), and are
passed into the kernel as individual bits in a `flags' argument.

So we'd need a new `rootopts=0x0040' thingy to support this.  But given
that most things can be set after boot with `mount / -o remount,noatime',
it may not be necessary.


  reply	other threads:[~2003-08-12 21:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-12 18:55 Valdis.Kletnieks
2003-08-12 21:25 ` Andrew Morton [this message]
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" 

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=20030812142519.69a04b7c.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=Valdis.Kletnieks@vt.edu \
    --cc=linux-kernel@vger.kernel.org \
    /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®