FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 07-07-2008, 09:12 AM
Roberto Ragusa
 
Default Why is relatime immune to remount?

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

--
Roberto Ragusa mail at robertoragusa.it

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 07-07-2008, 07:14 PM
Kevin Fenzi
 
Default Why is relatime immune to remount?

On Mon, 07 Jul 2008 11:12:18 +0200
mail@robertoragusa.it (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
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 07:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org