summaryrefslogtreecommitdiffstats
path: root/tools/vgreduce.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2009-01-26 19:01:32 +0000
committerAlasdair Kergon <agk@redhat.com>2009-01-26 19:01:32 +0000
commit8544a8a2544958bf3cf116f6887b9849332c4db4 (patch)
tree29fb7b90cfbeb609e8a8e1b6cf9dda409a2447bb /tools/vgreduce.c
parent302125622a84be279e013197136cbf414d3539df (diff)
downloadlvm2-8544a8a2544958bf3cf116f6887b9849332c4db4.tar.gz
lvm2-8544a8a2544958bf3cf116f6887b9849332c4db4.tar.xz
lvm2-8544a8a2544958bf3cf116f6887b9849332c4db4.zip
Rename vg_read() to vg_read_internal(). (mornfall)
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r--tools/vgreduce.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c
index 9449b60d..79bf3e09 100644
--- a/tools/vgreduce.c
+++ b/tools/vgreduce.c
@@ -426,7 +426,7 @@ static int _vgreduce_single(struct cmd_context *cmd, struct volume_group *vg,
vg->free_count -= pv_pe_count(pv) - pv_pe_alloc_count(pv);
vg->extent_count -= pv_pe_count(pv);
- if(!(orphan_vg = vg_read(cmd, vg->fid->fmt->orphan_vg_name, NULL, &consistent)) ||
+ if(!(orphan_vg = vg_read_internal(cmd, vg->fid->fmt->orphan_vg_name, NULL, &consistent)) ||
!consistent) {
log_error("Unable to read existing orphan PVs");
unlock_vg(cmd, VG_ORPHANS);
@@ -520,7 +520,7 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv)
return ECMD_FAILED;
}
- if ((!(vg = vg_read(cmd, vg_name, NULL, &consistent)) || !consistent)
+ if ((!(vg = vg_read_internal(cmd, vg_name, NULL, &consistent)) || !consistent)
&& !repairing) {
log_error("Volume group \"%s\" doesn't exist", vg_name);
unlock_vg(cmd, vg_name);
@@ -541,7 +541,7 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv)
}
consistent = !arg_count(cmd, force_ARG);
- if (!(vg = vg_read(cmd, vg_name, NULL, &consistent))) {
+ if (!(vg = vg_read_internal(cmd, vg_name, NULL, &consistent))) {
log_error("Volume group \"%s\" not found", vg_name);
unlock_vg(cmd, vg_name);
return ECMD_FAILED;