We want to check the size of scratch with _require_fs_space,
but we have to mount it firstly.

Reported-by: Zeng Linggang <[email protected]>
Signed-off-by: Dongsheng Yang <[email protected]>
---
 tests/generic/038 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/generic/038 b/tests/generic/038
index 7bfebfc..4d108cf 100755
--- a/tests/generic/038
+++ b/tests/generic/038
@@ -121,8 +121,8 @@ create_files()
 }
 
 _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
-- 
1.8.4.2

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to