From df7edc00b8304d26c9111d39b23bee611a843342 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 24 May 2010 08:59:29 +0000 Subject: Replicator: VG with cmd_missing_vgs does not generate output Do not print message if missing VG is found. --- tools/vgchange.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools/vgchange.c') diff --git a/tools/vgchange.c b/tools/vgchange.c index a25a373c..4f27eea9 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -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; } -- cgit