From e6a1e6ede4adc37946e20a1128ba34570745ac87 Mon Sep 17 00:00:00 2001 From: kouwenqi Date: Fri, 20 Sep 2024 14:33:14 +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. --- ...don-t-print-so-many-add-map-messages.patch | 33 +++++++++++++++++++ multipath-tools.spec | 6 +++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 0053-multipathd-don-t-print-so-many-add-map-messages.patch diff --git a/0053-multipathd-don-t-print-so-many-add-map-messages.patch b/0053-multipathd-don-t-print-so-many-add-map-messages.patch new file mode 100644 index 0000000..bfbcfb7 --- /dev/null +++ b/0053-multipathd-don-t-print-so-many-add-map-messages.patch @@ -0,0 +1,33 @@ +From 5353a851b4ba8a356bf02bf3f1bb903025dbc664 Mon Sep 17 00:00:00 2001 +From: Kou Wenqi +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 + diff --git a/multipath-tools.spec b/multipath-tools.spec index 41bffd9..694fea6 100644 --- a/multipath-tools.spec +++ b/multipath-tools.spec @@ -2,7 +2,7 @@ Name: multipath-tools Version: 0.8.4 -Release: 30 +Release: 31 Summary: Tools to manage multipath devices with the device-mapper License: GPL-2.0-or-later and LGPL-2.0-only URL: http://christophe.varoqui.free.fr/ @@ -62,6 +62,7 @@ Patch49: 0049-multipath.conf.5-fix-the-description-of-prio_args-fo.patch Patch50: 0050-multipath-display-the-correct-configuration-when-dum.patch Patch51: 0051-multipath-return-failure-on-an-invalid-remove-comman.patch Patch52: 0052-libmultipath-limit-paths-that-can-get-wwid-from-envi.patch +Patch53: 0053-multipathd-don-t-print-so-many-add-map-messages.patch BuildRequires: multipath-tools, libcmocka, libcmocka-devel BuildRequires: gcc, libaio-devel, userspace-rcu-devel, device-mapper-devel >= 1.02.89 @@ -210,6 +211,9 @@ fi %changelog +* Fri Sep 27 2024 kouwenqi - 0.8.4-31 +- multipathd: don't print so many add map messages + * Tue Aug 27 2024 kouwenqi - 0.8.4-30 - sync patch50 with community