]> sourceware.org Git - lvm2.git/commitdiff
Replicator: VG with cmd_missing_vgs does not generate output
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 24 May 2010 08:59:29 +0000 (08:59 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 24 May 2010 08:59:29 +0000 (08:59 +0000)
Do not print message if missing VG is found.

WHATS_NEW
tools/vgchange.c

index 6989e64536676c7cbbaaffd7b838d4ccb6bbb3da..c09de9e40b5f72968fc66819ec2b816283c4af52 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -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).
index a25a373cec6979e3eb6267a3b071b78a0dffeab8..4f27eea972188a48686615f970a611af21c6d28a 100644 (file)
@@ -224,8 +224,10 @@ static int _vgchange_available(struct cmd_context *cmd, struct volume_group *vg)
 
        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;
 }
 
This page took 1.207753 seconds and 5 git commands to generate.