summaryrefslogtreecommitdiffstats
path: root/tools/vgrename.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2007-03-08 21:08:25 +0000
committerAlasdair Kergon <agk@redhat.com>2007-03-08 21:08:25 +0000
commitb45c9f49d02c721a8c8e6a8cc430687b2a90b36a (patch)
tree21ef22442769291072bbb5b53683a0bf1d96db63 /tools/vgrename.c
parent8fe54fddbaf84410e280614ff4e344c9b4e1c51c (diff)
downloadlvm2-b45c9f49d02c721a8c8e6a8cc430687b2a90b36a.tar.gz
lvm2-b45c9f49d02c721a8c8e6a8cc430687b2a90b36a.tar.xz
lvm2-b45c9f49d02c721a8c8e6a8cc430687b2a90b36a.zip
Fix vgrename active LV check to ignore differing vgids.
Diffstat (limited to 'tools/vgrename.c')
-rw-r--r--tools/vgrename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgrename.c b/tools/vgrename.c
index 7a724a59..0da8be66 100644
--- a/tools/vgrename.c
+++ b/tools/vgrename.c
@@ -118,7 +118,7 @@ int vgrename(struct cmd_context *cmd, int argc, char **argv)
return ECMD_FAILED;
}
- if (lvs_in_vg_activated(vg_old)) {
+ if (lvs_in_vg_activated_by_uuid_only(vg_old)) {
unlock_vg(cmd, vg_name_old);
log_error("Volume group \"%s\" still has active LVs",
vg_name_old);