From: Qu Wenruo <wqu@suse.com>
To: kreijack@inwind.it, linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH 2/2] btrfs-progs: fsck-tests: make test case 066 to be repairable
Date: Sat, 15 Nov 2025 21:15:32 +1030 [thread overview]
Message-ID: <ae23e676-1a1e-4e12-b23e-9431a14239a2@suse.com> (raw)
In-Reply-To: <314461b6-9c30-4f19-aed3-486656db661e@libero.it>
在 2025/11/15 20:17, Goffredo Baroncelli 写道:
> On 14/11/2025 22.46, Qu Wenruo wrote:
>> The test case fsck/066 is only to verify we can detect the missing root
>> orphan item, no repair for it yet.
>>
>> Now the repair ability is added, change the test case to verify the
>> repair is also properly done.
>
>
> It seems more that this patch only can removed a test...
>
> May be something was wrong ?
Nope, it's completely correct.
Check run_one_test() from tests/fsck-tests.sh.
There are tons of examples inside tests/fsck-tests/ where there are only
test images without test.sh.
Test.sh are all utilized to override the existing check_image() which is
not the full default check-repair-check run.
Thanks,
Qu
>
>
>>
>> Signed-off-by: Qu Wenruo <wqu@suse.com>
>> ---
>> .../.lowmem_repairable | 0
>> .../066-missing-root-orphan-item/test.sh | 14 --------------
>> 2 files changed, 14 deletions(-)
>> create mode 100644 tests/fsck-tests/066-missing-root-orphan-
>> item/.lowmem_repairable
>> delete mode 100755 tests/fsck-tests/066-missing-root-orphan-item/
>> test.sh
>>
>> diff --git a/tests/fsck-tests/066-missing-root-orphan-
>> item/.lowmem_repairable b/tests/fsck-tests/066-missing-root-orphan-
>> item/.lowmem_repairable
>> new file mode 100644
>> index 000000000000..e69de29bb2d1
>> diff --git a/tests/fsck-tests/066-missing-root-orphan-item/test.sh b/
>> tests/fsck-tests/066-missing-root-orphan-item/test.sh
>> deleted file mode 100755
>> index 9db625714c1f..000000000000
>> --- a/tests/fsck-tests/066-missing-root-orphan-item/test.sh
>> +++ /dev/null
>> @@ -1,14 +0,0 @@
>> -#!/bin/bash
>> -#
>> -# Verify that check can report missing orphan root itemm as an error
>> -
>> -source "$TEST_TOP/common" || exit
>> -
>> -check_prereq btrfs
>> -
>> -check_image() {
>> - run_mustfail "missing root orphan item not reported as an error" \
>> - "$TOP/btrfs" check "$1"
>> -}
>> -
>> -check_all_images
>
>
next prev parent reply other threads:[~2025-11-15 10:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-14 21:45 [PATCH 0/2] btrfs-progs: check: add repair ability for missing root orphan item Qu Wenruo
2025-11-14 21:45 ` [PATCH 1/2] btrfs-progs: check: add repair ability for missing orphan root item Qu Wenruo
2025-11-19 23:02 ` Boris Burkov
2025-11-14 21:46 ` [PATCH 2/2] btrfs-progs: fsck-tests: make test case 066 to be repairable Qu Wenruo
[not found] ` <314461b6-9c30-4f19-aed3-486656db661e@libero.it>
2025-11-15 10:45 ` Qu Wenruo [this message]
2025-11-19 23:03 ` Boris Burkov
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=ae23e676-1a1e-4e12-b23e-9431a14239a2@suse.com \
--to=wqu@suse.com \
--cc=kreijack@inwind.it \
--cc=linux-btrfs@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox