diff options
author | Petr Rockai <prockai@redhat.com> | 2009-12-17 13:54:46 +0000 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2009-12-17 13:54:46 +0000 |
commit | 3dfeaca59ba9623bdb8301d94a7ef49093afd575 (patch) | |
tree | 0c0f74c5228686672c1d3beb9dcfa8f85ac6f6b0 /tools/vgreduce.c | |
parent | 207542b40ee2e6e8f5e62ec05cf4b28befd8e37c (diff) | |
download | lvm2-3dfeaca59ba9623bdb8301d94a7ef49093afd575.tar.gz lvm2-3dfeaca59ba9623bdb8301d94a7ef49093afd575.tar.xz lvm2-3dfeaca59ba9623bdb8301d94a7ef49093afd575.zip |
Also clean up MISSING devices in --removemissing --force in vgreduce.
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r-- | tools/vgreduce.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |