From 4ccdb956000d19fd03c4192ce7b8b147e34a5af0 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 15 May 2006 00:56:02 +0000 Subject: Use O_DIRECT to read bitmap files. A pending patch to the kernel causes bitmap file updates to not go through the page cache, so O_DIRECT is needed to ensure that we read current data. Signed-off-by: Neil Brown --- mdadm.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mdadm.h') diff --git a/mdadm.h b/mdadm.h index 74672f7..4ad4f93 100644 --- a/mdadm.h +++ b/mdadm.h @@ -27,7 +27,7 @@ * Australia */ -#define __USE_LARGEFILE64 +#define _GNU_SOURCE #include #ifndef __dietlibc__ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence)); @@ -292,7 +292,6 @@ struct stat64; struct FTW {}; # define FTW_PHYS 1 #else -# define __USE_XOPEN_EXTENDED # include # ifdef __dietlibc__ # define FTW_PHYS 1 -- cgit