Bug 756670 - mount: norelatime is being ignored
Summary: mount: norelatime is being ignored
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-24 08:32 UTC by Need Real Name
Modified: 2011-11-27 19:58 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-24 11:50:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2011-11-24 08:32:08 UTC
# mount |grep /boot
/dev/sda1 on /boot type ext3 (rw,relatime,seclabel,user_xattr,barrier=1,nodelalloc,data=ordered)

# mount /dev/sda1 /boot/ -onorelatime,remount

# mount |grep /boot
/dev/sda1 on /boot type ext3 (rw,relatime,seclabel,user_xattr,barrier=1,nodelalloc,data=ordered)

The same happens if I don't use remount. The same happens if I specify norelatime instead of defaults in /etc/fstab.

There is no way not to use norelatime.

Comment 1 Karel Zak 2011-11-24 11:50:05 UTC
Did you read mount(8) man page?

# findmnt /boot
TARGET SOURCE    FSTYPE OPTIONS
/boot  /dev/sda1 ext4   rw,relatime,user_xattr,barrier=1,data=ordered

# mount -o remount,strictatime /boot

# findmnt /boot
TARGET SOURCE    FSTYPE OPTIONS
/boot  /dev/sda1 ext4   rw,user_xattr,barrier=1,data=ordered


The 'norealatime' only removes MS_RELATIME from the syscall mount(2) flags, so kernel will follow the default -- the default is realatime :-) You have to use strictatime to overwrite the default and enable full atime updates.

Comment 2 Need Real Name 2011-11-27 19:58:43 UTC
This seems a little counter-intuitive.

So when I explicitly state the opposite of a mount option, I don't get it?

Should this also fail because rw is default?
mount -o remount,ro


Note You need to log in before you can comment on or make changes to this bug.