mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
mirror: directly activate updated mirror
This commit is contained in:
parent
80b2de9e6a
commit
ab315e7a81
@ -739,7 +739,7 @@ static int _split_mirror_images(struct logical_volume *lv,
|
||||
|
||||
act = lv_is_active(lv_lock_holder(lv));
|
||||
|
||||
if (act && (!deactivate_lv(cmd, new_lv) || !_activate_lv_like_model(lv, new_lv))) {
|
||||
if (act && !_activate_lv_like_model(lv, new_lv)) {
|
||||
log_error("Failed to rename newly split LV in the kernel");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user