rpms/util-linux-ng/F-11 util-linux-ng-2.14-mount-strictatime.patch, NONE, 1.1 util-linux-ng.spec, 1.47, 1.48

kzak kzak at fedoraproject.org
Thu Sep 17 10:39:41 UTC 2009


Author: kzak

Update of /cvs/pkgs/rpms/util-linux-ng/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22215

Modified Files:
	util-linux-ng.spec 
Added Files:
	util-linux-ng-2.14-mount-strictatime.patch 
Log Message:
* Thu Sep 17 2009 Karel Zak <kzak at redhat.com> 2.14.2-11
- fix #501350 - there's no way to turn off the relatime filesystem mount misfeature.


util-linux-ng-2.14-mount-strictatime.patch:
 mount.8           |   21 ++++++++++++++++++---
 mount.c           |    4 ++++
 mount_constants.h |    3 +++
 3 files changed, 25 insertions(+), 3 deletions(-)

--- NEW FILE util-linux-ng-2.14-mount-strictatime.patch ---

This is backport of upstream patches:

>From 96f3bfbc7cbe4a96be60337bb58c361042b6df68 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak at redhat.com>
Date: Fri, 11 Sep 2009 14:08:40 +0200
Subject: [PATCH] mount: more explicitly explain 'strictatime' in mount.

>From ed64b8d0fc945ce49041f313c453b6b21d68b832 Mon Sep 17 00:00:00 2001
From: Matthew Garrett <mjg59 at srcf.ucam.org>
Date: Fri, 27 Mar 2009 00:47:22 +0000
Subject: [PATCH] mount: Add strictatime support


diff -up util-linux-ng-2.14.2/mount/mount.8.kzak util-linux-ng-2.14.2/mount/mount.8
--- util-linux-ng-2.14.2/mount/mount.8.kzak	2009-09-17 12:30:54.000000000 +0200
+++ util-linux-ng-2.14.2/mount/mount.8	2009-09-17 12:33:32.000000000 +0200
@@ -658,7 +658,9 @@ All I/O to the file system should be don
 option.)
 .TP
 .B atime
-Update inode access time for each access. This is the default.
+Update inode access time for each access. See also the
+.B strictatime
+mount option.
 .TP
 .B noatime
 Do not update inode access times on this file system (e.g, for faster
@@ -794,8 +796,21 @@ since the last time it was modified.)
 .B norelatime
 Do not use
 .B relatime
-feature (e.g, for systems where the feature is enabled by default, for
-more details see mount options in /proc/mounts).
+feature. See also the
+.B strictatime
+mount option.
+.TP
+.B strictatime
+Allows to explicitly requesting full atime updates. This makes it
+possible for kernel to defaults to
+.B relatime
+or
+.B noatime
+but still allow userspace to override it. For more details about the default
+system mount options see /proc/mounts.
+.TP
+.B nostrictatime
+Use the kernel's default behaviour for inode access time updates.
 .TP
 .B suid
 Allow set-user-identifier or set-group-identifier bits to take
diff -up util-linux-ng-2.14.2/mount/mount.c.kzak util-linux-ng-2.14.2/mount/mount.c
--- util-linux-ng-2.14.2/mount/mount.c.kzak	2009-09-17 12:30:54.000000000 +0200
+++ util-linux-ng-2.14.2/mount/mount.c	2009-09-17 12:32:06.000000000 +0200
@@ -180,6 +180,10 @@ static const struct opt_map opt_map[] = 
   { "norelatime", 0, 1, MS_RELATIME }, /* Update access time without regard
 					  to mtime/ctime */
 #endif
+#ifdef MS_STRICTATIME
+  { "strictatime", 0, 0, MS_STRICTATIME }, /* Strict atime semantics */
+  { "nostrictatime", 0, 1, MS_STRICTATIME }, /* kernel default atime */
+#endif
   { "kudzu", 0, 0, MS_COMMENT },	/* Silently remove this option (backwards compat use only - deprecated) */
   { "managed", 0, 0, MS_COMMENT },	/* Silently remove this option */
   { "nofail",	0, 0, MS_COMMENT},	/* Do not fail if ENOENT on dev */
diff -up util-linux-ng-2.14.2/mount/mount_constants.h.kzak util-linux-ng-2.14.2/mount/mount_constants.h
--- util-linux-ng-2.14.2/mount/mount_constants.h.kzak	2009-01-09 11:01:34.000000000 +0100
+++ util-linux-ng-2.14.2/mount/mount_constants.h	2009-09-17 12:31:21.000000000 +0200
@@ -59,6 +59,9 @@
 #ifndef MS_I_VERSION
 #define MS_I_VERSION	(1<<23)	/* update inode I_version field */
 #endif
+#ifndef MS_STRICTATIME
+#define MS_STRICTATIME	(1<<24) /* strict atime semantics */
+#endif
 /*
  * Magic mount flag number. Had to be or-ed to the flag values.
  */


Index: util-linux-ng.spec
===================================================================
RCS file: /cvs/pkgs/rpms/util-linux-ng/F-11/util-linux-ng.spec,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -p -r1.47 -r1.48
--- util-linux-ng.spec	11 Sep 2009 12:27:08 -0000	1.47
+++ util-linux-ng.spec	17 Sep 2009 10:39:40 -0000	1.48
@@ -2,7 +2,7 @@
 Summary: A collection of basic system utilities
 Name: util-linux-ng
 Version: 2.14.2
-Release: 10%{?dist}
+Release: 11%{?dist}
 License: GPLv2 and GPLv2+ and BSD with advertising and Public Domain
 Group: System Environment/Base
 URL: ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng
@@ -122,6 +122,8 @@ Patch14: util-linux-ng-2.14-renice-n.pat
 Patch15: util-linux-ng-2.14-mount-man-ext4.patch
 # 522718 - sfdisk -d /dev/xxx | sfdisk --force /dev/yyy fails when LANG is set
 Patch16: util-linux-ng-2.14-sfdisk-dump.patch
+# 501350 - There's no way to turn off the relatime filesystem mount misfeature.
+Patch17: util-linux-ng-2.14-mount-strictatime.patch
 
 %description
 The util-linux-ng package contains a large variety of low-level system
@@ -149,6 +151,7 @@ cp %{SOURCE8} %{SOURCE9} .
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
+%patch17 -p1
 
 %build
 unset LINGUAS || :
@@ -550,6 +553,9 @@ exit 0
 /sbin/losetup
 
 %changelog
+* Thu Sep 17 2009 Karel Zak <kzak at redhat.com> 2.14.2-11
+- fix #501350 - there's no way to turn off the relatime filesystem mount misfeature.
+
 * Fri Sep 11 2009 Karel Zak <kzak at redhat.com> 2.14.2-10
 - fix #522718 - sfdisk -d /dev/xxx | sfdisk --force /dev/yyy fails when LANG is set 
 




More information about the fedora-extras-commits mailing list