Skip to contentSkip to conversation

ext4: require fallocate support to run ext4/307

PATCH New Theodore Ts'o 1 participant 1 message Sep 8, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Cc Dmitry Monakhov <[email protected]>
---
 tests/ext4/307 | 1 +
 1 file changed, 1 insertion(+)
tests/ext4/307 +1 -0
index 081f819..673b9ce 100755
@@ -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
Signature · 1 line
2.1.0