Re: [PATCH] btrfs-progs: Dont' stop scanning of devices at first failed device

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

 



On Thu, Mar 10, 2016 at 04:04:35PM -0800, Yauhen Kharuzhy wrote:
> When 'btrfs device scan' command is invoked, it scans all devices,
> check them for btrfs superblock and add devices with btrfs to a list.
> 
> Next, each device from the list is passed to kernel where it is handled
> in the btrfs_scan_one_device() function. This function can, for example,
> return -EBUSY when device contains superblock matched to existing and
> mounted filesystem (if this device was pulled out from RAID and
> connected again after some time).
> 
> btrfs tool stops device scan if any device has been failed to add, so
> other existing devices with (possibly) valid FS will never be reached.
> 
> Fix this by remove stopping at any failure in the btrfs_register_all_devices(),
> just return error count. btrfs_scan_one_device() reports any kind of
> error already.
> 
> Signed-off-by: Yauhen Kharuzhy <yauhen.kharuzhy@xxxxxxxxxxxxx>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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