summaryrefslogtreecommitdiff
path: root/liblvm
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2011-04-01 13:44:51 +0000
committerPeter Rajnoha <prajnoha@redhat.com>2011-04-01 13:44:51 +0000
commit2c67b829a53d386f995ec7d98699e179317e2d23 (patch)
treec413eb576a427ffa2e7d28230fe3584ad3790e47 /liblvm
parent91d865cab579154787b37aaecfba92fe4485dcbd (diff)
downloadlvm2-2c67b829a53d386f995ec7d98699e179317e2d23.tar.gz
Finalize PV format instances properly in lvm_vg_write fn.
lvm_vg_write fn reinitializes the vg->removed_pvs list. We have to finalize all PV format instances attached to PVs found in the original list.
Diffstat (limited to 'liblvm')
-rw-r--r--liblvm/lvm_vg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/liblvm/lvm_vg.c b/liblvm/lvm_vg.c
index dfc0c5ee2..08b421286 100644
--- a/liblvm/lvm_vg.c
+++ b/liblvm/lvm_vg.c
@@ -147,6 +147,7 @@ int lvm_vg_write(vg_t vg)
if (! dm_list_empty(&vg->removed_pvs)) {
dm_list_iterate_items(pvl, &vg->removed_pvs) {
pv_write_orphan(vg->cmd, pvl->pv);
+ pv_set_fid(pvl->pv, NULL);
/* FIXME: do pvremove / label_remove()? */
}
dm_list_init(&vg->removed_pvs);