Re: Why is relatime immune to remount?

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

 



On Mon, 07 Jul 2008 11:12:18 +0200
mail@xxxxxxxxxxxxxxxx (Roberto Ragusa) wrote:

> Hi,
> 
> my root filesystem is mounted with the option relatime for
> some reason (I just have defaults in /etc/fstab).
> 
> Any attempt to temporarily disable the option fails,
> even with norelatime, which appears to be a valid option.
> Is this expected or a bug?
> 
> (fedora 9 with 2.6.25.3-18)
> 
> [root@thinkpad ~]# cat /proc/mounts |grep /dev/root
> /dev/root / reiserfs rw,relatime 0 0
> [root@thinkpad ~]# mount / -o remount,norelatime
> [root@thinkpad ~]# cat /proc/mounts |grep /dev/root
> /dev/root / reiserfs rw,relatime 0 0
> [root@thinkpad ~]# mount / -o remount,atime
> [root@thinkpad ~]# cat /proc/mounts |grep /dev/root
> /dev/root / reiserfs rw,relatime 0 0
> [root@thinkpad ~]# mount / -o remount,noatime
> [root@thinkpad ~]# cat /proc/mounts |grep /dev/root
> /dev/root / reiserfs rw,noatime,relatime 0 0
> [root@thinkpad ~]# mount / -o remount,atime
> [root@thinkpad ~]# cat /proc/mounts |grep /dev/root
> /dev/root / reiserfs rw,relatime 0 0
> [root@thinkpad ~]# mount / -o remount,nonononononorelatime
> mount: / not mounted already, or bad option
> 

Yeah, confusingly that doesn't work. 

You have to: 

echo 0 > /proc/sys/fs/default_relatime

and then mount/remount with 'atime' and it should work. 

Even the patch in the kernel src.rpm has incorrect docs on it. 

kevin

Attachment: signature.asc
Description: PGP signature

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux