aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-11-09 17:49:47 +0100
committerZorro Lang <zlang@kernel.org>2023-11-10 22:19:18 +0800
commit88334112f9cb7ec5733f5e41017a4c07b3d37636 (patch)
tree5d6338e2202715cce36f32f28578e56171bdbc8f
parent11914614784735c504f43b5b6baabaa713375984 (diff)
downloadxfstests-dev-88334112f9cb7ec5733f5e41017a4c07b3d37636.tar.gz
xfs/146: require fallocate support
xfs/146 uses the xfs_io falloc subcommand and thus kernel fallocate support. Ensure the support is present. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
-rwxr-xr-xtests/xfs/1463
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/xfs/146 b/tests/xfs/146
index 123bdff59f..5090435976 100755
--- a/tests/xfs/146
+++ b/tests/xfs/146
@@ -15,7 +15,7 @@
# error and returns EFSCORRUPTED.
. ./common/preamble
-_begin_fstest auto quick rw realtime
+_begin_fstest auto quick rw realtime prealloc
# Import common functions.
. ./common/filter
@@ -24,6 +24,7 @@ _begin_fstest auto quick rw realtime
_supported_fs xfs
_require_scratch
_require_realtime
+_require_xfs_io_command "falloc"
_require_test_program "punch-alternating"
# Format filesystem to get the block size