mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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:
parent
e7670d3338
commit
c2b10daf69
@ -513,6 +513,7 @@ static int _scan_list(struct dm_list *devs, int *failed)
|
|||||||
if (!_scan_dev_open(devl->dev)) {
|
if (!_scan_dev_open(devl->dev)) {
|
||||||
log_debug_devs("%s: Failed to open device.", dev_name(devl->dev));
|
log_debug_devs("%s: Failed to open device.", dev_name(devl->dev));
|
||||||
dm_list_del(&devl->list);
|
dm_list_del(&devl->list);
|
||||||
|
dm_list_add(&done_devs, &devl->list);
|
||||||
scan_failed_count++;
|
scan_failed_count++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -561,8 +562,8 @@ static int _scan_list(struct dm_list *devs, int *failed)
|
|||||||
if (!dm_list_empty(devs))
|
if (!dm_list_empty(devs))
|
||||||
goto scan_more;
|
goto scan_more;
|
||||||
|
|
||||||
log_debug_devs("Scanned %d devices: %d for lvm, %d failed.",
|
log_debug_devs("Scanned devices: %d lvm, %d failed.",
|
||||||
dm_list_size(&done_devs), scan_lvm_count, scan_failed_count);
|
scan_lvm_count, scan_failed_count);
|
||||||
|
|
||||||
if (failed)
|
if (failed)
|
||||||
*failed = scan_failed_count;
|
*failed = scan_failed_count;
|
||||||
|
Loading…
Reference in New Issue
Block a user