1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

scan: put dev back on caller's list

Commit 6e442875613915e506440e59a290b56756df2521 missed
adding devs back to caller's list.
This commit is contained in:
David Teigland 2018-02-15 14:17:51 -06:00
parent e7670d3338
commit c2b10daf69

View File

@ -513,6 +513,7 @@ static int _scan_list(struct dm_list *devs, int *failed)
if (!_scan_dev_open(devl->dev)) {
log_debug_devs("%s: Failed to open device.", dev_name(devl->dev));
dm_list_del(&devl->list);
dm_list_add(&done_devs, &devl->list);
scan_failed_count++;
continue;
}
@ -561,8 +562,8 @@ static int _scan_list(struct dm_list *devs, int *failed)
if (!dm_list_empty(devs))
goto scan_more;
log_debug_devs("Scanned %d devices: %d for lvm, %d failed.",
dm_list_size(&done_devs), scan_lvm_count, scan_failed_count);
log_debug_devs("Scanned devices: %d lvm, %d failed.",
scan_lvm_count, scan_failed_count);
if (failed)
*failed = scan_failed_count;