diff options
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 59627b97..e3b1890e 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; } |