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/vgimport.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/vgimport.c')
-rw-r--r-- | tools/vgimport.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/vgimport.c b/tools/vgimport.c index 5161b6236..7eeb5db3f 100644 --- a/tools/vgimport.c +++ b/tools/vgimport.c @@ -24,20 +24,20 @@ static int vgimport_single(struct cmd_context *cmd __attribute((unused)), struct physical_volume *pv; if (vg_read_error(vg)) - goto error; + goto_bad; if (!vg_is_exported(vg)) { log_error("Volume group \"%s\" is not exported", vg_name); - goto error; + goto bad; } if (vg_status(vg) & PARTIAL_VG) { log_error("Volume group \"%s\" is partially missing", vg_name); - goto error; + goto bad; } if (!archive(vg)) - goto error; + goto_bad; vg->status &= ~EXPORTED_VG; @@ -47,7 +47,7 @@ static int vgimport_single(struct cmd_context *cmd __attribute((unused)), } if (!vg_write(vg) || !vg_commit(vg)) - goto error; + goto_bad; backup(vg); @@ -55,7 +55,7 @@ static int vgimport_single(struct cmd_context *cmd __attribute((unused)), return ECMD_PROCESSED; - error: +bad: return ECMD_FAILED; } |