]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/300: add fallocate() checks
authorEric Whitney <enwlinux@gmail.com>
Mon, 14 Apr 2014 00:37:32 +0000 (10:37 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Apr 2014 00:37:32 +0000 (10:37 +1000)
commit2e9061fb91601049c983e3912d36d70750928972
tree84ceb137204c3888821077db8a32adab22a58827
parent3c9cd13b789be058dc72926b096002fa0ed241cb
generic/300: add fallocate() checks

Generic/300 fails when run on a test filesystem that does not
support fallocate(). It uses fio's falloc ioengine to generate part
of its I/O load and both allocates blocks and punches holes.  This
causes EOPNOTSUPP failures when the test is run on indirect
block-mapped ext4 filesystems or pre-3.14 ext4 filesystems created
with bigalloc.

Verify that the test filesystem supports fallocate() before
proceeding with the test, checking for both block allocation and
hole punching capabilities.  Also, delete any pre-existing test
output.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/300