From 1944efc947ce40f49247fd7cf85177c2bea66a7d Mon Sep 17 00:00:00 2001 From: Anand Jain Date: Mon, 9 Mar 2020 21:20:04 -0700 Subject: [PATCH] btrfs/177: check for minsize of the scratch device This test case needs at least 3g scratch device space, check for it before starting the test case. Signed-off-by: Anand Jain Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- tests/btrfs/177 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/btrfs/177 b/tests/btrfs/177 index 2b2c2fcc..f7c2436e 100755 --- a/tests/btrfs/177 +++ b/tests/btrfs/177 @@ -34,6 +34,8 @@ _require_scratch_swapfile swapfile="$SCRATCH_MNT/swap" +_require_scratch_size $((3 * 1024 * 1024)) #kB + # First, create a 1GB filesystem and fill it up. _scratch_mkfs_sized $((1024 * 1024 * 1024)) >> $seqres.full 2>&1 _scratch_mount -- 2.30.2