Skip to contentSkip to conversation

LVM2 ./WHATS_NEW tools/vgchange.c

PATCH [email protected] 1 participant 1 message May 24, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2010-05-24 08:59:30

Modified files:
. : WHATS_NEW
tools : vgchange.c

Log message:
Replicator: VG with cmd_missing_vgs does not generate output

Do not print message if missing VG is found.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1591&r2=1.1592
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgchange.c.diff?cvsroot=lvm2&r1=1.102&r2=1.103

WHATS_NEW +1 -0
@@ -1,5 +1,6 @@
 Version 2.02.67 -
 ===============================
+  Avoid print activation message if there is a missing VG (Replicator).
   Fixed scripts/relpath.awk to work in mawk
   Add _add_partial_replicator_to_dtree().
   Activation code read and releases also remote VGs (Replicator).
tools/vgchange.c +4 -2
@@ -224,8 +224,10 @@
 
 	ret = _activate_lvs_in_vg(cmd, vg, available);
 
-	log_print("%d logical volume(s) in volume group \"%s\" now active",
-		  lvs_in_vg_activated(vg), vg->name);
+	/* Print message only if there was not found a missing VG */
+	if (!vg->cmd_missing_vgs)
+		log_print("%d logical volume(s) in volume group \"%s\" now active",
+			  lvs_in_vg_activated(vg), vg->name);
 	return ret;
 }