> On 4 Jul 2019, at 12:09 AM, David Sterba <dsterba@xxxxxxx> wrote:
>
> On Wed, Jun 26, 2019 at 01:30:17AM -0700, Anand Jain wrote:
>> From: Anand Jain <Anand.Jain@xxxxxxxxxx>
>>
>> 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 <anand.jain@xxxxxxxxxx>
>
> 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.
----
[root@dvm btrfs-progs]# make TEST=021\* test-misc
[LD] fssum
[TEST] misc-tests.sh
[TEST/misc] 021-image-multi-devices
[root@dvm btrfs-progs]#
[root@dvm btrfs-progs]#
[root@dvm btrfs-progs]#
[root@dvm btrfs-progs]# gl | head -1
299892f3c43d btrfs-progs: dump-tree: add noscan option
[root@dvm btrfs-progs]# make all
make: Nothing to be done for `all'.
[root@dvm btrfs-progs]#
------