[PATCH v2 02/19] libmultipath: checkers: add two generic checker messages
From: Martin Wilck <hidden>
Date: 2026-05-22 16:44:42
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Martin Wilck <hidden>
Date: 2026-05-22 16:44:42
Subsystem:
the rest · Maintainer:
Linus Torvalds
Add generic messages for "timed out" and "still running". They will be needed by follow-up patches. Signed-off-by: Martin Wilck <redacted> Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com> --- libmultipath/checkers.c | 2 ++ libmultipath/checkers.h | 2 ++ 2 files changed, 4 insertions(+)
diff --git a/libmultipath/checkers.c b/libmultipath/checkers.c
index bb6ad1e..8a90ade 100644
--- a/libmultipath/checkers.c
+++ b/libmultipath/checkers.c@@ -365,6 +365,8 @@ static const char *generic_msg[CHECKER_GENERIC_MSGTABLE_SIZE] = { [CHECKER_MSGID_GHOST] = " reports path is ghost", [CHECKER_MSGID_UNSUPPORTED] = " doesn't support this device", [CHECKER_MSGID_DISCONNECTED] = " no access to this device", + [CHECKER_MSGID_TIMEOUT] = " timed out", + [CHECKER_MSGID_RUNNING] = " still running", }; const char *checker_message(const struct checker *c)
diff --git a/libmultipath/checkers.h b/libmultipath/checkers.h
index a969e7d..2317cd1 100644
--- a/libmultipath/checkers.h
+++ b/libmultipath/checkers.h@@ -124,6 +124,8 @@ enum { CHECKER_MSGID_GHOST, CHECKER_MSGID_UNSUPPORTED, CHECKER_MSGID_DISCONNECTED, + CHECKER_MSGID_TIMEOUT, + CHECKER_MSGID_RUNNING, CHECKER_GENERIC_MSGTABLE_SIZE, CHECKER_FIRST_MSGID = 100, /* lowest msgid for checkers */ CHECKER_MSGTABLE_SIZE = 100, /* max msg table size for checkers */
--
2.54.0