Blame SOURCES/lvm2-2_02_187-pvmove-check-if-participating-LV-is-already-exlcusiv.patch

b83e05
 WHATS_NEW      | 1 +
b83e05
 tools/pvmove.c | 3 ++-
b83e05
 2 files changed, 3 insertions(+), 1 deletion(-)
b83e05
b83e05
diff --git a/WHATS_NEW b/WHATS_NEW
b83e05
index d99f183..399864d 100644
b83e05
--- a/WHATS_NEW
b83e05
+++ b/WHATS_NEW
b83e05
@@ -1,6 +1,7 @@
b83e05
 Version 2.02.187 - 
b83e05
 ===================================
b83e05
   Prevent creating VGs with PVs with different logical block sizes.
b83e05
+  Pvmove runs in exlusively activating mode for exclusively active LVs.
b83e05
 
b83e05
 Version 2.02.186 - 27th August 2019
b83e05
 ===================================
b83e05
diff --git a/tools/pvmove.c b/tools/pvmove.c
b83e05
index 754bd58..3a447c4 100644
b83e05
--- a/tools/pvmove.c
b83e05
+++ b/tools/pvmove.c
b83e05
@@ -674,7 +674,8 @@ static int _pvmove_setup_single(struct cmd_context *cmd,
b83e05
 		dm_list_iterate_items(lvl, lvs_changed) {
b83e05
 			lvh = lv_lock_holder(lvl->lv);
b83e05
 			/* Exclusive LV decides whether pvmove must be also exclusive */
b83e05
-			if (lv_is_origin(lvh) || seg_only_exclusive(first_seg(lvh)))
b83e05
+			if (lv_is_origin(lvh) || seg_only_exclusive(first_seg(lvh)) ||
b83e05
+			    lv_is_active_exclusive(lvh))
b83e05
 				exclusive = 1;
b83e05
 		}
b83e05