mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 2 years ago
Clone

Blame SOURCES/lvm2-2_03_06-vgchange-don-t-fail-monitor-command-if-vg-is-exporte.patch

26e710
 tools/vgchange.c | 2 ++
26e710
 1 file changed, 2 insertions(+)
26e710
26e710
diff --git a/tools/vgchange.c b/tools/vgchange.c
26e710
index d6d4f91..a17f456 100644
26e710
--- a/tools/vgchange.c
26e710
+++ b/tools/vgchange.c
26e710
@@ -631,6 +631,8 @@ static int _vgchange_single(struct cmd_context *cmd, const char *vg_name,
26e710
 	};
26e710
 
26e710
 	if (vg_is_exported(vg)) {
26e710
+		if (cmd->command->command_enum == vgchange_monitor_CMD)
26e710
+			return ECMD_PROCESSED;
26e710
 		log_error("Volume group \"%s\" is exported", vg_name);
26e710
 		return ECMD_FAILED;
26e710
 	}