From b2642d2846111a01ab485fac677a4f443e3bda3c Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Mon, 25 Nov 2024 18:01:32 +0100 Subject: [PATCH] libmultipath: reduce log level of "map X has multiple targets" On systems with LVM volumes, "multipath -ll" will spit out lots of messages like libmp_mapinfo: map vg-lv0 has multiple targets which is irritating. Reduce the log level of these messages to 3, as they are harmless most of the time. This is a backport of e8949c2 ("libmultipath: reduce log level of libmp_mapinfo() messages") from the master branch. We can't apply exactly the same fix because the stable branch is missing 8c772d3 ("libmultipath: check DM UUID earlier in libmp_mapinfo__"). Signed-off-by: Martin Wilck --- libmultipath/devmapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c index 52bfe9ce..fe5637b3 100644 --- a/libmultipath/devmapper.c +++ b/libmultipath/devmapper.c @@ -718,7 +718,7 @@ static int libmp_mapinfo__(int flags, mapid_t id, mapinfo_t info, const char *ma if (info.target || info.status || info.size || flags & MAPINFO_TGT_TYPE__) { if (dm_get_next_target(dmt, NULL, &start, &length, &target_type, ¶ms) != NULL) { - condlog(2, "%s: map %s has multiple targets", fname__, map_id); + condlog(3, "%s: map %s has multiple targets", fname__, map_id); return DMP_NOT_FOUND; } if (!params) {