rpms/util-linux/F-7 util-linux-2.13-mount-relatime.patch, NONE, 1.1 util-linux.spec, 1.156, 1.157

Karel Zak (kzak) fedora-extras-commits at redhat.com
Wed Aug 8 14:59:01 UTC 2007


Author: kzak

Update of /cvs/pkgs/rpms/util-linux/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14506

Modified Files:
	util-linux.spec 
Added Files:
	util-linux-2.13-mount-relatime.patch 
Log Message:
* Wed Aug  8  2007 Karel Zak <kzak at redhat.com> 2.13-0.54
- backport mount relatime patch


util-linux-2.13-mount-relatime.patch:

--- NEW FILE util-linux-2.13-mount-relatime.patch ---
--- util-linux-2.13-pre7/mount/mount_constants.h.kzak	2007-08-08 16:48:29.000000000 +0200
+++ util-linux-2.13-pre7/mount/mount_constants.h	2007-08-08 16:48:30.000000000 +0200
@@ -57,6 +57,10 @@
 #ifndef MS_VERBOSE
 #define MS_VERBOSE	0x8000	/* 32768 */
 #endif
+#ifndef MS_RELATIME
+#define MS_RELATIME	0x200000 /* 200000: Update access times relative
+                                  to mtime/ctime */
+#endif
 #ifndef MS_UNBINDABLE
 #define MS_UNBINDABLE	(1<<17)	/* 131072 unbindable*/
 #endif
--- util-linux-2.13-pre7/mount/mount.8.kzak	2007-08-08 16:48:29.000000000 +0200
+++ util-linux-2.13-pre7/mount/mount.8	2007-08-08 16:48:30.000000000 +0200
@@ -623,6 +623,13 @@
 .B nodiratime
 Do not update directory inode access times on this filesystem.
 .TP
+.B relatime
+Update inode access times relative to modify or change time.  Access
+time is only updated if the previous access time was earlier than the
+current modify or change time. (Similar to noatime, but doesn't break
+mutt or other applications that need to know if a file has been read
+since the last time it was modified.)
+.TP
 .B noauto
 Can only be mounted explicitly (i.e., the
 .B \-a
--- util-linux-2.13-pre7/mount/mount.c.kzak	2007-08-08 16:48:30.000000000 +0200
+++ util-linux-2.13-pre7/mount/mount.c	2007-08-08 16:53:02.000000000 +0200
@@ -177,6 +177,12 @@
   { "diratime",	0, 1, MS_NODIRATIME },	/* Update dir access times */
   { "nodiratime", 0, 0, MS_NODIRATIME },/* Do not update dir access times */
 #endif
+#ifdef MS_RELATIME
+  { "relatime",	0, 0, MS_RELATIME },   /* Update access times relative to
+						mtime/ctime */
+  { "norelatime", 0, 1, MS_RELATIME }, /* Update access time without regard
+					to mtime/ctime */
+#endif
   { "kudzu", 0, 0, MS_COMMENT },			/* Silently remove this option (backwards compat use only - deprecated) */
   { "managed", 0, 0, MS_COMMENT },			/* Silently remove this option */
   { NULL,	0, 0, 0		}


Index: util-linux.spec
===================================================================
RCS file: /cvs/pkgs/rpms/util-linux/F-7/util-linux.spec,v
retrieving revision 1.156
retrieving revision 1.157
diff -u -r1.156 -r1.157
--- util-linux.spec	2 Aug 2007 11:31:02 -0000	1.156
+++ util-linux.spec	8 Aug 2007 14:58:29 -0000	1.157
@@ -9,7 +9,7 @@
 Summary: A collection of basic system utilities.
 Name: util-linux
 Version: 2.13
-Release: 0.53%{?dist}
+Release: 0.54%{?dist}
 License: distributable
 Group: System Environment/Base
 
@@ -262,8 +262,8 @@
 # 238918 - blockdev --getsize does not work properly on devices with more than 2^31 sectors
 Patch271: util-linux-2.13-blockdev-errno.patch
 Patch272: util-linux-2.13-blockdev-unsigned.patch
-
-
+# backport MS_RELATIME
+Patch273: util-linux-2.13-mount-relatime.patch
 
 %description
 The util-linux package contains a large variety of low-level system
@@ -371,6 +371,7 @@
 %patch270 -p1
 %patch271 -p1
 %patch272 -p1
+%patch273 -p1
 
 %build
 unset LINGUAS || :
@@ -784,6 +785,9 @@
 /sbin/losetup
 
 %changelog
+* Wed Aug  8  2007 Karel Zak <kzak at redhat.com> 2.13-0.54
+- backport mount relatime patch
+
 * Thu Aug  2  2007 Karel Zak <kzak at redhat.com> 2.13-0.53
 - fix #236848 - mount/fstab.c:lock_mtab() should open with proper permissions
 - fix #238918 - blockdev --getsize does not work properly on devices with more than 2^31 sectors




More information about the fedora-extras-commits mailing list