summaryrefslogtreecommitdiffstats
path: root/tools/vgrename.c
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2012-02-10 01:28:27 +0000
committerPetr Rockai <prockai@redhat.com>2012-02-10 01:28:27 +0000
commit8e5f7cf3dc1d75d0a370729326522bcac29b489d (patch)
treea8e7130afabb199942ac06ac6298b13ce4988266 /tools/vgrename.c
parent5fa417a9c0aa2d7ea80e1087e0d2943536fc5b9d (diff)
downloadlvm2-8e5f7cf3dc1d75d0a370729326522bcac29b489d.tar.gz
lvm2-8e5f7cf3dc1d75d0a370729326522bcac29b489d.tar.xz
lvm2-8e5f7cf3dc1d75d0a370729326522bcac29b489d.zip
Move lvmcache data structures behind an API (making the structures private to
lvmcache.c). No functional change.
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 1f1f9434..58e559b0 100644
--- a/tools/vgrename.c
+++ b/tools/vgrename.c
@@ -87,7 +87,7 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path,
dm_list_iterate_items(sl, vgids) {
vgid = sl->str;
- if (!vgid || !(vg_name = vgname_from_vgid(NULL, vgid)))
+ if (!vgid || !(vg_name = lvmcache_vgname_from_vgid(NULL, vgid)))
continue;
if (!strcmp(vg_name, vg_name_old)) {
if (match) {
@@ -102,7 +102,7 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path,
log_suppress(2);
found_id = id_read_format(&id, vg_name_old);
log_suppress(0);
- if (found_id && (vg_name = vgname_from_vgid(cmd->mem, (char *)id.uuid))) {
+ if (found_id && (vg_name = lvmcache_vgname_from_vgid(cmd->mem, (char *)id.uuid))) {
vg_name_old = vg_name;
vgid = (char *)id.uuid;
} else