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/vgcfgbackup.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/vgcfgbackup.c')
-rw-r--r-- | tools/vgcfgbackup.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/vgcfgbackup.c b/tools/vgcfgbackup.c index 2491b8ce9..4c61714e3 100644 --- a/tools/vgcfgbackup.c +++ b/tools/vgcfgbackup.c @@ -54,9 +54,6 @@ static int vg_backup_single(struct cmd_context *cmd, const char *vg_name, char **last_filename = (char **)handle; char *filename; - if (vg_read_error(vg) && (vg_read_error(vg) != FAILED_INCONSISTENT)) - return ECMD_FAILED; - if (arg_count(cmd, file_ARG)) { if (!(filename = _expand_filename(arg_value(cmd, file_ARG), vg->name, last_filename))) { @@ -64,8 +61,10 @@ static int vg_backup_single(struct cmd_context *cmd, const char *vg_name, return ECMD_FAILED; } - if (!backup_to_file(filename, vg->cmd->cmd_line, vg)) + if (!backup_to_file(filename, vg->cmd->cmd_line, vg)) { + stack; return ECMD_FAILED; + } } else { if (vg_read_error(vg) == FAILED_INCONSISTENT) { log_error("No backup taken: specify filename with -f " |