From: Theodore Ts'o Date: Mon, 8 Sep 2014 12:26:52 +0000 (+1000) Subject: ext4: require fallocate support to run ext4/307 X-Git-Tag: v2022.05.01~3074 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1a2858960b7ca0d187cde33ecbd251329ac8fd4a;p=users%2Fhch%2Fxfstests-dev.git ext4: require fallocate support to run ext4/307 Some file system configurations don't support fallocate, which is required for e4defrag to run. So add a _require_xfs_io_command to prevent a test failure if fallocate isn't supported in (for example) ext3 compatibility mode. Signed-off-by: Theodore Ts'o Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/tests/ext4/307 b/tests/ext4/307 index 081f819e6..673b9ce21 100755 --- a/tests/ext4/307 +++ b/tests/ext4/307 @@ -64,6 +64,7 @@ _supported_os Linux _need_to_be_root _require_scratch _require_defrag +_require_xfs_io_command "falloc" _scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seqres.full 2>&1 _scratch_mount