Whenever a dm device gets a change uevent, multipathd prints an add map message. This can get confusing for users, so change that message to not print at the default log level. commit b429df90b6db4d9544d01d5cd052e83710acaab0 in upstream made the change. However 0008-multipathd-disable-queueing-for-recreated-map-in-uev.patch changed it back. Now fix it.
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From 5353a851b4ba8a356bf02bf3f1bb903025dbc664 Mon Sep 17 00:00:00 2001
|
|
From: Kou Wenqi <kouwenqi@kylinos.cn>
|
|
Date: Fri, 27 Sep 2024 13:37:25 +0800
|
|
Subject: [PATCH] multipathd: don't print so many add map messages
|
|
|
|
Whenever a dm device gets a change uevent, multipathd prints an add map
|
|
message. This can get confusing for users, so change that message to
|
|
not print at the default log level.
|
|
|
|
commit b429df90b6db4d9544d01d5cd052e83710acaab0 in upstream made the change.
|
|
However 0008-multipathd-disable-queueing-for-recreated-map-in-uev.patch
|
|
changed it back.
|
|
Now fix it.
|
|
---
|
|
multipathd/main.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/multipathd/main.c b/multipathd/main.c
|
|
index 53a7fa2..6a88b10 100644
|
|
--- a/multipathd/main.c
|
|
+++ b/multipathd/main.c
|
|
@@ -674,7 +674,7 @@ uev_add_map (struct uevent * uev, struct vectors * vecs)
|
|
char *alias;
|
|
int major = -1, minor = -1, rc;
|
|
|
|
- condlog(2, "%s: add map (uevent)", uev->kernel);
|
|
+ condlog(3, "%s: add map (uevent)", uev->kernel);
|
|
alias = uevent_get_dm_name(uev);
|
|
if (!alias) {
|
|
condlog(3, "%s: No DM_NAME in uevent", uev->kernel);
|
|
--
|
|
2.27.0
|
|
|