Web lists-archives.com

Re: How did relatime get set on my Wheezy system?

Rhkramer, 4.4.2019 01:38 +0200:

> What puzzles me is this -- when I look at /etc/fstab for some of the other 
> partitions that are already ext4 I see entries like this:
> # /var was on /dev/sdb8 during installation
> UUID=874304c9-36c6-4572-909b-c4c75d13269a /var            ext4    defaults        
> 0       2
> When I look at the same partition in /etc/mtab, I see this:
> /dev/sdb8 /var ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
> What I don't understand, for example, is where and how relatime got set (and 
> maybe some of the other parameters).  

relatime is the default (unless you specify otherwise)
man mount contains this:
>   relatime
>       [...]
>       Since  Linux  2.6.30,  the  kernel defaults to the behavior provided by
>       this option (unless noatime was specified), and the strictatime option
>       is required to obtain traditional semantics.  In addition, since
>       Linux 2.6.30, the file's last access time is always updated if it is
>       more than 1 day old.