Re: tune2fs and setting noatime as a default mount options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux