summaryrefslogtreecommitdiffstats
path: root/tools/vgrename.c
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2010-02-24 20:01:40 +0000
committerMilan Broz <mbroz@redhat.com>2010-02-24 20:01:40 +0000
commit65752052e1850acf27929cd40aa6e0098b0d7645 (patch)
tree2d76a6d2f91bb94003a0e2fd0aba7eeee7685c82 /tools/vgrename.c
parentab9663f394e543bedf3cd475ed1a515c7d66786d (diff)
downloadlvm2-65752052e1850acf27929cd40aa6e0098b0d7645.tar.gz
lvm2-65752052e1850acf27929cd40aa6e0098b0d7645.tar.xz
lvm2-65752052e1850acf27929cd40aa6e0098b0d7645.zip
Remove lvs_in_vg_activated_by_uuid_only call.
There is no difference from lvs_in_vg_activated now, convert all users to this call.
Diffstat (limited to 'tools/vgrename.c')
-rw-r--r--tools/vgrename.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/vgrename.c b/tools/vgrename.c
index faf20bca..a63a6266 100644
--- a/tools/vgrename.c
+++ b/tools/vgrename.c
@@ -29,7 +29,7 @@ static struct volume_group *vg_rename_old(struct cmd_context *cmd,
return_NULL;
}
- if (lvs_in_vg_activated_by_uuid_only(vg)) {
+ if (lvs_in_vg_activated(vg)) {
unlock_and_release_vg(cmd, vg, vg_name_old);
log_error("Volume group \"%s\" still has active LVs",
vg_name_old);
@@ -161,7 +161,7 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path,
if (test_mode())
log_verbose("Test mode: Skipping rename.");
- else if (lvs_in_vg_activated_by_uuid_only(vg)) {
+ else if (lvs_in_vg_activated(vg)) {
if (!vg_refresh_visible(cmd, vg)) {
log_error("Renaming \"%s\" to \"%s\" failed",
old_path, new_path);