* [PATCH] btrfs/283: skip if we cannot write into one extent
@ 2023-09-25 5:55 Naohiro Aota
2023-09-25 10:52 ` Filipe Manana
0 siblings, 1 reply; 2+ messages in thread
From: Naohiro Aota @ 2023-09-25 5:55 UTC (permalink / raw)
To: fstests; +Cc: linux-btrfs, Naohiro Aota
On the zoned mode, the extent size is limited also by
queue/zone_append_max_bytes. This breaks the assumption that the file "foo"
has a single extent and corrupts the test output.
It is difficult to support the case, so let's just skip the test in this
case.
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
---
tests/btrfs/283 | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/btrfs/283 b/tests/btrfs/283
index c1f6007d5398..118df08b8958 100755
--- a/tests/btrfs/283
+++ b/tests/btrfs/283
@@ -25,6 +25,14 @@ _require_fssum
_wants_kernel_commit c7499a64dcf6 \
"btrfs: send: optimize clone detection to increase extent sharing"
+extent_size=$(( 128 * 1024 ))
+if _scratch_btrfs_is_zoned; then
+ zone_append_max=$(cat "/sys/block/$(_short_dev $SCRATCH_DEV)/queue/zone_append_max_bytes")
+ if [[ $zone_append_max -gt 0 && $zone_append_max -lt $extent_size ]]; then
+ _notrun "zone append max $zone_append_max is smaller than wanted extent size $extent_size"
+ fi
+fi
+
send_files_dir=$TEST_DIR/btrfs-test-$seq
send_stream=$send_files_dir/snap.stream
snap_fssum=$send_files_dir/snap.fssum
--
2.42.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] btrfs/283: skip if we cannot write into one extent
2023-09-25 5:55 [PATCH] btrfs/283: skip if we cannot write into one extent Naohiro Aota
@ 2023-09-25 10:52 ` Filipe Manana
0 siblings, 0 replies; 2+ messages in thread
From: Filipe Manana @ 2023-09-25 10:52 UTC (permalink / raw)
To: Naohiro Aota; +Cc: fstests, linux-btrfs
On Mon, Sep 25, 2023 at 6:55 AM Naohiro Aota <naohiro.aota@wdc.com> wrote:
>
> On the zoned mode, the extent size is limited also by
> queue/zone_append_max_bytes. This breaks the assumption that the file "foo"
> has a single extent and corrupts the test output.
>
> It is difficult to support the case, so let's just skip the test in this
> case.
>
> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Looks reasonable, thanks.
> ---
> tests/btrfs/283 | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/tests/btrfs/283 b/tests/btrfs/283
> index c1f6007d5398..118df08b8958 100755
> --- a/tests/btrfs/283
> +++ b/tests/btrfs/283
> @@ -25,6 +25,14 @@ _require_fssum
> _wants_kernel_commit c7499a64dcf6 \
> "btrfs: send: optimize clone detection to increase extent sharing"
>
> +extent_size=$(( 128 * 1024 ))
> +if _scratch_btrfs_is_zoned; then
> + zone_append_max=$(cat "/sys/block/$(_short_dev $SCRATCH_DEV)/queue/zone_append_max_bytes")
> + if [[ $zone_append_max -gt 0 && $zone_append_max -lt $extent_size ]]; then
> + _notrun "zone append max $zone_append_max is smaller than wanted extent size $extent_size"
> + fi
> +fi
> +
> send_files_dir=$TEST_DIR/btrfs-test-$seq
> send_stream=$send_files_dir/snap.stream
> snap_fssum=$send_files_dir/snap.fssum
> --
> 2.42.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-25 10:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-25 5:55 [PATCH] btrfs/283: skip if we cannot write into one extent Naohiro Aota
2023-09-25 10:52 ` Filipe Manana
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.