[libmultipath] Minimize noise with snapshots in emc_clariion checker
authorJerome Levy <jerome.levy@emc.com>
Sat, 27 Apr 2013 07:54:55 +0000 (09:54 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Sat, 27 Apr 2013 07:54:55 +0000 (09:54 +0200)
Patch to stop emc_clariion_checker from logging messages when probes
to snapshot LUNs occur. Notification is still available if logging is
turned up (see condlog()) but normal probing of snapshots will no
longer produce status messages. Path functionality on snapshot probes
is unchanged.

Signed-off-by: Jerry Levy <jerome.levy@emc.com>
libmultipath/checkers/emc_clariion.c

index b42d267..5d87bfd 100644 (file)
@@ -15,6 +15,7 @@
 #include "../libmultipath/sg_include.h"
 #include "libsg.h"
 #include "checkers.h"
+#include "debug.h"
 
 #define INQUIRY_CMD     0x12
 #define INQUIRY_CMDLEN  6
@@ -199,7 +200,7 @@ int libcheck_check (struct checker * c)
                                 * 02/04/03 not 05/25/01 on read.
                                 */
                                SET_INACTIVE_SNAP(c);
-                               MSG(c, "emc_clariion_checker: Active "
+                               condlog(3, "emc_clariion_checker: Active "
                                        "path to inactive snapshot WWN %s.",
                                        wwnstr);
                        } else
@@ -220,7 +221,7 @@ int libcheck_check (struct checker * c)
        } else {
                if (IS_INACTIVE_SNAP(c)) {
                        hexadecimal_to_ascii(ct->wwn, wwnstr);
-                       MSG(c, "emc_clariion_checker: Passive "
+                       condlog(3, "emc_clariion_checker: Passive "
                                "path to inactive snapshot WWN %s.",
                                wwnstr);
                        ret = PATH_DOWN;