1dmmp_strerror(3) Device Mapper Multipath API - libdmmp Manual dmmp_strerror(3)
2
3
4

NAME

6       dmmp_strerror - Convert error code to string.
7

SYNOPSIS

9       const char * dmmp_strerror (int rc);
10

ARGUMENTS

12       rc          int.  Return code by libdmmp functions. When provided error
13                   code is not a valid error code, return "Invalid argument".
14

DESCRIPTION

16       Convert error code (int) to string (const char *):
17
18       * DMMP_OK -- "OK"
19
20       * DMMP_ERR_BUG -- "BUG of libdmmp library"
21
22       * DMMP_ERR_NO_MEMORY -- "Out of memory"
23
24       * DMMP_ERR_IPC_TIMEOUT -- "Timeout when  communicate  with  multipathd,
25       try to set bigger timeout value via dmmp_context_timeout_set ()"
26
27       * DMMP_ERR_IPC_ERROR -- "Error when communicate with multipathd daemon"
28
29       * DMMP_ERR_NO_DAEMON -- "The multipathd daemon not started"
30
31       *  DMMP_ERR_INCOMPATIBLE  -- "The multipathd daemon version is not com‐
32       patible with current library"
33
34       * Other invalid error number -- "Invalid argument"
35

RETURN

37       const char *. The meaning of provided error code.
38
39
40
41July 2019                        dmmp_strerror                dmmp_strerror(3)
Impressum