> On 4 Jul 2019, at 7:39 AM, David Sterba <[email protected]> wrote:
>
> On Thu, Jul 04, 2019 at 06:16:54AM +0800, Anand Jain wrote:
>>
>>
>>> On 4 Jul 2019, at 12:09 AM, David Sterba <[email protected]> wrote:
>>>
>>> On Wed, Jun 26, 2019 at 01:30:17AM -0700, Anand Jain wrote:
>>>> From: Anand Jain <[email protected]>
>>>>
>>>> The cli 'btrfs inspect dump-tree <dev>' will scan for the partner devices
>>>> if any by default.
>>>>
>>>> So as of now you can not inspect each mirrored device independently.
>>>>
>>>> This patch adds noscan option, which when used won't scan the system for
>>>> the partner devices, instead it just uses the devices provided in the
>>>> argument.
>>>>
>>>> For example:
>>>> btrfs inspect dump-tree --noscan <dev> [<dev>..]
>>>>
>>>> This helps to debug degraded raid1 and raid10.
>>>>
>>>> Signed-off-by: Anand Jain <[email protected]>
>>>
>>> This makes misc-test/021-image-multi-devices fail
>>>
>>> ====== RUN CHECK root_helper mount /dev/loop2 .../btrfs-progs/tests//mnt
>>> ====== RUN CHECK md5sum .../btrfs-progs/tests//mnt/foobar
>>> md5sum: .../btrfs-progs/tests//mnt/foobar: Input/output error
>>> failed: md5sum .../btrfs-progs/tests//mnt/foobar
>>> ====== RUN CHECK root_helper umount .../btrfs-progs/tests//mnt
>>> ====== RUN CHECK root_helper losetup -d /dev/loop2
>>> ====== RUN CHECK root_helper losetup -d /dev/loop3
>>>
>>> note the md5sum error, that does not happen otherwise
>>
>>
>> I am on devel. It runs fine. Test-misc/021 doesn’t use dump-tree at all.
>> Its strange that mnt/foobar fails to read in your case.
>
> Sorry, I replied to the wrong patch,
> it's the other one "btrfs-progs:
> dump-tree: add noscan option”.
Typo in the other one? Because "dump-tree: add noscan option” is this.