From e724d83bec0ec2a51455870cbd4fcf02fed7cdfb Mon Sep 17 00:00:00 2001 From: nick Date: Tue, 11 Sep 2012 15:37:13 +0100 Subject: [PATCH] Ensure fiemap ioctl calls are synchronous. --- src/ioutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ioutil.c b/src/ioutil.c index bae5f54..7982e4d 100644 --- a/src/ioutil.c +++ b/src/ioutil.c @@ -21,7 +21,7 @@ struct bitset_mapping* build_allocation_map(int fd, uint64_t size, int resolutio fiemap_count->fm_start = 0; fiemap_count->fm_length = size; - fiemap_count->fm_flags = 0; + fiemap_count->fm_flags = FIEMAP_FLAG_SYNC; fiemap_count->fm_extent_count = 0; fiemap_count->fm_mapped_extents = 0;