diff mbox series

[v2,1/2] fstests: btrfs/177 check for minsize of the scratch device

Message ID 1583814004-15489-1-git-send-email-anand.jain@oracle.com (mailing list archive)
State New, archived
Headers show
Series [v2,1/2] fstests: btrfs/177 check for minsize of the scratch device | expand

Commit Message

Anand Jain March 10, 2020, 4:20 a.m. UTC
This test case needs at least 3g scratch device space, check for it
before starting the test case.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
v2: Makes use of the helper _require_scratch_size() (Thanks Nikolay).

 tests/btrfs/177 | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/tests/btrfs/177 b/tests/btrfs/177
index 2b2c2fcc2198..f7c2436ee7e4 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