diff options
author | Neil Brown <neilb@suse.de> | 2006-05-15 00:56:02 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-05-15 00:56:02 +0000 |
commit | 4ccdb956000d19fd03c4192ce7b8b147e34a5af0 (patch) | |
tree | ae3e0aba17da4ff0b35ca17a588980b6a879c739 /mdadm.h | |
parent | c4d831e164da10be75f915f9e06c529e90f55da9 (diff) | |
download | mdadm-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.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |