Add generic messages for "timed out" and "still running".
They will be needed by follow-up patches.

Signed-off-by: Martin Wilck <[email protected]>
---
 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


Reply via email to