* [PATCH] btrfs/294: reject zoned devices for now
@ 2023-07-24 3:04 Qu Wenruo
2023-07-24 4:55 ` Zorro Lang
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Qu Wenruo @ 2023-07-24 3:04 UTC (permalink / raw)
To: linux-btrfs, fstests
The test case itself is utilizing RAID5/6, which is not yet supported on
zoned device.
In the future we would use raid-stripe-tree (RST) feature, but for now
just reject zoned devices completely.
And since we're here, also update the _fixed_by_kernel_commit lines, as
the proper fix is already merged upstream.
Signed-off-by: Qu Wenruo <wqu@suse.com>
---
tests/btrfs/294 | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/btrfs/294 b/tests/btrfs/294
index 61ce7d97..d7d13646 100755
--- a/tests/btrfs/294
+++ b/tests/btrfs/294
@@ -16,11 +16,15 @@ _begin_fstest auto raid volume
# Modify as appropriate.
_supported_fs btrfs
+
+# No zoned support for RAID56 yet.
+_require_non_zoned_device "${SCRATCH_DEV}"
+
_require_scratch_dev_pool 8
_fixed_by_kernel_commit a7299a18a179 \
"btrfs: fix u32 overflows when left shifting @stripe_nr"
-_fixed_by_kernel_commit xxxxxxxxxxxx \
- "btrfs: use a dedicated helper to convert stripe_nr to offset"
+_fixed_by_kernel_commit cb091225a538 \
+ "btrfs: fix remaining u32 overflows when left shifting stripe_nr"
_scratch_dev_pool_get 8
--
2.41.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH] btrfs/294: reject zoned devices for now 2023-07-24 3:04 [PATCH] btrfs/294: reject zoned devices for now Qu Wenruo @ 2023-07-24 4:55 ` Zorro Lang 2023-07-24 6:19 ` Naohiro Aota 2023-07-24 14:10 ` Christoph Hellwig 2023-07-27 15:50 ` Zorro Lang 2 siblings, 1 reply; 9+ messages in thread From: Zorro Lang @ 2023-07-24 4:55 UTC (permalink / raw) To: Qu Wenruo; +Cc: linux-btrfs, fstests, Naohiro Aota On Mon, Jul 24, 2023 at 11:04:23AM +0800, Qu Wenruo wrote: > The test case itself is utilizing RAID5/6, which is not yet supported on > zoned device. > > In the future we would use raid-stripe-tree (RST) feature, but for now > just reject zoned devices completely. > > And since we're here, also update the _fixed_by_kernel_commit lines, as > the proper fix is already merged upstream. > > Signed-off-by: Qu Wenruo <wqu@suse.com> > --- Oh, good, you've sent this patch, ignore my reply to last patch. Looks good to me. Reviewed-by: Zorro Lang <zlang@redhat.com> Thanks, Zorro > tests/btrfs/294 | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/tests/btrfs/294 b/tests/btrfs/294 > index 61ce7d97..d7d13646 100755 > --- a/tests/btrfs/294 > +++ b/tests/btrfs/294 > @@ -16,11 +16,15 @@ _begin_fstest auto raid volume > > # Modify as appropriate. > _supported_fs btrfs > + > +# No zoned support for RAID56 yet. > +_require_non_zoned_device "${SCRATCH_DEV}" > + > _require_scratch_dev_pool 8 > _fixed_by_kernel_commit a7299a18a179 \ > "btrfs: fix u32 overflows when left shifting @stripe_nr" > -_fixed_by_kernel_commit xxxxxxxxxxxx \ > - "btrfs: use a dedicated helper to convert stripe_nr to offset" > +_fixed_by_kernel_commit cb091225a538 \ > + "btrfs: fix remaining u32 overflows when left shifting stripe_nr" > > _scratch_dev_pool_get 8 > > -- > 2.41.0 > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] btrfs/294: reject zoned devices for now 2023-07-24 4:55 ` Zorro Lang @ 2023-07-24 6:19 ` Naohiro Aota 0 siblings, 0 replies; 9+ messages in thread From: Naohiro Aota @ 2023-07-24 6:19 UTC (permalink / raw) To: Qu Wenruo, Zorro Lang Cc: linux-btrfs@vger.kernel.org, fstests@vger.kernel.org On Mon, Jul 24, 2023 at 12:55:30PM +0800, Zorro Lang wrote: > On Mon, Jul 24, 2023 at 11:04:23AM +0800, Qu Wenruo wrote: > > The test case itself is utilizing RAID5/6, which is not yet supported on > > zoned device. > > > > In the future we would use raid-stripe-tree (RST) feature, but for now > > just reject zoned devices completely. > > > > And since we're here, also update the _fixed_by_kernel_commit lines, as > > the proper fix is already merged upstream. > > > > Signed-off-by: Qu Wenruo <wqu@suse.com> > > --- > > Oh, good, you've sent this patch, ignore my reply to last patch. > Looks good to me. > > Reviewed-by: Zorro Lang <zlang@redhat.com> Thank you. I didn't notice the patch had been merged. Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com> > > Thanks, > Zorro > > > tests/btrfs/294 | 8 ++++++-- > > 1 file changed, 6 insertions(+), 2 deletions(-) > > > > diff --git a/tests/btrfs/294 b/tests/btrfs/294 > > index 61ce7d97..d7d13646 100755 > > --- a/tests/btrfs/294 > > +++ b/tests/btrfs/294 > > @@ -16,11 +16,15 @@ _begin_fstest auto raid volume > > > > # Modify as appropriate. > > _supported_fs btrfs > > + > > +# No zoned support for RAID56 yet. > > +_require_non_zoned_device "${SCRATCH_DEV}" > > + > > _require_scratch_dev_pool 8 > > _fixed_by_kernel_commit a7299a18a179 \ > > "btrfs: fix u32 overflows when left shifting @stripe_nr" > > -_fixed_by_kernel_commit xxxxxxxxxxxx \ > > - "btrfs: use a dedicated helper to convert stripe_nr to offset" > > +_fixed_by_kernel_commit cb091225a538 \ > > + "btrfs: fix remaining u32 overflows when left shifting stripe_nr" > > > > _scratch_dev_pool_get 8 > > > > -- > > 2.41.0 > > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] btrfs/294: reject zoned devices for now 2023-07-24 3:04 [PATCH] btrfs/294: reject zoned devices for now Qu Wenruo 2023-07-24 4:55 ` Zorro Lang @ 2023-07-24 14:10 ` Christoph Hellwig 2023-07-25 0:22 ` Naohiro Aota 2023-07-27 15:50 ` Zorro Lang 2 siblings, 1 reply; 9+ messages in thread From: Christoph Hellwig @ 2023-07-24 14:10 UTC (permalink / raw) To: Qu Wenruo; +Cc: linux-btrfs, fstests On Mon, Jul 24, 2023 at 11:04:23AM +0800, Qu Wenruo wrote: > The test case itself is utilizing RAID5/6, which is not yet supported on > zoned device. > > In the future we would use raid-stripe-tree (RST) feature, but for now > just reject zoned devices completely. > > And since we're here, also update the _fixed_by_kernel_commit lines, as > the proper fix is already merged upstream. Hmm, instead of spreading these checks, shouldn't we check that the RAID level is supported, and have one single nob for that based off it, similar to _btrfs_get_profile_configs()? ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] btrfs/294: reject zoned devices for now 2023-07-24 14:10 ` Christoph Hellwig @ 2023-07-25 0:22 ` Naohiro Aota 2023-07-25 0:58 ` Qu Wenruo 0 siblings, 1 reply; 9+ messages in thread From: Naohiro Aota @ 2023-07-25 0:22 UTC (permalink / raw) To: hch@infradead.org Cc: Qu Wenruo, linux-btrfs@vger.kernel.org, fstests@vger.kernel.org On Mon, Jul 24, 2023 at 07:10:51AM -0700, Christoph Hellwig wrote: > On Mon, Jul 24, 2023 at 11:04:23AM +0800, Qu Wenruo wrote: > > The test case itself is utilizing RAID5/6, which is not yet supported on > > zoned device. > > > > In the future we would use raid-stripe-tree (RST) feature, but for now > > just reject zoned devices completely. > > > > And since we're here, also update the _fixed_by_kernel_commit lines, as > > the proper fix is already merged upstream. > > Hmm, instead of spreading these checks, shouldn't we check that the > RAID level is supported, and have one single nob for that based off > it, similar to _btrfs_get_profile_configs()? > That's beneficial. We need to declare which profile the test going to use, something like this? _btrfs_require_profile raid5 raid6 or _btrfs_require_profile data:dup as the zoned mode cannot work with the DUP profile for data. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] btrfs/294: reject zoned devices for now 2023-07-25 0:22 ` Naohiro Aota @ 2023-07-25 0:58 ` Qu Wenruo 2023-07-25 16:11 ` David Sterba 0 siblings, 1 reply; 9+ messages in thread From: Qu Wenruo @ 2023-07-25 0:58 UTC (permalink / raw) To: Naohiro Aota, hch@infradead.org Cc: linux-btrfs@vger.kernel.org, fstests@vger.kernel.org On 2023/7/25 08:22, Naohiro Aota wrote: > On Mon, Jul 24, 2023 at 07:10:51AM -0700, Christoph Hellwig wrote: >> On Mon, Jul 24, 2023 at 11:04:23AM +0800, Qu Wenruo wrote: >>> The test case itself is utilizing RAID5/6, which is not yet supported on >>> zoned device. >>> >>> In the future we would use raid-stripe-tree (RST) feature, but for now >>> just reject zoned devices completely. >>> >>> And since we're here, also update the _fixed_by_kernel_commit lines, as >>> the proper fix is already merged upstream. >> >> Hmm, instead of spreading these checks, shouldn't we check that the >> RAID level is supported, and have one single nob for that based off >> it, similar to _btrfs_get_profile_configs()? >> > > That's beneficial. We need to declare which profile the test going to use, > something like this? > > _btrfs_require_profile raid5 raid6 > > or > > _btrfs_require_profile data:dup > > as the zoned mode cannot work with the DUP profile for data. The latter one sounds good, considering zoned support differs for data and metadata profiles. Another thing is, do we have any sysfs files to indicate what profiles we support? For now we only have a "zoned" features, but no dedicated zoned specific sysfs files. Would that be a good thing to consider? Thanks, Qu ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] btrfs/294: reject zoned devices for now 2023-07-25 0:58 ` Qu Wenruo @ 2023-07-25 16:11 ` David Sterba 0 siblings, 0 replies; 9+ messages in thread From: David Sterba @ 2023-07-25 16:11 UTC (permalink / raw) To: Qu Wenruo Cc: Naohiro Aota, hch@infradead.org, linux-btrfs@vger.kernel.org, fstests@vger.kernel.org On Tue, Jul 25, 2023 at 08:58:34AM +0800, Qu Wenruo wrote: > > > On 2023/7/25 08:22, Naohiro Aota wrote: > > On Mon, Jul 24, 2023 at 07:10:51AM -0700, Christoph Hellwig wrote: > >> On Mon, Jul 24, 2023 at 11:04:23AM +0800, Qu Wenruo wrote: > >>> The test case itself is utilizing RAID5/6, which is not yet supported on > >>> zoned device. > >>> > >>> In the future we would use raid-stripe-tree (RST) feature, but for now > >>> just reject zoned devices completely. > >>> > >>> And since we're here, also update the _fixed_by_kernel_commit lines, as > >>> the proper fix is already merged upstream. > >> > >> Hmm, instead of spreading these checks, shouldn't we check that the > >> RAID level is supported, and have one single nob for that based off > >> it, similar to _btrfs_get_profile_configs()? > >> > > > > That's beneficial. We need to declare which profile the test going to use, > > something like this? > > > > _btrfs_require_profile raid5 raid6 > > > > or > > > > _btrfs_require_profile data:dup > > > > as the zoned mode cannot work with the DUP profile for data. > > The latter one sounds good, considering zoned support differs for data > and metadata profiles. > > Another thing is, do we have any sysfs files to indicate what profiles > we support? > For now we only have a "zoned" features, but no dedicated zoned specific > sysfs files. > > Would that be a good thing to consider? We don't have it but I think it's a good idea not just for testing, we export other information as the "features/supported_..." files. The profiles don't change often but with the incremental support for zoned this would make it easier for tests to keep up. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] btrfs/294: reject zoned devices for now 2023-07-24 3:04 [PATCH] btrfs/294: reject zoned devices for now Qu Wenruo 2023-07-24 4:55 ` Zorro Lang 2023-07-24 14:10 ` Christoph Hellwig @ 2023-07-27 15:50 ` Zorro Lang 2023-07-27 22:15 ` Qu Wenruo 2 siblings, 1 reply; 9+ messages in thread From: Zorro Lang @ 2023-07-27 15:50 UTC (permalink / raw) To: Qu Wenruo; +Cc: linux-btrfs, fstests On Mon, Jul 24, 2023 at 11:04:23AM +0800, Qu Wenruo wrote: > The test case itself is utilizing RAID5/6, which is not yet supported on > zoned device. > > In the future we would use raid-stripe-tree (RST) feature, but for now > just reject zoned devices completely. > > And since we're here, also update the _fixed_by_kernel_commit lines, as > the proper fix is already merged upstream. > > Signed-off-by: Qu Wenruo <wqu@suse.com> > --- Just check before next fstests release. This patch has been reviewed, but looks like there're still more review points from btrfs list. So will you send a new version to replace this patch? Thanks, Zorro > tests/btrfs/294 | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/tests/btrfs/294 b/tests/btrfs/294 > index 61ce7d97..d7d13646 100755 > --- a/tests/btrfs/294 > +++ b/tests/btrfs/294 > @@ -16,11 +16,15 @@ _begin_fstest auto raid volume > > # Modify as appropriate. > _supported_fs btrfs > + > +# No zoned support for RAID56 yet. > +_require_non_zoned_device "${SCRATCH_DEV}" > + > _require_scratch_dev_pool 8 > _fixed_by_kernel_commit a7299a18a179 \ > "btrfs: fix u32 overflows when left shifting @stripe_nr" > -_fixed_by_kernel_commit xxxxxxxxxxxx \ > - "btrfs: use a dedicated helper to convert stripe_nr to offset" > +_fixed_by_kernel_commit cb091225a538 \ > + "btrfs: fix remaining u32 overflows when left shifting stripe_nr" > > _scratch_dev_pool_get 8 > > -- > 2.41.0 > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] btrfs/294: reject zoned devices for now 2023-07-27 15:50 ` Zorro Lang @ 2023-07-27 22:15 ` Qu Wenruo 0 siblings, 0 replies; 9+ messages in thread From: Qu Wenruo @ 2023-07-27 22:15 UTC (permalink / raw) To: Zorro Lang, Qu Wenruo; +Cc: linux-btrfs, fstests On 2023/7/27 23:50, Zorro Lang wrote: > On Mon, Jul 24, 2023 at 11:04:23AM +0800, Qu Wenruo wrote: >> The test case itself is utilizing RAID5/6, which is not yet supported on >> zoned device. >> >> In the future we would use raid-stripe-tree (RST) feature, but for now >> just reject zoned devices completely. >> >> And since we're here, also update the _fixed_by_kernel_commit lines, as >> the proper fix is already merged upstream. >> >> Signed-off-by: Qu Wenruo <wqu@suse.com> >> --- > > Just check before next fstests release. This patch has been reviewed, but looks > like there're still more review points from btrfs list. So will you send a new > version to replace this patch? IMHO the patch is fine to be merged for now. The new comments are mostly a future work idea, which needs some time to develop and extra kernel features. Thanks, Qu > > Thanks, > Zorro > >> tests/btrfs/294 | 8 ++++++-- >> 1 file changed, 6 insertions(+), 2 deletions(-) >> >> diff --git a/tests/btrfs/294 b/tests/btrfs/294 >> index 61ce7d97..d7d13646 100755 >> --- a/tests/btrfs/294 >> +++ b/tests/btrfs/294 >> @@ -16,11 +16,15 @@ _begin_fstest auto raid volume >> >> # Modify as appropriate. >> _supported_fs btrfs >> + >> +# No zoned support for RAID56 yet. >> +_require_non_zoned_device "${SCRATCH_DEV}" >> + >> _require_scratch_dev_pool 8 >> _fixed_by_kernel_commit a7299a18a179 \ >> "btrfs: fix u32 overflows when left shifting @stripe_nr" >> -_fixed_by_kernel_commit xxxxxxxxxxxx \ >> - "btrfs: use a dedicated helper to convert stripe_nr to offset" >> +_fixed_by_kernel_commit cb091225a538 \ >> + "btrfs: fix remaining u32 overflows when left shifting stripe_nr" >> >> _scratch_dev_pool_get 8 >> >> -- >> 2.41.0 >> > ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-07-27 22:15 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-07-24 3:04 [PATCH] btrfs/294: reject zoned devices for now Qu Wenruo 2023-07-24 4:55 ` Zorro Lang 2023-07-24 6:19 ` Naohiro Aota 2023-07-24 14:10 ` Christoph Hellwig 2023-07-25 0:22 ` Naohiro Aota 2023-07-25 0:58 ` Qu Wenruo 2023-07-25 16:11 ` David Sterba 2023-07-27 15:50 ` Zorro Lang 2023-07-27 22:15 ` Qu Wenruo
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox