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

scan: leave the caller's dev list unchanged

When scanning the list of devs from the caller
they are moved to another temporary list, but
were never returned to the original list.
This commit is contained in:
David Teigland 2018-02-14 16:15:30 -06:00
parent 7bce66c5e8
commit f328532f05

View File

@ -567,6 +567,8 @@ static int _scan_list(struct dm_list *devs, int *failed)
if (failed)
*failed = scan_failed_count;
dm_list_splice(devs, &done_devs);
return 1;
}