[dm-devel] [PATCH 11/14] multipath -C: decrease log level

Martin Wilck mwilck at suse.com
Fri Jan 12 22:07:40 UTC 2018


Avoid that the positive case ("usable paths found") spams the
syslog on systems with many LUNs.

Signed-off-by: Martin Wilck <mwilck at suse.com>
---
 multipath/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/multipath/main.c b/multipath/main.c
index 25162a0e9a7c..52bf1658bbca 100644
--- a/multipath/main.c
+++ b/multipath/main.c
@@ -325,7 +325,8 @@ static int check_usable_paths(struct config *conf,
 		}
 	}
 found:
-	condlog(2, "%s:%s usable paths found", devpath, r == 0 ? "" : " no");
+	condlog(r == 0 ? 3 : 2, "%s:%s usable paths found",
+		devpath, r == 0 ? "" : " no");
 free:
 	FREE(mapname);
 	free_multipath(mpp, FREE_PATHS);
-- 
2.15.1




More information about the dm-devel mailing list