generic/590: add _require_xfs_io_command "falloc"
authorLuis Henriques <lhenriques@suse.com>
Mon, 9 Dec 2019 17:14:52 +0000 (17:14 +0000)
committerEryu Guan <guaneryu@gmail.com>
Wed, 11 Dec 2019 14:49:12 +0000 (22:49 +0800)
Without this check the test will fail with message:

  fallocate: Operation not supported

Instead, with this _require_xfs_io_command, the test will be skipped
instead if falloc isn't supported.

Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/590

index 80a665c6b0014800e54203e8432e6522a18a3b52..2670fe99d21f9b8ef225e99d6768e2c02ae3dc37 100755 (executable)
@@ -34,6 +34,7 @@ rm -f $seqres.full
 _supported_fs generic
 _supported_os Linux
 _require_scratch_nocheck
+_require_xfs_io_command "falloc"
 
 maxextlen=$((0x1fffff))
 bs=4096