From 3dfeaca59ba9623bdb8301d94a7ef49093afd575 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Thu, 17 Dec 2009 13:54:46 +0000 Subject: Also clean up MISSING devices in --removemissing --force in vgreduce. --- tools/vgreduce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/vgreduce.c') diff --git a/tools/vgreduce.c b/tools/vgreduce.c index e80fa9ad..1ffd72b3 100644 --- a/tools/vgreduce.c +++ b/tools/vgreduce.c @@ -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) { pvl = dm_list_item(pvh, struct pv_list); - if (pvl->pv->dev) + if (pvl->pv->dev && !(pvl->pv->status & MISSING_PV)) continue; if (!_remove_pv(vg, pvl, 0)) return_0; -- cgit