1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

pvmove: fix wrong error path in _update_metadata

fix regression introduced in 65623b63a2

should return zero no matter the result of resume_lvs fn in error
path
This commit is contained in:
Ondrej Kozina 2015-04-16 17:46:38 +02:00
parent 105c07d1b4
commit 061e371319

View File

@ -531,11 +531,10 @@ static int _update_metadata(struct cmd_context *cmd, struct volume_group *vg,
/* Commit on-disk metadata */
if (!vg_commit(vg)) {
log_error("ABORTING: First volume group metadata update failed.");
if (!resume_lvs(cmd, lvs_changed)) {
if (!resume_lvs(cmd, lvs_changed))
log_error("Unable to resume logical volumes.");
return 0;
}
}
/* Activate the temporary mirror LV */
/* Only the first mirror segment gets activated as a mirror */