]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
btrfs/057: use _scratch_mkfs_sized to set filesystem size
authorNaohiro Aota <naohiro.aota@wdc.com>
Wed, 11 Aug 2021 15:12:27 +0000 (00:12 +0900)
committerEryu Guan <guaneryu@gmail.com>
Sun, 15 Aug 2021 15:25:25 +0000 (23:25 +0800)
Btrfs/057 is using _scratch_mkfs directly to set filesystem size. This
can be _scratch_mkfs_sized instead, to go through several
checks (e.g., minimal filesystem size check).

Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/057

index 074ac96abcda95b26182197639d405738a505eb5..782d854a057f82855d403efedc96fd97fd0cc192 100755 (executable)
@@ -16,7 +16,7 @@ _begin_fstest auto quick
 _supported_fs btrfs
 _require_scratch
 
-run_check _scratch_mkfs "-b 1g"
+_scratch_mkfs_sized $((1024 * 1024 * 1024)) >> $seqres.full 2>&1
 
 _scratch_mount