Re: [PATCH v7 RESEND Rebased] btrfs-progs: dump-tree: add noscan option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux