We want to check the size of scratch with _require_fs_space,
but we have to mount it firstly.
Reported-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
}
_scratch_mkfs >>$seqres.full 2>&1
-_require_fs_space $SCRATCH_MNT $((10 * 1024 * 1024))
_scratch_mount
+_require_fs_space $SCRATCH_MNT $((10 * 1024 * 1024))
_require_batched_discard $SCRATCH_MNT
for ((i = 0; i < $((4 * $LOAD_FACTOR)); i++)); do