From: Carlos Maiolino <cem@kernel.org>
To: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Cc: Zorro Lang <zlang@kernel.org>, Christoph Hellwig <hch@lst.de>,
Naohiro Aota <naohiro.aota@wdc.com>,
linux-btrfs@vger.kernel.org, fstests@vger.kernel.org
Subject: Re: [PATCH 1/2] common/zoned: allow setting the zloop device capacity and extra parameters
Date: Wed, 11 Nov 2026 11:18:15 +0100 [thread overview]
Message-ID: <avRActUZsyGVFKb6@cronus.toxiclabs.cc> (raw)
In-Reply-To: <20261109175146.1146100-1-johannes.thumshirn@wdc.com>
On Mon, Nov 09, 2026 at 06:51:45PM +0100, Johannes Thumshirn wrote:
> Add optional fourth and fifth arguments to _create_zloop() so tests can
> size the backing device, which matters when the backing files share a
> filesystem with the test data, and pass additional zloop parameters.
>
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
> ---
> common/zoned | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/common/zoned b/common/zoned
> index 89d0a061..7fe794f9 100644
> --- a/common/zoned
> +++ b/common/zoned
> @@ -81,9 +81,17 @@ _create_zloop()
> local conv_zones=",conv_zones=$3"
> fi
>
> + if [ -n "$4" ]; then
> + local capacity=",capacity_mb=$4"
> + fi
> +
> + if [ -n "$5" ]; then
> + local extra=",$5"
> + fi
> +
> mkdir -p "$zloop_base/$id"
>
> - local zloop_args="add id=$id,base_dir=$zloop_base$zone_size$conv_zones"
> + local zloop_args="add id=$id,base_dir=$zloop_base$zone_size$conv_zones$capacity$extra"
Looks good.
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
>
> echo "$zloop_args" > /dev/zloop-control || \
> _fail "cannot create zloop device"
> --
> 2.56.0
>
>
next prev parent reply other threads:[~2026-11-11 10:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 17:51 [PATCH 1/2] common/zoned: allow setting the zloop device capacity and extra parameters Johannes Thumshirn
2026-11-09 17:51 ` [PATCH 2/2] btrfs: test active zone reservation with metadata on conventional zones Johannes Thumshirn
2026-11-11 10:18 ` Carlos Maiolino [this message]
2026-11-11 16:40 ` [PATCH 1/2] common/zoned: allow setting the zloop device capacity and extra parameters Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=avRActUZsyGVFKb6@cronus.toxiclabs.cc \
--to=cem@kernel.org \
--cc=fstests@vger.kernel.org \
--cc=hch@lst.de \
--cc=johannes.thumshirn@wdc.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=naohiro.aota@wdc.com \
--cc=zlang@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.