summaryrefslogtreecommitdiff
path: root/tools/vgexport.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/vgexport.c
parent905240f91da66571da073df8784f1f42b2888328 (diff)
downloadlvm2-651ff9b32865373f9f6298fbe7b0ea5419da3746.tar.gz
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/vgexport.c')
-rw-r--r--tools/vgexport.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/vgexport.c b/tools/vgexport.c
index 59627b971..e3b1890eb 100644
--- a/tools/vgexport.c
+++ b/tools/vgexport.c
@@ -24,16 +24,16 @@ static int vgexport_single(struct cmd_context *cmd __attribute((unused)),
struct physical_volume *pv;
if (vg_read_error(vg))
- goto error;
+ goto_bad;
if (lvs_in_vg_activated(vg)) {
log_error("Volume group \"%s\" has active logical volumes",
vg_name);
- goto error;
+ goto bad;
}
if (!archive(vg))
- goto error;
+ goto_bad;
vg->status |= EXPORTED_VG;
@@ -43,7 +43,7 @@ static int vgexport_single(struct cmd_context *cmd __attribute((unused)),
}
if (!vg_write(vg) || !vg_commit(vg))
- goto error;
+ goto_bad;
backup(vg);
@@ -51,7 +51,7 @@ static int vgexport_single(struct cmd_context *cmd __attribute((unused)),
return ECMD_PROCESSED;
- error:
+bad:
return ECMD_FAILED;
}