]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/075,112: detect preallocation support for fsx tests
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Feb 2019 12:41:40 +0000 (13:41 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sat, 16 Feb 2019 10:31:19 +0000 (18:31 +0800)
commitec295d73ac19a42d1f022cb074d0bd506252cb3b
tree50916a9ff4121f8debf40eec47fa1a5810f0dea1
parent53fc54907b7e00248f44bcf90fb0b784c08f9b44
generic/075,112: detect preallocation support for fsx tests

Currently generic/075 and generic/112 have two extra fsx passes each
that exercise fsx with preallocation, which are only enabled for
XFS.

These tests can also be run with other file systems, given that the
XFS prealloc ioctls are implemented in generic code since the
addition of the fallocate system call.  This also means a version of
XFS that does not support preallocation (e.g. because it always
writes out of place) can skip the prealloc tests while still
completing the normal fsx tests just fine.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/075
tests/generic/112