* [PATCH] btrfs/253: skip on zoned mode as we cannot change the chunk size
@ 2022-07-26 7:57 Naohiro Aota
2022-07-26 9:49 ` Zorro Lang
0 siblings, 1 reply; 2+ messages in thread
From: Naohiro Aota @ 2022-07-26 7:57 UTC (permalink / raw)
To: fstests; +Cc: linux-btrfs, Naohiro Aota
On zoned mode, we have a fixed chunk size which is equal to the zone size.
So, we cannot change the chunk size, and running this test results in a
failure with below.
--- tests/btrfs/253.out 2021-12-10 04:33:53.000000000 +0000
+++ /host/results/btrfs/253.out.bad 2022-07-26 05:58:10.000000000 +0000
@@ -2,9 +2,16 @@
Capture default chunk sizes.
First allocation.
Second allocation.
+./common/rc: line 4670: echo: write error: Invalid argument
+./common/rc: line 4670: echo: write error: Invalid argument
Calculate request size so last memory allocation cannot be completely fullfilled.
Third allocation.
...
It is no use to test this feature on zoned mode. So, just skip it.
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
---
tests/btrfs/253 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/btrfs/253 b/tests/btrfs/253
index fbbb81fae754..c746f41e9264 100755
--- a/tests/btrfs/253
+++ b/tests/btrfs/253
@@ -81,6 +81,8 @@ alloc_size() {
_supported_fs btrfs
_require_test
_require_scratch
+# The chunk size on zoned mode is fixed to the zone size
+_require_non_zoned_device "$SCRATCH_DEV"
# Delete log file if it exists.
rm -f "${seqres}.full"
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] btrfs/253: skip on zoned mode as we cannot change the chunk size
2022-07-26 7:57 [PATCH] btrfs/253: skip on zoned mode as we cannot change the chunk size Naohiro Aota
@ 2022-07-26 9:49 ` Zorro Lang
0 siblings, 0 replies; 2+ messages in thread
From: Zorro Lang @ 2022-07-26 9:49 UTC (permalink / raw)
To: Naohiro Aota; +Cc: fstests, linux-btrfs
On Tue, Jul 26, 2022 at 04:57:59PM +0900, Naohiro Aota wrote:
> On zoned mode, we have a fixed chunk size which is equal to the zone size.
> So, we cannot change the chunk size, and running this test results in a
> failure with below.
>
> --- tests/btrfs/253.out 2021-12-10 04:33:53.000000000 +0000
> +++ /host/results/btrfs/253.out.bad 2022-07-26 05:58:10.000000000 +0000
> @@ -2,9 +2,16 @@
> Capture default chunk sizes.
> First allocation.
> Second allocation.
> +./common/rc: line 4670: echo: write error: Invalid argument
> +./common/rc: line 4670: echo: write error: Invalid argument
> Calculate request size so last memory allocation cannot be completely fullfilled.
> Third allocation.
> ...
>
> It is no use to test this feature on zoned mode. So, just skip it.
>
> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
> ---
Make sense to me,
Reviewed-by: Zorro Lang <zlang@redhat.com>
> tests/btrfs/253 | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/btrfs/253 b/tests/btrfs/253
> index fbbb81fae754..c746f41e9264 100755
> --- a/tests/btrfs/253
> +++ b/tests/btrfs/253
> @@ -81,6 +81,8 @@ alloc_size() {
> _supported_fs btrfs
> _require_test
> _require_scratch
> +# The chunk size on zoned mode is fixed to the zone size
> +_require_non_zoned_device "$SCRATCH_DEV"
>
> # Delete log file if it exists.
> rm -f "${seqres}.full"
> --
> 2.35.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-26 9:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-26 7:57 [PATCH] btrfs/253: skip on zoned mode as we cannot change the chunk size Naohiro Aota
2022-07-26 9:49 ` Zorro Lang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).