Skip to content

libmultipath: utter less dev_loss_tmo warnings

[email protected] dm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 4 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [dm-devel] [PATCH 0/4] libmultipath: utter less dev_loss_tmo warnings

From: Martin Wilck <[email protected]>

Hi Christophe,

since 3ab1f3b ("libmultipath: print message if setting dev_loss_tmo is unsupported"), multipathd prints a warning at level 2 for every map for which dev_loss_tmo can't be set. This results in a large number of warnings if there are many maps with such unsupported protocols, like this:

multipathd[1398]: 36001405328d6683b6cb4739943adf643: setting dev_loss_tmo is unsupported for protocol scsi:unspec

This patch set makes changes the code to print this warning only once per unsupported protocol. It would have been simpler to never print the warning more than once, but I figured that might suppress important information in some cases.

Regards
Martin

Martin Wilck (4):
libmultipath: enable linear ordering of bus/proto tuple
libmultipath: use bus_protocol_id() in snprint_path_protocol()
libmultipath: enable defining a static bitfield
libmultipath: only warn once about unsupported dev_loss_tmo

 libmultipath/discovery.c |  4 ++-
 libmultipath/print.c     | 58 +++++++++++++++-------------------------
 libmultipath/structs.c   | 10 +++++++
 libmultipath/structs.h   | 13 +++++++--
 libmultipath/util.h      | 10 +++++++
 5 files changed, 55 insertions(+), 40 deletions(-)
Signature · 7 lines
2.35.1


--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel