From: Pavel Reichl Date: Thu, 22 Sep 2022 18:55:02 +0000 (+0200) Subject: generic/299: skip test early if falloc is not supported X-Git-Tag: v2022.10.09~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b57788fbe2cd10193318941f502bb3e5c4bc087f;p=xfstests-dev.git generic/299: skip test early if falloc is not supported Move the _require_xfs_io_command "falloc" above the potencially 'expensive' function _get_max_file_size Signed-off-by: Pavel Reichl Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/tests/generic/299 b/tests/generic/299 index 8e1a112c..1bb371a3 100755 --- a/tests/generic/299 +++ b/tests/generic/299 @@ -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