]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
btrfs/076: fix file_size variable
authorNaohiro Aota <naohiro.aota@wdc.com>
Mon, 25 Sep 2023 04:33:59 +0000 (13:33 +0900)
committerZorro Lang <zlang@kernel.org>
Thu, 5 Oct 2023 14:32:01 +0000 (22:32 +0800)
The file size written below is 10 MB, but the variable is set to 1 MB. Fix
it, or the test will fail.

Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/076

index 23f9bd534a0ae182a6c86a4d2201da0685ac03ce..894a1ac7fa5dbca047fbf444c336de7151e256b9 100755 (executable)
@@ -37,7 +37,7 @@ if _scratch_btrfs_is_zoned; then
                max_extent_size=$(( $zone_append_max / 4096 * 4096 ))
        fi
 fi
-file_size=$(( 1 * 1024 * 1024 ))
+file_size=$(( 10 * 1024 * 1024 ))
 expect=$(( (file_size + max_extent_size - 1) / max_extent_size ))
 
 _scratch_mkfs >> $seqres.full 2>&1