From 1a2858960b7ca0d187cde33ecbd251329ac8fd4a Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 8 Sep 2014 22:26:52 +1000 Subject: [PATCH] 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 --- tests/ext4/307 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ext4/307 b/tests/ext4/307 index 081f819e..673b9ce2 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 -- 2.25.1