linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Theodore Ts'o <tytso@mit.edu>
To: Eric Sandeen <sandeen@redhat.com>
Cc: Tomasz Chmielewski <mangoo@wpkg.org>,
	linux-ext4@vger.kernel.org, luto@amacapital.net
Subject: Re: tune2fs and setting noatime as a default mount options
Date: Fri, 29 Aug 2014 18:56:49 -0400	[thread overview]
Message-ID: <20140829225649.GC27177@thunk.org> (raw)
In-Reply-To: <54009D31.70703@redhat.com>

On Fri, Aug 29, 2014 at 10:33:05AM -0500, Eric Sandeen wrote:
> 
> > Is there a reason why noatime can't be set as a default mount option? Thinking of all these USB connected devices where it would be handy.
> 
> I haven't looked, but I'm guessing it's because noatime is a
> vfs-level switch, and by the time the ext4 superblock is getting
> read and processed during mount, that chance has passed.

Yes, and this is also the cause of this user complaint/bug:

	https://bugzilla.kernel.org/show_bug.cgi?id=61601

There was some discussion at the kernel summit by Andy Lutomirski to
create new mount system call with sane parsing, and Al Viro wasn't
totally against that idea.  If we do go forward with some of the ideas
that was tossed about, this would be something else that would be a
nice thing to fix at the same time.

The whole distinction between VFS-level mount options (which are
parsed in userspace and passed down into the kernel using bits in a
bitfield) and file system-level mount options (which is parsed by the
kernel and passed in from userspace as a string) is just nasty.

What I would suggest is that all mount options would be passed all the
way down to the file system, and then there would be a library
function to handle common VFS-level mount options that would be called
by the file system's mount option handling code.

							- Ted

P.S.  At the kernel summit, Al recited the history of the mount system
call going all the way back to 1991-1992 when minix was the only file
system, and let's just say there is some major cruftiness going back
literally decades.  :-/


  reply	other threads:[~2014-08-29 22:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-28 22:12 tune2fs and setting noatime as a default mount options Tomasz Chmielewski
2014-08-29 15:33 ` Eric Sandeen
2014-08-29 22:56   ` Theodore Ts'o [this message]
2014-09-01 21:23     ` Andy Lutomirski
2014-09-02  3:36       ` Theodore Ts'o

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=20140829225649.GC27177@thunk.org \
    --to=tytso@mit.edu \
    --cc=linux-ext4@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=mangoo@wpkg.org \
    --cc=sandeen@redhat.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;
as well as URLs for NNTP newsgroup(s).