Blame SOURCES/lvm2-2_02_178-cleanup-drop-unused-code.patch

f0aa83
From be970a7e85cd3659119ca349303f3dd2ef40592b Mon Sep 17 00:00:00 2001
f0aa83
From: Zdenek Kabelac <zkabelac@redhat.com>
f0aa83
Date: Thu, 11 Jan 2018 16:11:21 +0100
f0aa83
Subject: [PATCH 20/25] cleanup: drop unused code
f0aa83
f0aa83
(cherry picked from commit 3aedaa7f2aa3c8622538e2758bf905ceb156db4a)
f0aa83
---
f0aa83
 tools/pvmove.c | 9 ---------
f0aa83
 1 file changed, 9 deletions(-)
f0aa83
f0aa83
diff --git a/tools/pvmove.c b/tools/pvmove.c
f0aa83
index af3fec4..b3d1d89 100644
f0aa83
--- a/tools/pvmove.c
f0aa83
+++ b/tools/pvmove.c
f0aa83
@@ -329,8 +329,6 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
f0aa83
 	uint32_t log_count = 0;
f0aa83
 	int lv_found = 0;
f0aa83
 	int lv_skipped = 0;
f0aa83
-	int lv_active_count = 0;
f0aa83
-	int lv_exclusive_count = 0;
f0aa83
 
f0aa83
 	/* FIXME Cope with non-contiguous => splitting existing segments */
f0aa83
 	if (!(lv_mirr = lv_create_empty("pvmove%d", NULL,
f0aa83
@@ -451,13 +449,6 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
f0aa83
 			continue;
f0aa83
 		}
f0aa83
 
f0aa83
-		if (vg_is_clustered(vg)) {
f0aa83
-			if (lv_is_active_exclusive_locally(lv))
f0aa83
-				lv_exclusive_count++;
f0aa83
-			else if (lv_is_active(lv))
f0aa83
-				lv_active_count++;
f0aa83
-		}
f0aa83
-
f0aa83
 		if (!_insert_pvmove_mirrors(cmd, lv_mirr, source_pvl, lv,
f0aa83
 					    *lvs_changed))
f0aa83
 			return_NULL;
f0aa83
-- 
f0aa83
1.8.3.1
f0aa83