Message ID | 20230925043359.2765806-1-naohiro.aota@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs/076: fix file_size variable | expand |
On Mon, Sep 25, 2023 at 5:34 AM Naohiro Aota <naohiro.aota@wdc.com> wrote: > > 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> Ok, so this means that v3 of the recent patch: https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/commit/?h=for-next&id=f4c7dbbb4f166996d8fefdebbceacd2f7d359dee was completely untested and now the test always fails. Too bad. Thanks for the fix. > --- > tests/btrfs/076 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/btrfs/076 b/tests/btrfs/076 > index 23f9bd534a0a..894a1ac7fa5d 100755 > --- a/tests/btrfs/076 > +++ b/tests/btrfs/076 > @@ -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 > -- > 2.42.0 >
diff --git a/tests/btrfs/076 b/tests/btrfs/076 index 23f9bd534a0a..894a1ac7fa5d 100755 --- a/tests/btrfs/076 +++ b/tests/btrfs/076 @@ -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
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> --- tests/btrfs/076 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)