 |
pacemaker
2.0.3-4b1f869f0f
Scalable High-Availability cluster resource manager
|
Go to the documentation of this file.
20 #include <qb/qbdefs.h>
31 case E2BIG:
return "E2BIG";
32 case EACCES:
return "EACCES";
33 case EADDRINUSE:
return "EADDRINUSE";
34 case EADDRNOTAVAIL:
return "EADDRNOTAVAIL";
35 case EAFNOSUPPORT:
return "EAFNOSUPPORT";
36 case EAGAIN:
return "EAGAIN";
37 case EALREADY:
return "EALREADY";
38 case EBADF:
return "EBADF";
39 case EBADMSG:
return "EBADMSG";
40 case EBUSY:
return "EBUSY";
41 case ECANCELED:
return "ECANCELED";
42 case ECHILD:
return "ECHILD";
43 case ECOMM:
return "ECOMM";
44 case ECONNABORTED:
return "ECONNABORTED";
45 case ECONNREFUSED:
return "ECONNREFUSED";
46 case ECONNRESET:
return "ECONNRESET";
48 case EDESTADDRREQ:
return "EDESTADDRREQ";
49 case EDOM:
return "EDOM";
50 case EDQUOT:
return "EDQUOT";
51 case EEXIST:
return "EEXIST";
52 case EFAULT:
return "EFAULT";
53 case EFBIG:
return "EFBIG";
54 case EHOSTDOWN:
return "EHOSTDOWN";
55 case EHOSTUNREACH:
return "EHOSTUNREACH";
56 case EIDRM:
return "EIDRM";
57 case EILSEQ:
return "EILSEQ";
58 case EINPROGRESS:
return "EINPROGRESS";
59 case EINTR:
return "EINTR";
60 case EINVAL:
return "EINVAL";
61 case EIO:
return "EIO";
62 case EISCONN:
return "EISCONN";
63 case EISDIR:
return "EISDIR";
65 case ELOOP:
return "ELOOP";
66 case EMFILE:
return "EMFILE";
67 case EMLINK:
return "EMLINK";
68 case EMSGSIZE:
return "EMSGSIZE";
69 #ifdef EMULTIHOP // Not available on OpenBSD
70 case EMULTIHOP:
return "EMULTIHOP";
72 case ENAMETOOLONG:
return "ENAMETOOLONG";
73 case ENETDOWN:
return "ENETDOWN";
74 case ENETRESET:
return "ENETRESET";
75 case ENETUNREACH:
return "ENETUNREACH";
76 case ENFILE:
return "ENFILE";
77 case ENOBUFS:
return "ENOBUFS";
79 case ENODEV:
return "ENODEV";
80 case ENOENT:
return "ENOENT";
81 case ENOEXEC:
return "ENOEXEC";
82 case ENOKEY:
return "ENOKEY";
83 case ENOLCK:
return "ENOLCK";
84 #ifdef ENOLINK // Not available on OpenBSD
85 case ENOLINK:
return "ENOLINK";
87 case ENOMEM:
return "ENOMEM";
88 case ENOMSG:
return "ENOMSG";
89 case ENOPROTOOPT:
return "ENOPROTOOPT";
90 case ENOSPC:
return "ENOSPC";
91 case ENOSR:
return "ENOSR";
92 case ENOSTR:
return "ENOSTR";
93 case ENOSYS:
return "ENOSYS";
94 case ENOTBLK:
return "ENOTBLK";
95 case ENOTCONN:
return "ENOTCONN";
96 case ENOTDIR:
return "ENOTDIR";
97 case ENOTEMPTY:
return "ENOTEMPTY";
98 case ENOTSOCK:
return "ENOTSOCK";
100 case ENOTTY:
return "ENOTTY";
102 case ENXIO:
return "ENXIO";
103 case EOPNOTSUPP:
return "EOPNOTSUPP";
104 case EOVERFLOW:
return "EOVERFLOW";
105 case EPERM:
return "EPERM";
106 case EPFNOSUPPORT:
return "EPFNOSUPPORT";
107 case EPIPE:
return "EPIPE";
108 case EPROTO:
return "EPROTO";
109 case EPROTONOSUPPORT:
return "EPROTONOSUPPORT";
110 case EPROTOTYPE:
return "EPROTOTYPE";
111 case ERANGE:
return "ERANGE";
112 case EREMOTE:
return "EREMOTE";
115 case EROFS:
return "EROFS";
116 case ESHUTDOWN:
return "ESHUTDOWN";
117 case ESPIPE:
return "ESPIPE";
118 case ESOCKTNOSUPPORT:
return "ESOCKTNOSUPPORT";
119 case ESRCH:
return "ESRCH";
120 case ESTALE:
return "ESTALE";
121 case ETIME:
return "ETIME";
122 case ETIMEDOUT:
return "ETIMEDOUT";
123 case ETXTBSY:
return "ETXTBSY";
124 case EUNATCH:
return "EUNATCH";
125 case EUSERS:
return "EUSERS";
127 case EXDEV:
return "EXDEV";
131 case EBADE:
return "EBADE";
132 case EBADFD:
return "EBADFD";
133 case EBADSLT:
return "EBADSLT";
134 case EDEADLOCK:
return "EDEADLOCK";
135 case EBADR:
return "EBADR";
136 case EBADRQC:
return "EBADRQC";
137 case ECHRNG:
return "ECHRNG";
139 case EISNAM:
return "EISNAM";
140 case EKEYEXPIRED:
return "EKEYEXPIRED";
142 case EKEYREVOKED:
return "EKEYREVOKED";
144 case EL2HLT:
return "EL2HLT";
145 case EL2NSYNC:
return "EL2NSYNC";
146 case EL3HLT:
return "EL3HLT";
147 case EL3RST:
return "EL3RST";
148 case ELIBBAD:
return "ELIBBAD";
149 case ELIBMAX:
return "ELIBMAX";
150 case ELIBSCN:
return "ELIBSCN";
151 case ELIBEXEC:
return "ELIBEXEC";
153 case ENOMEDIUM:
return "ENOMEDIUM";
154 case EMEDIUMTYPE:
return "EMEDIUMTYPE";
156 case ENONET:
return "ENONET";
157 case ENOPKG:
return "ENOPKG";
158 case EREMCHG:
return "EREMCHG";
159 case ERESTART:
return "ERESTART";
160 case ESTRPIPE:
return "ESTRPIPE";
162 case EUCLEAN:
return "EUCLEAN";
164 case EXFULL:
return "EXFULL";
202 return "Generic Pacemaker error";
204 return "Operation requires quorum";
206 return "Update does not conform to the configured schema";
208 return "Schema transform failed";
210 return "Update was older than existing configuration";
212 return "Application of an update diff failed";
214 return "Application of an update diff failed, requesting a full refresh";
216 return "The on-disk configuration was manually modified";
218 return "Could not archive the previous configuration";
220 return "Could not save the new configuration to disk";
222 return "Could not parse on-disk configuration";
224 return "Resource active on multiple nodes";
226 return "Node not found";
228 return "Situation already as requested";
230 return "Bad name/value pair given";
232 return "Schema is already the latest available";
234 return "Unknown output format";
239 return "Name not unique on network";
242 return "Communication error on send";
245 return "Can not access a needed shared library";
248 return "Remote I/O error";
251 return "Protocol driver not attached";
254 return "Required key not available";
257 crm_err(
"Unknown error code: %d", rc);
258 return "Unknown error";
304 return "CRM_EX_UNKNOWN";
326 case CRM_EX_OSERR:
return "Operating system error occurred";
334 case CRM_EX_FATAL:
return "Fatal error occurred, will not respawn";
346 case CRM_EX_OLD:
return "Update was older than existing configuration";
350 if (exit_code > 128) {
351 return "Interrupted by signal";
353 return "Unknown exit status";
367 if (rc == EOPNOTSUPP) {
402 case EPROTONOSUPPORT:
455 case BZ_CONFIG_ERROR:
456 return "libbz2 has been improperly compiled on your platform";
457 case BZ_SEQUENCE_ERROR:
458 return "library functions called in the wrong order";
460 return "parameter is out of range or otherwise incorrect";
462 return "memory allocation failed";
464 return "data integrity error is detected during decompression";
465 case BZ_DATA_ERROR_MAGIC:
466 return "the compressed stream does not start with the correct magic bytes";
468 return "error reading or writing in the compressed file";
469 case BZ_UNEXPECTED_EOF:
470 return "compressed file finishes before the logical end of stream is detected";
471 case BZ_OUTBUFF_FULL:
472 return "output data will not fit into the buffer provided";
474 return "Unknown error";
483 if ((((
int) rc) < 0) || (((
int) rc) >
CRM_EX_MAX)) {
#define pcmk_err_schema_unchanged
#define pcmk_err_node_unknown
const char * pcmk_strerror(int rc)
#define pcmk_err_schema_validation
#define pcmk_err_cib_save
#define pcmk_err_transform_failed
#define crm_err(fmt, args...)
#define crm_trace(fmt, args...)
enum crm_exit_e crm_exit_t
#define pcmk_err_multiple
const char * crm_exit_name(crm_exit_t exit_code)
Wrappers for and extensions to libxml2.
Wrappers for and extensions to glib mainloop.
char * strerror(int errnum)
crm_exit_t crm_exit(crm_exit_t rc)
#define pcmk_err_cib_modified
const char * crm_exit_str(crm_exit_t exit_code)
#define crm_info(fmt, args...)
#define PCMK_ERROR_OFFSET
#define pcmk_err_diff_failed
#define pcmk_err_cib_backup
#define pcmk_err_diff_resync
#define pcmk_err_unknown_format
void crm_xml_cleanup(void)
#define pcmk_err_bad_nvpair
const char * pcmk_errorname(int rc)
#define pcmk_err_cib_corrupt
void mainloop_cleanup(void)
#define pcmk_err_no_quorum
#define pcmk_err_old_data
const char * bz2_strerror(int rc)
crm_exit_t crm_errno2exit(int rc)
Map an errno to a similar exit status.