Bug 501350 - There's no way to turn off the relatime filesystem mount misfeature.
Summary: There's no way to turn off the relatime filesystem mount misfeature.
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux-ng
Version: 11
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2009-05-18 17:05 UTC by Bruce Jerrick
Modified: 2009-09-21 22:23 UTC (History)
2 users (show)

Fixed In Version: 2.14.2-11.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-09-19 00:16:30 UTC
Type: ---

Attachments (Terms of Use)

Description Bruce Jerrick 2009-05-18 17:05:03 UTC
Description of problem:
There's no way to turn off the relatime filesystem mount misfeature.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Mount (or remount) a filesystem with '-o norelatime'
2. Look at its entry in /proc/mounts
Actual results:
relatime is set

Expected results:
relatime should not be set if 'o norelatime' is given

Additional info:
Examination of the code shows the problem.  In the do_mount() routine
in fs/namespace.c as modified by linux-2.6-relatime-by-default.patch
in the kernel source package, mnt_flags is initialized to 0, then has
MNT_RELATIME or'd in unconditionally.  The only way to clear that bit
is by having MS_STRICTATIME set in the flags parameter of do_mount()
(passed in via mount(2)), but mount(8) has no provision to do that --
when given the norelatime option, it just omits MS_RELATIME from the
mount(2) mountflags argument.

It would be nice to have a boolean default_relatime kernel boot option;
F8 and F9 had that (linux-2.6-smarter-relatime.patch) but it went away
in F10.

Comment 1 Karel Zak 2009-05-19 07:27:20 UTC
Good point. Thanks.

The MS_STRICTATIME support is already in upstream mount(8) code. I'll backport it to F10 and F11.

Comment 2 Bug Zapper 2009-06-09 16:03:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:

Comment 3 Fedora Update System 2009-09-17 10:53:49 UTC
util-linux-ng-2.14.2-11.fc11 has been submitted as an update for Fedora 11.

Comment 4 Fedora Update System 2009-09-19 00:16:24 UTC
util-linux-ng-2.14.2-11.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Jim 2009-09-21 22:23:59 UTC
Thank yiou.  The strictatime explanation in man (8) mount will be confusing to many users.

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