X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fcheckfiemap.c;h=2dea8128057cbd0976ea03d667663d6c80fe848c;hb=471c7966eb03e6283561ba5690a6f9adab68bb9e;hp=925c4b2e1b5418a6ed92958be7c81206bdf7b893;hpb=f13b2a4cea69d8c4c079d03d58f55d32a54a9679;p=fs%2Flustre-release.git diff --git a/lustre/tests/checkfiemap.c b/lustre/tests/checkfiemap.c index 925c4b2..2dea812 100644 --- a/lustre/tests/checkfiemap.c +++ b/lustre/tests/checkfiemap.c @@ -38,11 +38,9 @@ #include #include #include - -#ifndef HAVE_FIEMAP -# include -# include -#endif +#include +#include +#include #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; - 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;