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:
parent
105c07d1b4
commit
061e371319
@ -531,10 +531,9 @@ 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;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Activate the temporary mirror LV */
|
||||
|
Loading…
Reference in New Issue
Block a user