[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#297010: libc6-dev - O_NOATIME needed for lvm



tags 297010 patch
thanks

The attached patch adds the upstream patch for bug 341.

Bastian

Index: debian/patches/00list
===================================================================
--- debian/patches/00list	(revision 853)
+++ debian/patches/00list	(working copy)
@@ -116,3 +116,4 @@
 s390-pthread-fpic
 nptl-pthread-c++
 hppa-drop-utimes
+linux-O_NOATIME
Index: debian/patches/linux-O_NOATIME.dpatch
===================================================================
--- debian/patches/linux-O_NOATIME.dpatch	(revision 0)
+++ debian/patches/linux-O_NOATIME.dpatch	(revision 0)
@@ -0,0 +1,209 @@
+#! /bin/sh -e
+
+# All lines beginning with `# DP:' are a description of the patch.
+# DP: Description: Support O_NOATIME on linux
+# DP: Related bugs: #297010
+# DP: Dpatch author: Bastian Blank
+# DP: Patch author: Andreas Jaeger
+# DP: Upstream status: Applied to fix upstream bug 341.
+# DP: Date: 2005-02-26
+
+PATCHLEVEL=1
+
+if [ $# -ne 2 ]; then
+    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+    exit 1
+fi
+case "$1" in
+    -patch) patch -d "$2" -f --no-backup-if-mismatch -p$PATCHLEVEL < $0;;
+    -unpatch) patch -d "$2" -f --no-backup-if-mismatch -R -p$PATCHLEVEL < $0;;
+    *)  
+        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+        exit 1
+esac
+exit 0
+
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h,v
+retrieving revision 1.17
+retrieving revision 1.18
+diff -u -r1.17 -r1.18
+--- libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h	2004/05/03 21:39:38	1.17
++++ libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h	2004/08/23 07:28:43	1.18
+@@ -47,6 +47,7 @@
+ # define O_DIRECT	040000	/* Direct disk access.  */
+ # define O_DIRECTORY	0100000	/* Must be a directory.  */
+ # define O_NOFOLLOW	0200000	/* Do not follow links.  */
++# define O_NOATIME	04000000 /* Do not set atime.  */
+ #endif
+ 
+ #ifdef __USE_LARGEFILE64
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/arm/bits/fcntl.h,v
+retrieving revision 1.7
+retrieving revision 1.8
+diff -u -r1.7 -r1.8
+--- libc/sysdeps/unix/sysv/linux/arm/bits/fcntl.h	2004/05/03 21:39:39	1.7
++++ libc/sysdeps/unix/sysv/linux/arm/bits/fcntl.h	2004/08/23 07:28:44	1.8
+@@ -45,6 +45,7 @@
+ # define O_DIRECTORY	040000	/* Must be a directory.	 */
+ # define O_NOFOLLOW	0100000	/* Do not follow links.	 */
+ # define O_DIRECT	0200000	/* Direct disk access.	*/
++# define O_NOATIME	01000000 /* Do not set atime.  */
+ #endif
+ 
+ #ifdef __USE_LARGEFILE64
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h,v
+retrieving revision 1.6
+retrieving revision 1.7
+diff -u -r1.6 -r1.7
+--- libc/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h	2004/05/03 21:39:39	1.6
++++ libc/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h	2004/08/23 07:28:44	1.7
+@@ -47,6 +47,7 @@
+ # define O_DIRECT	00040000 /* direct disk access hint - currently ignored */
+ # define O_DIRECTORY	00010000 /* must be a directory */
+ # define O_NOFOLLOW	00000200 /* don't follow links */
++# define O_NOATIME	04000000 /* Do not set atime.  */
+ #endif
+ 
+ #ifdef __USE_LARGEFILE64
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/i386/bits/fcntl.h,v
+retrieving revision 1.12
+retrieving revision 1.13
+diff -u -r1.12 -r1.13
+--- libc/sysdeps/unix/sysv/linux/i386/bits/fcntl.h	2004/05/03 21:39:38	1.12
++++ libc/sysdeps/unix/sysv/linux/i386/bits/fcntl.h	2004/08/23 07:28:44	1.13
+@@ -46,6 +46,7 @@
+ # define O_DIRECT	 040000	/* Direct disk access.	*/
+ # define O_DIRECTORY	0200000	/* Must be a directory.	 */
+ # define O_NOFOLLOW	0400000	/* Do not follow links.	 */
++# define O_NOATIME     01000000 /* Do not set atime.  */
+ #endif
+ 
+ /* For now Linux has synchronisity options for data and read operations.
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h,v
+retrieving revision 1.7
+retrieving revision 1.8
+diff -u -r1.7 -r1.8
+--- libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h	2004/05/03 21:39:39	1.7
++++ libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h	2004/08/23 07:28:44	1.8
+@@ -43,8 +43,9 @@
+ #define O_DIRECT	040000
+ 
+ #ifdef __USE_GNU
+-#define O_DIRECTORY	0200000	/* must be a directory */
+-#define O_NOFOLLOW	0400000 /* don't follow links */
++# define O_DIRECTORY	0200000	/* must be a directory */
++# define O_NOFOLLOW	0400000 /* don't follow links */
++# define O_NOATIME	01000000 /* Do not set atime.  */
+ #endif
+ 
+ #ifdef __USE_LARGEFILE64
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/m68k/bits/fcntl.h,v
+retrieving revision 1.6
+retrieving revision 1.7
+diff -u -r1.6 -r1.7
+--- libc/sysdeps/unix/sysv/linux/m68k/bits/fcntl.h	2004/05/03 21:39:39	1.6
++++ libc/sysdeps/unix/sysv/linux/m68k/bits/fcntl.h	2004/08/23 07:28:45	1.7
+@@ -45,6 +45,7 @@
+ # define O_DIRECTORY	 040000	/* Must be a directory.	 */
+ # define O_NOFOLLOW	0100000	/* Do not follow links.	 */
+ # define O_DIRECT	0200000	/* Direct disk access.	*/
++# define O_NOATIME	01000000 /* Do not set atime.  */
+ #endif
+ 
+ /* For now Linux has synchronisity options for data and read operations.
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/mips/bits/fcntl.h,v
+retrieving revision 1.19
+retrieving revision 1.20
+diff -u -r1.19 -r1.20
+--- libc/sysdeps/unix/sysv/linux/mips/bits/fcntl.h	2004/07/20 16:35:29	1.19
++++ libc/sysdeps/unix/sysv/linux/mips/bits/fcntl.h	2004/08/23 07:28:45	1.20
+@@ -49,6 +49,7 @@
+ # define O_NOFOLLOW	0x20000	/* Do not follow links.	 */
+ # define O_DIRECT	0x8000	/* Direct disk access hint.  */
+ # define O_DIRECTORY	0x10000	/* Must be a directory.	 */
++# define O_NOATIME	0x40000	/* Do not set atime.  */
+ #endif
+ 
+ #define O_NDELAY	O_NONBLOCK
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h,v
+retrieving revision 1.11
+retrieving revision 1.12
+diff -u -r1.11 -r1.12
+--- libc/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h	2004/05/03 21:39:38	1.11
++++ libc/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h	2004/08/23 07:28:45	1.12
+@@ -46,6 +46,7 @@
+ # define O_DIRECT	0400000	/* Direct disk access.	*/
+ # define O_DIRECTORY	 040000	/* Must be a directory.	 */
+ # define O_NOFOLLOW	0100000	/* Do not follow links.	 */
++# define O_NOATIME	01000000 /* Do not set atime.  */
+ #endif
+ 
+ #ifdef __USE_LARGEFILE64
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/s390/bits/fcntl.h,v
+retrieving revision 1.8
+retrieving revision 1.9
+diff -u -r1.8 -r1.9
+--- libc/sysdeps/unix/sysv/linux/s390/bits/fcntl.h	2004/05/03 21:39:38	1.8
++++ libc/sysdeps/unix/sysv/linux/s390/bits/fcntl.h	2004/08/23 07:28:45	1.9
+@@ -45,6 +45,7 @@
+ # define O_DIRECT	 040000	/* Direct disk access.	*/
+ # define O_DIRECTORY	0200000	/* Must be a directory.	 */
+ # define O_NOFOLLOW	0400000	/* Do not follow links.	 */
++# define O_NOATIME     01000000 /* Do not set atime.  */
+ #endif
+ 
+ #ifdef __USE_LARGEFILE64
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/sh/bits/fcntl.h,v
+retrieving revision 1.4
+retrieving revision 1.5
+diff -u -r1.4 -r1.5
+--- libc/sysdeps/unix/sysv/linux/sh/bits/fcntl.h	2004/05/03 21:39:38	1.4
++++ libc/sysdeps/unix/sysv/linux/sh/bits/fcntl.h	2004/08/23 07:28:45	1.5
+@@ -46,6 +46,7 @@
+ # define O_DIRECT	 040000	/* Direct disk access.  */
+ # define O_DIRECTORY	0200000	/* Must be a directory.  */
+ # define O_NOFOLLOW	0400000	/* Do not follow links.  */
++# define O_NOATIME     01000000 /* Do not set atime.  */
+ #endif
+ 
+ /* For now Linux has synchronisity options for data and read operations.
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h,v
+retrieving revision 1.21
+retrieving revision 1.22
+diff -u -r1.21 -r1.22
+--- libc/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h	2004/05/03 21:39:38	1.21
++++ libc/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h	2004/08/23 07:28:46	1.22
+@@ -45,6 +45,7 @@
+ # define O_DIRECTORY	0x10000 /* must be a directory */
+ # define O_NOFOLLOW	0x20000 /* don't follow links */
+ # define O_DIRECT	0x100000 /* direct disk access hint */
++# define O_NOATIME	0x200000 /* Do not set atime.  */
+ #endif
+ 
+ #ifdef __USE_LARGEFILE64
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h,v
+retrieving revision 1.5
+retrieving revision 1.6
+diff -u -r1.5 -r1.6
+--- libc/sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h	2004/06/27 20:47:52	1.5
++++ libc/sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h	2004/08/23 07:28:46	1.6
+@@ -46,6 +46,7 @@
+ # define O_DIRECT	 040000	/* Direct disk access.	*/
+ # define O_DIRECTORY	0200000	/* Must be a directory.	 */
+ # define O_NOFOLLOW	0400000	/* Do not follow links.	 */
++# define O_NOATIME     01000000 /* Do not set atime.  */
+ #endif
+ 
+ /* For now Linux has synchronisity options for data and read operations.

Property changes on: debian/patches/linux-O_NOATIME.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Index: debian/changelog
===================================================================
--- debian/changelog	(revision 853)
+++ debian/changelog	(working copy)
@@ -1,3 +1,11 @@
+glibc (2.3.2.ds1-21.unreleased.1) UNRELEASED; urgency=low
+
+  * Bastian Blank <waldi@debian.org>
+
+    - Support O_NOATIME on linux.
+
+ -- Bastian Blank <waldi@debian.org>  Sat, 26 Feb 2005 16:18:47 +0100
+
 glibc (2.3.2.ds1-21) unstable; urgency=low
 
   * GOTO Masanori <gotom@debian.org>

Attachment: signature.asc
Description: Digital signature


Reply to: