From: Anand Jain <anand.jain@oracle.com>
To: Johannes Thumshirn <Johannes.Thumshirn@wdc.com>
Cc: Zorro Lang <zlang@redhat.com>,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>,
"fstests@vger.kernel.org" <fstests@vger.kernel.org>,
"fdmanana@suse.com" <fdmanana@suse.com>
Subject: Re: [PATCH v3 2/3] filter.btrfs: add filter for btrfs device add
Date: Tue, 27 Feb 2024 17:31:28 +0530 [thread overview]
Message-ID: <595c0a6d-77cd-4949-b361-625cd92e67e5@oracle.com> (raw)
In-Reply-To: <e6e04661-eb57-4239-8246-6d4bfbb813b4@wdc.com>
On 2/27/24 16:48, Johannes Thumshirn wrote:
> On 26.02.24 18:16, Anand Jain wrote:
>> On 2/15/24 17:17, Johannes Thumshirn wrote:
>>> Add a filter for the output of btrfs device add.
>>>
>>> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
>>> ---
>>> common/filter.btrfs | 9 +++++++++
>>> 1 file changed, 9 insertions(+)
>>>
>>> diff --git a/common/filter.btrfs b/common/filter.btrfs
>>> index ea76e7291108..a1c3013ecb5d 100644
>>> --- a/common/filter.btrfs
>>> +++ b/common/filter.btrfs
>>> @@ -147,5 +147,14 @@ _filter_balance_convert()
>>> _filter_scratch | \
>>> sed -e "s/relocate [0-9]\+ out of [0-9]\+ chunks/relocate X out of X chunks/g"
>>> }
>>> +
>>> +# filter output of "btrfs device add"
>>> +_filter_device_add()
>>> +{
>>> + _filter_scratch | _filter_scratch_pool | \
>>> + sed -e "s/Resetting device zones SCRATCH_DEV ([0-9]\+/Resetting device zones SCRATCH_DEV (XXX/g"
>>> +
>>> +}
>>> +
>>> # make sure this script returns success
>>> /bin/true
>>>
>>
>> Works well with all zone devices.
>>
>> When only the first device is a zone and the rest aren't,
>> you are seeing.
>>
>> -----------
>> btrfs/310 1s ... - output mismatch (see /fstests/results//btrfs/310.out.bad)
>> --- tests/btrfs/310.out 2024-02-26 19:17:51.092325188 +0800
>> +++ /fstests/results//btrfs/310.out.bad 2024-02-27
>> 01:07:13.097603491 +0800
>> @@ -2,11 +2,8 @@
>> Done, had to relocate X out of X chunks
>> ERROR: error during balancing 'SCRATCH_MNT': Invalid argument
>> There may be more info in syslog - try dmesg | tail
>> -Resetting device zones SCRATCH_DEV (XXX zones) ...
>> ERROR: error during balancing 'SCRATCH_MNT': Invalid argument
>> ERROR: error during balancing 'SCRATCH_MNT': Invalid argument
>> -Resetting device zones SCRATCH_DEV (XXX zones) ...
>> ...
>> (Run 'diff -u /fstests/tests/btrfs/310.out
>> /fstests/results//btrfs/310.out.bad' to see the entire diff)
>>
>> HINT: You _MAY_ be missing kernel fix:
>> XXXXXXXXXX btrfs: zoned: don't skip block group profile checks on
>> conv zones
>> -------------
>>
>> I have the kernel with fixes.
>>
>
> Ah ok, do you want me to update the whole series or send a follow up to
> fold in?
>
Just the fix-up patch for 2/3 is fine.
Thanks, Anand
> Both is fine for me.
>
>
next prev parent reply other threads:[~2024-02-27 12:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-15 11:47 [PATCH v3 0/3] fstests: btrfs: add test for zoned balance profile conversion bug Johannes Thumshirn
2024-02-15 11:47 ` [PATCH v3 1/3] filter.brtfs: add filter for conversion Johannes Thumshirn
2024-02-15 11:47 ` [PATCH v3 2/3] filter.btrfs: add filter for btrfs device add Johannes Thumshirn
2024-02-26 17:16 ` Anand Jain
2024-02-27 11:18 ` Johannes Thumshirn
2024-02-27 12:01 ` Anand Jain [this message]
2024-02-15 11:47 ` [PATCH v3 3/3] fstests: btrfs: check conversion of zoned fileystems Johannes Thumshirn
2024-02-27 13:12 ` Zorro Lang
2024-02-27 17:34 ` Johannes Thumshirn
2024-02-28 9:52 ` Anand Jain
2024-02-26 11:53 ` [PATCH v3 0/3] fstests: btrfs: add test for zoned balance profile conversion bug Johannes Thumshirn
2024-02-26 12:52 ` Anand Jain
2024-02-27 13:14 ` Zorro Lang
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=595c0a6d-77cd-4949-b361-625cd92e67e5@oracle.com \
--to=anand.jain@oracle.com \
--cc=Johannes.Thumshirn@wdc.com \
--cc=fdmanana@suse.com \
--cc=fstests@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=zlang@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox