diff mbox

[14/18] Replicator: activate change for vgchange

Message ID 1257171622-8380-15-git-send-email-zkabelac@redhat.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Zdenek Kabelac Nov. 2, 2009, 2:20 p.m. UTC
None
diff mbox

Patch

diff --git a/tools/vgchange.c b/tools/vgchange.c
index d6af3b0..7fefe0a 100644
--- a/tools/vgchange.c
+++ b/tools/vgchange.c
@@ -69,6 +69,12 @@  static int _activate_lvs_in_vg(struct cmd_context *cmd,
 		if ((lv->status & MIRROR_IMAGE) || (lv->status & MIRROR_LOG))
 			continue;
 
+		/* Only request activation of the first replicator-dev LV */
+		if (lv_is_rlog(lv) || lv_is_slog(lv) || lv_is_rimage(lv) ||
+		    lv_is_replicator(lv) ||
+		    (lv_is_replicator_dev(lv) && (lv != first_replicator_dev(lv))))
+			continue;
+
 		/* Can't deactivate a pvmove LV */
 		/* FIXME There needs to be a controlled way of doing this */
 		if (((activate == CHANGE_AN) || (activate == CHANGE_ALN)) &&