Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-3665 tests: Cleanup echo client after obdfilter-survey
[fs/lustre-release.git]
/
lustre
/
tests
/
checkfiemap.c
diff --git
a/lustre/tests/checkfiemap.c
b/lustre/tests/checkfiemap.c
index
925c4b2
..
2dea812
100644
(file)
--- a/
lustre/tests/checkfiemap.c
+++ b/
lustre/tests/checkfiemap.c
@@
-38,11
+38,9
@@
#include <errno.h>
#include <unistd.h>
#include <getopt.h>
#include <errno.h>
#include <unistd.h>
#include <getopt.h>
-
-#ifndef HAVE_FIEMAP
-# include <linux/types.h>
-# include <linux/fiemap.h>
-#endif
+#include <linux/types.h>
+#include <linux/fs.h>
+#include <linux/lustre/lustre_user.h>
#ifndef FS_IOC_FIEMAP
# define FS_IOC_FIEMAP (_IOWR('f', 11, struct fiemap))
#ifndef FS_IOC_FIEMAP
# define FS_IOC_FIEMAP (_IOWR('f', 11, struct fiemap))
@@
-67,7
+65,7
@@
int check_fiemap(int fd, long long orig_size)
memset(&fiemap_buf, 0, sizeof(fiemap_buf));
fiemap->fm_start = 0;
memset(&fiemap_buf, 0, sizeof(fiemap_buf));
fiemap->fm_start = 0;
- fiemap->fm_flags =
FIEMAP_FLAG_SYNC
;
+ fiemap->fm_flags =
(FIEMAP_FLAG_SYNC | FIEMAP_FLAG_DEVICE_ORDER)
;
fiemap->fm_extent_count = count;
fiemap->fm_length = FIEMAP_MAX_OFFSET;
fiemap->fm_extent_count = count;
fiemap->fm_length = FIEMAP_MAX_OFFSET;