summaryrefslogtreecommitdiffstats
path: root/liblvm/lvm_vg.c
diff options
context:
space:
mode:
authorDave Wysochanski <dwysocha@redhat.com>2010-06-30 18:03:52 +0000
committerDave Wysochanski <dwysocha@redhat.com>2010-06-30 18:03:52 +0000
commit40b4d1c3ae32fa24b5f034ba9c2e39c9e31d35a1 (patch)
treed26fc71d67e10f02a55a89148f78db055237cfbf /liblvm/lvm_vg.c
parent23177eda88d4f0f1e6ab8c43ced751aa441e47b4 (diff)
downloadlvm2-40b4d1c3ae32fa24b5f034ba9c2e39c9e31d35a1.tar.gz
lvm2-40b4d1c3ae32fa24b5f034ba9c2e39c9e31d35a1.tar.xz
lvm2-40b4d1c3ae32fa24b5f034ba9c2e39c9e31d35a1.zip
Refactor vg_remove_check to place pv removal into separate function.
Diffstat (limited to 'liblvm/lvm_vg.c')
-rw-r--r--liblvm/lvm_vg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/liblvm/lvm_vg.c b/liblvm/lvm_vg.c
index ada40707..20aeb4f3 100644
--- a/liblvm/lvm_vg.c
+++ b/liblvm/lvm_vg.c
@@ -180,6 +180,8 @@ int lvm_vg_remove(vg_t vg)
if (!vg_remove_check(vg))
return -1;
+ vg_remove_pvs(vg);
+
return 0;
}