 |
pacemaker
2.0.1-9e909a5bdd
Scalable High-Availability cluster resource manager
|
Go to the documentation of this file.
18 #include <qb/qbdefs.h>
29 case E2BIG:
return "E2BIG";
30 case EACCES:
return "EACCES";
31 case EADDRINUSE:
return "EADDRINUSE";
32 case EADDRNOTAVAIL:
return "EADDRNOTAVAIL";
33 case EAFNOSUPPORT:
return "EAFNOSUPPORT";
34 case EAGAIN:
return "EAGAIN";
35 case EALREADY:
return "EALREADY";
36 case EBADF:
return "EBADF";
37 case EBADMSG:
return "EBADMSG";
38 case EBUSY:
return "EBUSY";
39 case ECANCELED:
return "ECANCELED";
40 case ECHILD:
return "ECHILD";
41 case ECOMM:
return "ECOMM";
42 case ECONNABORTED:
return "ECONNABORTED";
43 case ECONNREFUSED:
return "ECONNREFUSED";
44 case ECONNRESET:
return "ECONNRESET";
46 case EDESTADDRREQ:
return "EDESTADDRREQ";
47 case EDOM:
return "EDOM";
48 case EDQUOT:
return "EDQUOT";
49 case EEXIST:
return "EEXIST";
50 case EFAULT:
return "EFAULT";
51 case EFBIG:
return "EFBIG";
52 case EHOSTDOWN:
return "EHOSTDOWN";
53 case EHOSTUNREACH:
return "EHOSTUNREACH";
54 case EIDRM:
return "EIDRM";
55 case EILSEQ:
return "EILSEQ";
56 case EINPROGRESS:
return "EINPROGRESS";
57 case EINTR:
return "EINTR";
58 case EINVAL:
return "EINVAL";
59 case EIO:
return "EIO";
60 case EISCONN:
return "EISCONN";
61 case EISDIR:
return "EISDIR";
63 case ELOOP:
return "ELOOP";
64 case EMFILE:
return "EMFILE";
65 case EMLINK:
return "EMLINK";
66 case EMSGSIZE:
return "EMSGSIZE";
67 #ifdef EMULTIHOP // Not available on OpenBSD
68 case EMULTIHOP:
return "EMULTIHOP";
70 case ENAMETOOLONG:
return "ENAMETOOLONG";
71 case ENETDOWN:
return "ENETDOWN";
72 case ENETRESET:
return "ENETRESET";
73 case ENETUNREACH:
return "ENETUNREACH";
74 case ENFILE:
return "ENFILE";
75 case ENOBUFS:
return "ENOBUFS";
77 case ENODEV:
return "ENODEV";
78 case ENOENT:
return "ENOENT";
79 case ENOEXEC:
return "ENOEXEC";
80 case ENOKEY:
return "ENOKEY";
81 case ENOLCK:
return "ENOLCK";
82 #ifdef ENOLINK // Not available on OpenBSD
83 case ENOLINK:
return "ENOLINK";
85 case ENOMEM:
return "ENOMEM";
86 case ENOMSG:
return "ENOMSG";
87 case ENOPROTOOPT:
return "ENOPROTOOPT";
88 case ENOSPC:
return "ENOSPC";
89 case ENOSR:
return "ENOSR";
90 case ENOSTR:
return "ENOSTR";
91 case ENOSYS:
return "ENOSYS";
92 case ENOTBLK:
return "ENOTBLK";
93 case ENOTCONN:
return "ENOTCONN";
94 case ENOTDIR:
return "ENOTDIR";
95 case ENOTEMPTY:
return "ENOTEMPTY";
96 case ENOTSOCK:
return "ENOTSOCK";
98 case ENOTTY:
return "ENOTTY";
100 case ENXIO:
return "ENXIO";
101 case EOPNOTSUPP:
return "EOPNOTSUPP";
102 case EOVERFLOW:
return "EOVERFLOW";
103 case EPERM:
return "EPERM";
104 case EPFNOSUPPORT:
return "EPFNOSUPPORT";
105 case EPIPE:
return "EPIPE";
106 case EPROTO:
return "EPROTO";
107 case EPROTONOSUPPORT:
return "EPROTONOSUPPORT";
108 case EPROTOTYPE:
return "EPROTOTYPE";
109 case ERANGE:
return "ERANGE";
110 case EREMOTE:
return "EREMOTE";
113 case EROFS:
return "EROFS";
114 case ESHUTDOWN:
return "ESHUTDOWN";
115 case ESPIPE:
return "ESPIPE";
116 case ESOCKTNOSUPPORT:
return "ESOCKTNOSUPPORT";
117 case ESRCH:
return "ESRCH";
118 case ESTALE:
return "ESTALE";
119 case ETIME:
return "ETIME";
120 case ETIMEDOUT:
return "ETIMEDOUT";
121 case ETXTBSY:
return "ETXTBSY";
122 case EUNATCH:
return "EUNATCH";
123 case EUSERS:
return "EUSERS";
125 case EXDEV:
return "EXDEV";
129 case EBADE:
return "EBADE";
130 case EBADFD:
return "EBADFD";
131 case EBADSLT:
return "EBADSLT";
132 case EDEADLOCK:
return "EDEADLOCK";
133 case EBADR:
return "EBADR";
134 case EBADRQC:
return "EBADRQC";
135 case ECHRNG:
return "ECHRNG";
137 case EISNAM:
return "EISNAM";
138 case EKEYEXPIRED:
return "EKEYEXPIRED";
140 case EKEYREVOKED:
return "EKEYREVOKED";
142 case EL2HLT:
return "EL2HLT";
143 case EL2NSYNC:
return "EL2NSYNC";
144 case EL3HLT:
return "EL3HLT";
145 case EL3RST:
return "EL3RST";
146 case ELIBBAD:
return "ELIBBAD";
147 case ELIBMAX:
return "ELIBMAX";
148 case ELIBSCN:
return "ELIBSCN";
149 case ELIBEXEC:
return "ELIBEXEC";
151 case ENOMEDIUM:
return "ENOMEDIUM";
152 case EMEDIUMTYPE:
return "EMEDIUMTYPE";
154 case ENONET:
return "ENONET";
155 case ENOPKG:
return "ENOPKG";
156 case EREMCHG:
return "EREMCHG";
157 case ERESTART:
return "ERESTART";
158 case ESTRPIPE:
return "ESTRPIPE";
160 case EUCLEAN:
return "EUCLEAN";
162 case EXFULL:
return "EXFULL";
196 return "Generic Pacemaker error";
198 return "Operation requires quorum";
200 return "Update does not conform to the configured schema";
202 return "Schema transform failed";
204 return "Update was older than existing configuration";
206 return "Application of an update diff failed";
208 return "Application of an update diff failed, requesting a full refresh";
210 return "The on-disk configuration was manually modified";
212 return "Could not archive the previous configuration";
214 return "Could not save the new configuration to disk";
216 return "Could not parse on-disk configuration";
218 return "Resource active on multiple nodes";
220 return "Node not found";
222 return "Situation already as requested";
224 return "Schema is already the latest available";
229 return "Name not unique on network";
232 return "Communication error on send";
235 return "Can not access a needed shared library";
238 return "Remote I/O error";
241 return "Protocol driver not attached";
244 return "Required key not available";
247 crm_err(
"Unknown error code: %d", rc);
248 return "Unknown error";
291 return "CRM_EX_UNKNOWN";
313 case CRM_EX_OSERR:
return "Operating system error occurred";
321 case CRM_EX_FATAL:
return "Fatal error occurred, will not respawn";
330 case CRM_EX_OLD:
return "Update was older than existing configuration";
334 if (exit_code > 128) {
335 return "Interrupted by signal";
337 return "Unknown exit status";
351 if (rc == EOPNOTSUPP) {
383 case EPROTONOSUPPORT:
435 case BZ_CONFIG_ERROR:
436 return "libbz2 has been improperly compiled on your platform";
437 case BZ_SEQUENCE_ERROR:
438 return "library functions called in the wrong order";
440 return "parameter is out of range or otherwise incorrect";
442 return "memory allocation failed";
444 return "data integrity error is detected during decompression";
445 case BZ_DATA_ERROR_MAGIC:
446 return "the compressed stream does not start with the correct magic bytes";
448 return "error reading or writing in the compressed file";
449 case BZ_UNEXPECTED_EOF:
450 return "compressed file finishes before the logical end of stream is detected";
451 case BZ_OUTBUFF_FULL:
452 return "output data will not fit into the buffer provided";
454 return "Unknown error";
463 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
void crm_xml_cleanup(void)
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.