Skip to content

Commit

Permalink
libmultipath: reduce log level of "map X has multiple targets"
Browse files Browse the repository at this point in the history
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 <mwilck@suse.com>
  • Loading branch information
mwilck committed Nov 25, 2024
1 parent 84a4dcc commit b2642d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmultipath/devmapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, &params) != 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) {
Expand Down

0 comments on commit b2642d2

Please sign in to comment.