diff options
author | Alasdair Kergon <agk@redhat.com> | 2009-06-26 09:19:13 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2009-06-26 09:19:13 +0000 |
commit | 2f5a1df42cbd5b6a10d994a80e24b8df1a62d5ee (patch) | |
tree | a5e196730e0d25474fe11f21340e6248b0a6dd21 /tools/lvrename.c | |
parent | 024e2cd0e669857087701edd4e783c22b02de049 (diff) | |
download | lvm2-2f5a1df42cbd5b6a10d994a80e24b8df1a62d5ee.tar.gz |
Abort if automatic metadata correction fails when reading VG to update it.
Diffstat (limited to 'tools/lvrename.c')
-rw-r--r-- | tools/lvrename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lvrename.c b/tools/lvrename.c index fae82c3f8..b5d3b3832 100644 --- a/tools/lvrename.c +++ b/tools/lvrename.c @@ -104,7 +104,7 @@ int lvrename(struct cmd_context *cmd, int argc, char **argv) log_verbose("Checking for existing volume group \"%s\"", vg_name); if (!(vg = vg_lock_and_read(cmd, vg_name, NULL, LCK_VG_WRITE, CLUSTERED | EXPORTED_VG | LVM_WRITE, - CORRECT_INCONSISTENT))) + CORRECT_INCONSISTENT | FAIL_INCONSISTENT))) return ECMD_FAILED; if (!(lvl = find_lv_in_vg(vg, lv_name_old))) { |