We limit the max size and let the test go on running. Signed-off-by: Yufen Yu <yuyufen@xxxxxxxxxx> --- tests/generic/299 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/generic/299 b/tests/generic/299 index c4d74fc8..4d474032 100755 --- a/tests/generic/299 +++ b/tests/generic/299 @@ -33,6 +33,11 @@ NUM_JOBS=$((4*LOAD_FACTOR)) BLK_DEV_SIZE=`blockdev --getsz $SCRATCH_DEV` FILE_SIZE=$((BLK_DEV_SIZE * 512)) +max_file_size=$(_get_max_file_size) +if [ $max_file_size -lt $FILE_SIZE ]; then + FILE_SIZE=$max_file_size +fi + cat >$fio_config <<EOF ########### # $seq test fio activity -- 2.16.2.dirty