mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
Also clean up MISSING devices in --removemissing --force in vgreduce.
This commit is contained in:
parent
207542b40e
commit
3dfeaca59b
@ -224,7 +224,7 @@ static int _make_vg_consistent(struct cmd_context *cmd, struct volume_group *vg)
|
|||||||
*/
|
*/
|
||||||
dm_list_iterate_safe(pvh, pvht, &vg->pvs) {
|
dm_list_iterate_safe(pvh, pvht, &vg->pvs) {
|
||||||
pvl = dm_list_item(pvh, struct pv_list);
|
pvl = dm_list_item(pvh, struct pv_list);
|
||||||
if (pvl->pv->dev)
|
if (pvl->pv->dev && !(pvl->pv->status & MISSING_PV))
|
||||||
continue;
|
continue;
|
||||||
if (!_remove_pv(vg, pvl, 0))
|
if (!_remove_pv(vg, pvl, 0))
|
||||||
return_0;
|
return_0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user