From: Baokun Li <libaokun1@huawei.com>
To: Aleksandr Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Cc: <fstests@vger.kernel.org>, <linux-ext4@vger.kernel.org>,
<jack@suse.cz>, <tytso@mit.edu>,
Yang Erkun <yangerkun@huawei.com>
Subject: Re: [PATCH] ext4/032: add a new testcase in online resize tests
Date: Thu, 14 Nov 2024 11:04:30 +0800 [thread overview]
Message-ID: <4be150fb-45c8-424f-84d0-378d2cdbc229@huawei.com> (raw)
In-Reply-To: <CAEivzxc-=zsDk_dy7LnTUNzHqVTqm5vW9_3TBaCRrnmZJTxu5g@mail.gmail.com>
Hi Alexander,
On 2024/11/11 23:25, Aleksandr Mikhalitsyn wrote:
> On Sat, Nov 9, 2024 at 4:32 AM Baokun Li <libaokun1@huawei.com> wrote:
>> Hi Alexander,
>>
>> Thanks for the patch.
>>
>> On 2024/11/8 21:48, Alexander Mikhalitsyn wrote:
>>> Add a new testcase for [1] commit in ext4 online resize testsuite.
>>>
>>> Link: https://lore.kernel.org/linux-ext4/20240927133329.1015041-1-libaokun@huaweicloud.com [1]
>>> Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
>>> ---
>>> tests/ext4/032 | 4 ++++
>>> 1 file changed, 4 insertions(+)
>>>
>>> diff --git a/tests/ext4/032 b/tests/ext4/032
>>> index 6bc3b61b..77d592f4 100755
>>> --- a/tests/ext4/032
>>> +++ b/tests/ext4/032
>>> @@ -97,6 +97,10 @@ mkdir -p $IMG_MNT || _fail "cannot create loopback mount point"
>>> # Check if online resizing with bigalloc is supported by the kernel
>>> ext4_online_resize 4096 8192 1
>>>
>>> +_fixed_by_kernel_commit 6121258c2b33 \
>>> + "ext4: fix off by one issue in alloc_flex_gd()"
>>> +ext4_online_resize $(c2b 6400) $(c2b 786432)
>>> +
> Hi Baokun,
>
>> I think this test would be better placed in the loop below. Then add some
>> comments describing the scenario being tested.
> Have done. Thanks!
Okay.
>> There are two current scenarios for off by one:
>> * The above test is to expand from the first block group of a flex_bg to
>> the next flex_bg;
>> * Another scenario is to expand from the first block group of a flex_bg
>> to the last block group of this flex_bg. For example,
>> `ext4_online_resize $(c2b 6400) $(c2b 524288)`
> This test does not fail for me when I test without "ext4: fix off by
> one issue in alloc_flex_gd()" fix, so I decided not to take it.
Well, since we didn't check the off-by-one case directly, the latter case
really didn't cause the test case to fail before, and it doesn't appear
to have any effect at the moment, other than using some more memory.
Cheers,
Baokun
next prev parent reply other threads:[~2024-11-14 3:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-08 13:48 [PATCH] ext4/032: add a new testcase in online resize tests Alexander Mikhalitsyn
2024-11-09 3:32 ` Baokun Li
2024-11-11 15:25 ` Aleksandr Mikhalitsyn
2024-11-14 3:04 ` Baokun Li [this message]
2024-11-09 12:01 ` Zorro Lang
2024-11-11 15:22 ` Aleksandr Mikhalitsyn
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=4be150fb-45c8-424f-84d0-378d2cdbc229@huawei.com \
--to=libaokun1@huawei.com \
--cc=aleksandr.mikhalitsyn@canonical.com \
--cc=fstests@vger.kernel.org \
--cc=jack@suse.cz \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
--cc=yangerkun@huawei.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