summaryrefslogtreecommitdiffstats
path: root/tools/vgreduce.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2009-09-14 22:47:49 +0000
committerAlasdair Kergon <agk@redhat.com>2009-09-14 22:47:49 +0000
commit651ff9b32865373f9f6298fbe7b0ea5419da3746 (patch)
tree898c9215fdb07ca76b616f29cbcd45d3cbd74d21 /tools/vgreduce.c
parent905240f91da66571da073df8784f1f42b2888328 (diff)
downloadlvm2-651ff9b32865373f9f6298fbe7b0ea5419da3746.tar.gz
lvm2-651ff9b32865373f9f6298fbe7b0ea5419da3746.tar.xz
lvm2-651ff9b32865373f9f6298fbe7b0ea5419da3746.zip
Add lots of missing stack debug messages to tools.
Make readonly locking available as locking type 4. Fix readonly locking to permit writeable global locks (for vgscan). (2.02.49)
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r--tools/vgreduce.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c
index 8b66a992..e80fa9ad 100644
--- a/tools/vgreduce.c
+++ b/tools/vgreduce.c
@@ -404,7 +404,7 @@ static int _vgreduce_single(struct cmd_context *cmd, struct volume_group *vg,
pvl = find_pv_in_vg(vg, name);
if (!archive(vg))
- goto bad;
+ goto_bad;
log_verbose("Removing \"%s\" from volume group \"%s\"", name, vg->name);
@@ -512,12 +512,12 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv)
vg = vg_read_for_update(cmd, vg_name, NULL, READ_ALLOW_EXPORTED);
if (vg_read_error(vg) == FAILED_ALLOCATION ||
vg_read_error(vg) == FAILED_NOTFOUND)
- goto out;
+ goto_out;
/* FIXME We want to allow read-only VGs to be changed here? */
if (vg_read_error(vg) && vg_read_error(vg) != FAILED_READ_ONLY
&& !arg_count(cmd, removemissing_ARG))
- goto out;
+ goto_out;
if (repairing) {
if (!vg_read_error(vg) && !vg_missing_pv_count(vg)) {
@@ -536,14 +536,14 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv)
if (vg_read_error(vg) && vg_read_error(vg) != FAILED_READ_ONLY
&& vg_read_error(vg) != FAILED_INCONSISTENT)
- goto out;
+ goto_out;
if (!archive(vg))
- goto out;
+ goto_out;
if (arg_count(cmd, force_ARG)) {
if (!_make_vg_consistent(cmd, vg))
- goto out;
+ goto_out;
} else
fixed = _consolidate_vg(cmd, vg);
@@ -563,7 +563,7 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv)
} else {
if (!vg_check_status(vg, EXPORTED_VG | LVM_WRITE | RESIZEABLE_VG))
- goto out;
+ goto_out;
/* FIXME: Pass private struct through to all these functions */
/* and update in batch here? */