]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/{436,445}: check falloc support
authorAmir Goldstein <amir73il@gmail.com>
Tue, 26 Feb 2019 14:09:01 +0000 (16:09 +0200)
committerEryu Guan <guaneryu@gmail.com>
Sat, 2 Mar 2019 14:37:23 +0000 (22:37 +0800)
commit87a53d2e7c82fb6745b42d6a5da07d00de5b2500
tree999322a4fd326ea84919f87163837321feb48cd6
parent65cc9a235919f3fd5ac77f51478b62b7f0dff252
generic/{436,445}: check falloc support

The sanity test case in those tests (i.e. 13..17)
are all skipped in fs with no falloc support, but the tests
are reported to pass.

For example, from 445.full:

 File system supports the default behavior.
 File system does not support fallocate.
 Allocation size: 4096
 17. Test file with unwritten extents, data-hole-data inside page
 Test skipped as fs doesn't support unwritten extents.

Explicitly check for falloc support before running those tests
so they would be properly reported as skipped.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/436
tests/generic/445
tests/generic/group