]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fiemap-tester: convert to use O_DIRECT
authorJosef Bacik <jbacik@fb.com>
Tue, 4 Aug 2015 04:10:48 +0000 (14:10 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Aug 2015 04:10:48 +0000 (14:10 +1000)
commit0372c9fef9d76b7c3dc702b64646f32ce15e368f
treec686e80e4568da8945c50578a83d58c1f05236fb
parent4712000adad9664127d035de59f0f92d1d823413
fiemap-tester: convert to use O_DIRECT

We want to test fiemap, so we want to lay out a file exactly a certain way.  XFS
tries to be smart and will allocate data in a hole if the write pattern is

[data][hole][data]

where the hole is small enough.  This screws with fiemap-tester sometimes, so
make it easy and just do O_DIRECT so that we get the layout we want and can get
back to testing fiemap.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
src/fiemap-tester.c