Blame SOURCES/lvm2-2_02_187-mirror-directly-activate-updated-mirror.patch

b83e05
 lib/metadata/mirror.c | 2 +-
b83e05
 1 file changed, 1 insertion(+), 1 deletion(-)
b83e05
b83e05
diff --git a/lib/metadata/mirror.c b/lib/metadata/mirror.c
b83e05
index cd8ce1e..6cd88cb 100644
b83e05
--- a/lib/metadata/mirror.c
b83e05
+++ b/lib/metadata/mirror.c
b83e05
@@ -790,7 +790,7 @@ static int _split_mirror_images(struct logical_volume *lv,
b83e05
 
b83e05
 	act = lv_is_active(lv_lock_holder(lv));
b83e05
 
b83e05
-	if (act && (!deactivate_lv(cmd, new_lv) || !_activate_lv_like_model(lv, new_lv))) {
b83e05
+	if (act && !_activate_lv_like_model(lv, new_lv)) {
b83e05
 		log_error("Failed to rename newly split LV in the kernel");
b83e05
 		return 0;
b83e05
 	}