From: Eric Sandeen <sandeen@redhat.com>
To: Tomasz Chmielewski <mangoo@wpkg.org>, linux-ext4@vger.kernel.org
Subject: Re: tune2fs and setting noatime as a default mount options
Date: Fri, 29 Aug 2014 10:33:05 -0500 [thread overview]
Message-ID: <54009D31.70703@redhat.com> (raw)
In-Reply-To: <16b17d3bf6a5952c3f20a8644be22c58@admin.virtall.com>
On 8/28/14, 5:12 PM, Tomasz Chmielewski wrote:
> I'd like to set noatime as a default mount option for a filesystem:
>
> # tune2fs -o noatime /dev/sdb1
> tune2fs 1.42.9 (4-Feb-2014)
> Invalid mount option set: noatime
Right, the manpage doesn't list that as supported under "-o".
> 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.
Just to keep things complicated and confusing ;) there's a different mechanism to do this as well:
# tune2fs -E mount_opts=noatime /dev/sdc1
which succeeds; however, this fails to be parsed at mount time:
[ 118.384020] EXT4-fs (sdc1): failed to parse options in superblock: noatime
for the same reasons, I guess. The documentation could certainly be better...
-Eric
next prev parent reply other threads:[~2014-08-29 15:33 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 [this message]
2014-08-29 22:56 ` Theodore Ts'o
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=54009D31.70703@redhat.com \
--to=sandeen@redhat.com \
--cc=linux-ext4@vger.kernel.org \
--cc=mangoo@wpkg.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.