summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-05-15 00:56:02 +0000
committerNeil Brown <neilb@suse.de>2006-05-15 00:56:02 +0000
commit4ccdb956000d19fd03c4192ce7b8b147e34a5af0 (patch)
treeae3e0aba17da4ff0b35ca17a588980b6a879c739 /mdadm.h
parentc4d831e164da10be75f915f9e06c529e90f55da9 (diff)
downloadmdadm-4ccdb956000d19fd03c4192ce7b8b147e34a5af0.tar.gz
mdadm-4ccdb956000d19fd03c4192ce7b8b147e34a5af0.tar.xz
mdadm-4ccdb956000d19fd03c4192ce7b8b147e34a5af0.zip
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 <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h3
1 files changed, 1 insertions, 2 deletions
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 <unistd.h>
#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 <ftw.h>
# ifdef __dietlibc__
# define FTW_PHYS 1