]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/299: skip test early if falloc is not supported
authorPavel Reichl <preichl@redhat.com>
Thu, 22 Sep 2022 18:55:02 +0000 (20:55 +0200)
committerZorro Lang <zlang@kernel.org>
Sat, 8 Oct 2022 11:20:25 +0000 (19:20 +0800)
Move the _require_xfs_io_command "falloc" above the
potencially 'expensive' function _get_max_file_size

Signed-off-by: Pavel Reichl <preichl@redhat.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/299

index 8e1a112c378e149d86a321ce47bc80ac7951b351..1bb371a3c8d0b8b52ff5a75de768e452279ba9d3 100755 (executable)
@@ -24,6 +24,7 @@ _require_scratch
 _require_odirect
 _require_aio
 _require_block_device $SCRATCH_DEV
+_require_xfs_io_command "falloc"
 
 NUM_JOBS=$((4*LOAD_FACTOR))
 BLK_DEV_SIZE=`blockdev --getsz $SCRATCH_DEV`
@@ -96,7 +97,6 @@ filename=buffered-aio-verifier
 EOF
 
 _require_fio $fio_config
-_require_xfs_io_command "falloc"
 
 _scratch_mkfs >> $seqres.full 2>&1
 _scratch_mount