diff options
author | Alasdair Kergon <agk@redhat.com> | 2009-09-14 22:47:49 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2009-09-14 22:47:49 +0000 |
commit | 651ff9b32865373f9f6298fbe7b0ea5419da3746 (patch) | |
tree | 898c9215fdb07ca76b616f29cbcd45d3cbd74d21 /tools/vgexport.c | |
parent | 905240f91da66571da073df8784f1f42b2888328 (diff) | |
download | lvm2-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.c | 10 |
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; } |