Re: [PATCH v9 07/11] btrfs: zoned: allow zoned RAID

From: David Sterba
Date: Thu Sep 14 2023 - 14:00:07 EST


On Thu, Sep 14, 2023 at 09:07:02AM -0700, Johannes Thumshirn wrote:
> --- a/fs/btrfs/zoned.c
> +++ b/fs/btrfs/zoned.c
> @@ -1397,9 +1397,11 @@ static int btrfs_load_block_group_dup(struct btrfs_block_group *bg,
> struct zone_info *zone_info,
> unsigned long *active)
> {
> - if (map->type & BTRFS_BLOCK_GROUP_DATA) {
> - btrfs_err(bg->fs_info,
> - "zoned: profile DUP not yet supported on data bg");
> + struct btrfs_fs_info *fs_info = bg->fs_info;
> +
> + if (map->type & BTRFS_BLOCK_GROUP_DATA &&
> + !fs_info->stripe_root) {
> + btrfs_err(fs_info, "zoned: data DUP profile needs stripe_root");

Using stripe_root for identifier is ok so we don't have overly long ones
but for user messages please use raid-stripe-tree. Fixed.