summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
authorXavier Hernandez <jahernan@redhat.com>2017-12-12 22:31:53 +0100
committerAmar Tumballi <amarts@redhat.com>2017-12-14 02:33:51 +0000
commit415e0bcc80b350fc75f325b490560f44ba419b20 (patch)
tree6b428127e3fb460da434e7eab18352c65898eb9b /xlators/protocol
parentbafe0c14f5743cb084a89595860e4ba33baf900c (diff)
all: Simplify component message id's definition
This patch creates a new way of defining message id's that is easier and less error prone because it doesn't require so many manual changes each time a new component is defined or a new message created. Change-Id: I71ba8af9ac068f5add7e74f316a2478bc991c67b Signed-off-by: Xavier Hernandez <jahernan@redhat.com>
Diffstat (limited to 'xlators/protocol')
-rw-r--r--xlators/protocol/client/src/client-messages.h712
-rw-r--r--xlators/protocol/server/src/server-messages.h958
2 files changed, 182 insertions, 1488 deletions
diff --git a/xlators/protocol/client/src/client-messages.h b/xlators/protocol/client/src/client-messages.h
index cf28c582872..86b721bd593 100644
--- a/xlators/protocol/client/src/client-messages.h
+++ b/xlators/protocol/client/src/client-messages.h
@@ -11,641 +11,85 @@
#ifndef _PC_MESSAGES_H__
#define _PC_MESSAGES_H__
-#ifndef _CONFIG_H
-#define _CONFIG_H
-#include "config.h"
-#endif
-
#include "glfs-message-id.h"
-/*! \file client-messages.h
- * \brief Protocol client log-message IDs and their descriptions
- */
-
-/* NOTE: Rules for message additions
- * 1) Each instance of a message is _better_ left with a unique message ID, even
- * if the message format is the same. Reasoning is that, if the message
- * format needs to change in one instance, the other instances are not
- * impacted or the new change does not change the ID of the instance being
- * modified.
- * 2) Addition of a message,
- * - Should increment the GLFS_NUM_MESSAGES
- * - Append to the list of messages defined, towards the end
- * - Retain macro naming as glfs_msg_X (for readability across developers)
- * NOTE: Rules for message format modifications
- * 3) Check acorss the code if the message ID macro in question is reused
- * anywhere. If reused then then the modifications should ensure correctness
- * everywhere, or needs a new message ID as (1) above was not adhered to. If
- * not used anywhere, proceed with the required modification.
- * NOTE: Rules for message deletion
- * 4) Check (3) and if used anywhere else, then cannot be deleted. If not used
- * anywhere, then can be deleted, but will leave a hole by design, as
- * addition rules specify modification to the end of the list and not filling
- * holes.
- */
-
-#define GLFS_PC_BASE GLFS_MSGID_COMP_PC
-#define GLFS_PC_NUM_MESSAGES 66
-#define GLFS_PC_MSGID_END (GLFS_PC_BASE + GLFS_NUM_MESSAGES + 1)
-/* Messages with message IDs */
-#define glfs_msg_start_x GLFS_PC_BASE, "Invalid: Start of messages"
-/*------------*/
-
-#define PC_MSG_TIMER_EXPIRED (GLFS_PC_BASE + 1)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_DIR_OP_FAILED (GLFS_PC_BASE + 2)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_FILE_OP_FAILED (GLFS_PC_BASE + 3)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_TIMER_REG (GLFS_PC_BASE + 4)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_GRACE_TIMER_CANCELLED (GLFS_PC_BASE + 5)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_DICT_SET_FAILED (GLFS_PC_BASE + 6)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_DICT_GET_FAILED (GLFS_PC_BASE + 7)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_NO_MEMORY (GLFS_PC_BASE + 8)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_RPC_CBK_FAILED (GLFS_PC_BASE + 9)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_FUNCTION_CALL_ERROR (GLFS_PC_BASE + 10)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_RPC_INITED_ALREADY (GLFS_PC_BASE + 11)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_RPC_INIT (GLFS_PC_BASE + 12)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_RPC_DESTROY (GLFS_PC_BASE + 13)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_RPC_INVALID_CALL (GLFS_PC_BASE + 14)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_INVALID_ENTRY (GLFS_PC_BASE + 15)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_HANDSHAKE_RETURN (GLFS_PC_BASE + 16)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_CHILD_UP_NOTIFY_FAILED (GLFS_PC_BASE + 17)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_CLIENT_DISCONNECTED (GLFS_PC_BASE + 18)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_CHILD_DOWN_NOTIFY_FAILED (GLFS_PC_BASE + 19)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_PARENT_UP (GLFS_PC_BASE + 20)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_PARENT_DOWN (GLFS_PC_BASE + 21)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_RPC_INIT_FAILED (GLFS_PC_BASE + 22)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_RPC_NOTIFY_FAILED (GLFS_PC_BASE + 23)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_FD_DUPLICATE_TRY (GLFS_PC_BASE + 24)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_FD_SET_FAIL (GLFS_PC_BASE + 25)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_DICT_UNSERIALIZE_FAIL (GLFS_PC_BASE + 26)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_FD_GET_FAIL (GLFS_PC_BASE + 27)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_FD_CTX_INVALID (GLFS_PC_BASE + 28)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_FOP_SEND_FAILED (GLFS_PC_BASE + 29)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_XDR_DECODING_FAILED (GLFS_PC_BASE + 30)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_REMOTE_OP_FAILED (GLFS_PC_BASE + 31)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_RPC_STATUS_ERROR (GLFS_PC_BASE + 32)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_VOL_FILE_NOT_FOUND (GLFS_PC_BASE + 33)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_SEND_REQ_FAIL (GLFS_PC_BASE + 34)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_LOCK_VERSION_SERVER (GLFS_PC_BASE + 35)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_SET_LK_VERSION_ERROR (GLFS_PC_BASE + 36)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_LOCK_REQ_FAIL (GLFS_PC_BASE + 37)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_CLIENT_REQ_FAIL (GLFS_PC_BASE + 38)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_LOCK_ERROR (GLFS_PC_BASE + 39)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_LOCK_REACQUIRE (GLFS_PC_BASE + 40)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_CHILD_UP_NOTIFY (GLFS_PC_BASE + 41)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_CHILD_UP_NOTIFY_DELAY (GLFS_PC_BASE + 42)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_VOL_SET_FAIL (GLFS_PC_BASE + 43)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_SETVOLUME_FAIL (GLFS_PC_BASE + 44)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_VOLFILE_NOTIFY_FAILED (GLFS_PC_BASE + 45)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_REMOTE_VOL_CONNECTED (GLFS_PC_BASE + 46)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_LOCK_MISMATCH (GLFS_PC_BASE + 47)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_LOCK_MATCH (GLFS_PC_BASE + 48)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_AUTH_FAILED (GLFS_PC_BASE + 49)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_AUTH_FAILED_NOTIFY_FAILED (GLFS_PC_BASE + 50)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_CHILD_CONNECTING_EVENT (GLFS_PC_BASE + 51)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_CHILD_CONNECTING_NOTIFY_FAILED (GLFS_PC_BASE + 52)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_PROCESS_UUID_SET_FAIL (GLFS_PC_BASE + 53)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_DICT_ERROR (GLFS_PC_BASE + 54)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_DICT_SERIALIZE_FAIL (GLFS_PC_BASE + 55)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_PGM_NOT_FOUND (GLFS_PC_BASE + 56)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_VERSION_INFO (GLFS_PC_BASE + 57)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_PORT_NUM_ERROR (GLFS_PC_BASE + 58)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_VERSION_ERROR (GLFS_PC_BASE + 59)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_DIR_OP_SUCCESS (GLFS_PC_BASE + 60)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_BAD_FD (GLFS_PC_BASE + 61)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_CLIENT_LOCK_INFO (GLFS_PC_BASE + 62)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_CACHE_INVALIDATION_FAIL (GLFS_PC_BASE + 63)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_CHILD_STATUS (GLFS_PC_BASE + 64)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_GFID_NULL (GLFS_PC_BASE + 65)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PC_MSG_RECALL_LEASE_FAIL (GLFS_PC_BASE + 66)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-/*------------*/
-
-#define glfs_msg_end_x GLFS_MSGID_END, "Invalid: End of messages"
+/* To add new message IDs, append new identifiers at the end of the list.
+ *
+ * Never remove a message ID. If it's not used anymore, you can rename it or
+ * leave it as it is, but not delete it. This is to prevent reutilization of
+ * IDs by other messages.
+ *
+ * The component name must match one of the entries defined in
+ * glfs-message-id.h.
+ */
+
+GLFS_MSGID(PC,
+ PC_MSG_TIMER_EXPIRED,
+ PC_MSG_DIR_OP_FAILED,
+ PC_MSG_FILE_OP_FAILED,
+ PC_MSG_TIMER_REG,
+ PC_MSG_GRACE_TIMER_CANCELLED,
+ PC_MSG_DICT_SET_FAILED,
+ PC_MSG_DICT_GET_FAILED,
+ PC_MSG_NO_MEMORY,
+ PC_MSG_RPC_CBK_FAILED,
+ PC_MSG_FUNCTION_CALL_ERROR,
+ PC_MSG_RPC_INITED_ALREADY,
+ PC_MSG_RPC_INIT,
+ PC_MSG_RPC_DESTROY,
+ PC_MSG_RPC_INVALID_CALL,
+ PC_MSG_INVALID_ENTRY,
+ PC_MSG_HANDSHAKE_RETURN,
+ PC_MSG_CHILD_UP_NOTIFY_FAILED,
+ PC_MSG_CLIENT_DISCONNECTED,
+ PC_MSG_CHILD_DOWN_NOTIFY_FAILED,
+ PC_MSG_PARENT_UP,
+ PC_MSG_PARENT_DOWN,
+ PC_MSG_RPC_INIT_FAILED,
+ PC_MSG_RPC_NOTIFY_FAILED,
+ PC_MSG_FD_DUPLICATE_TRY,
+ PC_MSG_FD_SET_FAIL,
+ PC_MSG_DICT_UNSERIALIZE_FAIL,
+ PC_MSG_FD_GET_FAIL,
+ PC_MSG_FD_CTX_INVALID,
+ PC_MSG_FOP_SEND_FAILED,
+ PC_MSG_XDR_DECODING_FAILED,
+ PC_MSG_REMOTE_OP_FAILED,
+ PC_MSG_RPC_STATUS_ERROR,
+ PC_MSG_VOL_FILE_NOT_FOUND,
+ PC_MSG_SEND_REQ_FAIL,
+ PC_MSG_LOCK_VERSION_SERVER,
+ PC_MSG_SET_LK_VERSION_ERROR,
+ PC_MSG_LOCK_REQ_FAIL,
+ PC_MSG_CLIENT_REQ_FAIL,
+ PC_MSG_LOCK_ERROR,
+ PC_MSG_LOCK_REACQUIRE,
+ PC_MSG_CHILD_UP_NOTIFY,
+ PC_MSG_CHILD_UP_NOTIFY_DELAY,
+ PC_MSG_VOL_SET_FAIL,
+ PC_MSG_SETVOLUME_FAIL,
+ PC_MSG_VOLFILE_NOTIFY_FAILED,
+ PC_MSG_REMOTE_VOL_CONNECTED,
+ PC_MSG_LOCK_MISMATCH,
+ PC_MSG_LOCK_MATCH,
+ PC_MSG_AUTH_FAILED,
+ PC_MSG_AUTH_FAILED_NOTIFY_FAILED,
+ PC_MSG_CHILD_CONNECTING_EVENT,
+ PC_MSG_CHILD_CONNECTING_NOTIFY_FAILED,
+ PC_MSG_PROCESS_UUID_SET_FAIL,
+ PC_MSG_DICT_ERROR,
+ PC_MSG_DICT_SERIALIZE_FAIL,
+ PC_MSG_PGM_NOT_FOUND,
+ PC_MSG_VERSION_INFO,
+ PC_MSG_PORT_NUM_ERROR,
+ PC_MSG_VERSION_ERROR,
+ PC_MSG_DIR_OP_SUCCESS,
+ PC_MSG_BAD_FD,
+ PC_MSG_CLIENT_LOCK_INFO,
+ PC_MSG_CACHE_INVALIDATION_FAIL,
+ PC_MSG_CHILD_STATUS,
+ PC_MSG_GFID_NULL,
+ PC_MSG_RECALL_LEASE_FAIL
+);
#endif /* !_PC_MESSAGES_H__ */
diff --git a/xlators/protocol/server/src/server-messages.h b/xlators/protocol/server/src/server-messages.h
index 14729ade852..b0fb45070da 100644
--- a/xlators/protocol/server/src/server-messages.h
+++ b/xlators/protocol/server/src/server-messages.h
@@ -13,860 +13,110 @@
#include "glfs-message-id.h"
-/*! \file server-messages.h
- * \brief server log-message IDs and their descriptions
- */
-
-/* NOTE: Rules for message additions
- * 1) Each instance of a message is _better_ left with a unique message ID, even
- * if the message format is the same. Reasoning is that, if the message
- * format needs to change in one instance, the other instances are not
- * impacted or the new change does not change the ID of the instance being
- * modified.
- * 2) Addition of a message,
- * - Should increment the GLFS_NUM_MESSAGES
- * - Append to the list of messages defined, towards the end
- * - Retain macro naming as glfs_msg_X (for redability across developers)
- * NOTE: Rules for message format modifications
- * 3) Check acorss the code if the message ID macro in question is reused
- * anywhere. If reused then then the modifications should ensure correctness
- * everywhere, or needs a new message ID as (1) above was not adhered to. If
- * not used anywhere, proceed with the required modification.
- * NOTE: Rules for message deletion
- * 4) Check (3) and if used anywhere else, then cannot be deleted. If not used
- * anywhere, then can be deleted, but will leave a hole by design, as
- * addition rules specify modification to the end of the list and not filling
- * holes.
- */
-
-#define GLFS_PS_BASE GLFS_MSGID_COMP_PS
-#define GLFS_NUM_MESSAGES 92
-#define GLFS_MSGID_END (GLFS_PS_BASE + GLFS_NUM_MESSAGES + 1)
-/* Messages with message IDs */
-#define glfs_msg_start_x GLFS_PS_BASE, "Invalid: Start of messages"
-/*------------*/
-
-#define PS_MSG_AUTHENTICATE_ERROR (GLFS_PS_BASE + 1)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_VOL_VALIDATE_FAILED (GLFS_PS_BASE + 2)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_AUTH_INIT_FAILED (GLFS_PS_BASE + 3)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_REMOTE_CLIENT_REFUSED (GLFS_PS_BASE + 4)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_GFID_RESOLVE_FAILED (GLFS_PS_BASE + 5)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_ANONYMOUS_FD_CREATE_FAILED (GLFS_PS_BASE + 6)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_NO_MEMORY (GLFS_PS_BASE + 7)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_FD_NOT_FOUND (GLFS_PS_BASE + 8)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_INVALID_ENTRY (GLFS_PS_BASE + 9)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_GET_UID_FAILED (GLFS_PS_BASE + 10)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_UID_NOT_FOUND (GLFS_PS_BASE + 11)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_MAPPING_ERROR (GLFS_PS_BASE + 12)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_FD_CLEANUP (GLFS_PS_BASE + 13)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_SERVER_CTX_GET_FAILED (GLFS_PS_BASE + 14)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_FDENTRY_NULL (GLFS_PS_BASE + 15)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_DIR_NOT_FOUND (GLFS_PS_BASE + 16)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_SERVER_MSG (GLFS_PS_BASE + 17)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_DICT_SERIALIZE_FAIL (GLFS_PS_BASE + 18)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_RW_STAT (GLFS_PS_BASE + 19)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_DICT_GET_FAILED (GLFS_PS_BASE + 20)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_LOGIN_ERROR (GLFS_PS_BASE + 21)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_REMOUNT_CLIENT_REQD (GLFS_PS_BASE + 22)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_DEFAULTING_FILE (GLFS_PS_BASE + 23)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_VOL_FILE_OPEN_FAILED (GLFS_PS_BASE + 24)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_STAT_ERROR (GLFS_PS_BASE + 25)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_SSL_NAME_SET_FAILED (GLFS_PS_BASE + 26)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_ASPRINTF_FAILED (GLFS_PS_BASE + 27)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_CLIENT_VERSION_NOT_SET (GLFS_PS_BASE + 28)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_CLIENT_ACCEPTED (GLFS_PS_BASE + 29)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_CLIENT_LK_VERSION_ERROR (GLFS_PS_BASE + 30)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_GRACE_TIMER_EXPD (GLFS_PS_BASE + 31)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_SERIALIZE_REPLY_FAILED (GLFS_PS_BASE + 32)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_AUTH_IP_ERROR (GLFS_PS_BASE + 33)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_SKIP_FORMAT_CHK (GLFS_PS_BASE + 34)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_INTERNET_ADDR_ERROR (GLFS_PS_BASE + 35)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_CLIENT_DISCONNECTING (GLFS_PS_BASE + 36)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_GRACE_TIMER_START (GLFS_PS_BASE + 37)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_STATEDUMP_PATH_ERROR (GLFS_PS_BASE + 38)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_GRP_CACHE_ERROR (GLFS_PS_BASE + 39)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_RPC_CONF_ERROR (GLFS_PS_BASE + 40)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_TRANSPORT_ERROR (GLFS_PS_BASE + 41)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_SUBVOL_NULL (GLFS_PS_BASE + 42)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_PARENT_VOL_ERROR (GLFS_PS_BASE + 43)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_RPCSVC_CREATE_FAILED (GLFS_PS_BASE + 44)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_RPCSVC_LISTENER_CREATE_FAILED (GLFS_PS_BASE + 45)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_RPCSVC_NOTIFY (GLFS_PS_BASE + 46)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_PGM_REG_FAILED (GLFS_PS_BASE + 47)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_ULIMIT_SET_FAILED (GLFS_PS_BASE + 48)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_STATFS (GLFS_PS_BASE + 49)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_LOOKUP_INFO (GLFS_PS_BASE + 50)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_LK_INFO (GLFS_PS_BASE + 51)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_LOCK_ERROR (GLFS_PS_BASE + 52)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_INODELK_INFO (GLFS_PS_BASE + 53)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_ENTRYLK_INFO (GLFS_PS_BASE + 54)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_ACCESS_INFO (GLFS_PS_BASE + 55)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_DIR_INFO (GLFS_PS_BASE + 56)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_MKNOD_INFO (GLFS_PS_BASE + 57)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_REMOVEXATTR_INFO (GLFS_PS_BASE + 58)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_GETXATTR_INFO (GLFS_PS_BASE + 59)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_SETXATTR_INFO (GLFS_PS_BASE + 60)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_RENAME_INFO (GLFS_PS_BASE + 61)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_LINK_INFO (GLFS_PS_BASE + 62)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_TRUNCATE_INFO (GLFS_PS_BASE + 63)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_FSTAT_INFO (GLFS_PS_BASE + 64)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_FLUSH_INFO (GLFS_PS_BASE + 65)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_SYNC_INFO (GLFS_PS_BASE + 66)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_WRITE_INFO (GLFS_PS_BASE + 67)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_READ_INFO (GLFS_PS_BASE + 68)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_CHKSUM_INFO (GLFS_PS_BASE + 69)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_OPEN_INFO (GLFS_PS_BASE + 70)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_CREATE_INFO (GLFS_PS_BASE + 71)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_SETATTR_INFO (GLFS_PS_BASE + 72)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_XATTROP_INFO (GLFS_PS_BASE + 73)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_ALLOC_INFO (GLFS_PS_BASE + 74)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_DISCARD_INFO (GLFS_PS_BASE + 75)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_ZEROFILL_INFO (GLFS_PS_BASE + 76)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_FD_CREATE_FAILED (GLFS_PS_BASE + 77)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_WRONG_STATE (GLFS_PS_BASE + 78)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_CONF_DIR_INVALID (GLFS_PS_BASE + 79)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_MOUNT_PT_FAIL (GLFS_PS_BASE + 80)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_STAT_INFO (GLFS_PS_BASE + 81)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_FILE_OP_FAILED (GLFS_PS_BASE + 82)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_GRACE_TIMER_CANCELLED (GLFS_PS_BASE + 83)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_ENCODE_MSG_FAILED (GLFS_PS_BASE + 84)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_REPLY_SUBMIT_FAILED (GLFS_PS_BASE + 85)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_RPC_NOTIFY_ERROR (GLFS_PS_BASE + 86)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_SERVER_EVENT_UPCALL_FAILED (GLFS_PS_BASE + 87)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_SERVER_IPC_INFO (GLFS_PS_BASE + 88)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_SEEK_INFO (GLFS_PS_BASE + 89)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_COMPOUND_INFO (GLFS_PS_BASE + 90)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-
-#define PS_MSG_CLIENT_OPVERSION_GET_FAILED (GLFS_PS_BASE + 91)
-
-/*!
- * @messageid
- * @diagnosis
- * @recommendedaction
- *
- */
-#define PS_MSG_CHILD_STATUS_FAILED (GLFS_PS_BASE + 92)
-/*------------*/
-#define glfs_msg_end_x GLFS_MSGID_END, "Invalid: End of messages"
+/* To add new message IDs, append new identifiers at the end of the list.
+ *
+ * Never remove a message ID. If it's not used anymore, you can rename it or
+ * leave it as it is, but not delete it. This is to prevent reutilization of
+ * IDs by other messages.
+ *
+ * The component name must match one of the entries defined in
+ * glfs-message-id.h.
+ */
+
+GLFS_MSGID(PS,
+ PS_MSG_AUTHENTICATE_ERROR,
+ PS_MSG_VOL_VALIDATE_FAILED,
+ PS_MSG_AUTH_INIT_FAILED,
+ PS_MSG_REMOTE_CLIENT_REFUSED,
+ PS_MSG_GFID_RESOLVE_FAILED,
+ PS_MSG_ANONYMOUS_FD_CREATE_FAILED,
+ PS_MSG_NO_MEMORY,
+ PS_MSG_FD_NOT_FOUND,
+ PS_MSG_INVALID_ENTRY,
+ PS_MSG_GET_UID_FAILED,
+ PS_MSG_UID_NOT_FOUND,
+ PS_MSG_MAPPING_ERROR,
+ PS_MSG_FD_CLEANUP,
+ PS_MSG_SERVER_CTX_GET_FAILED,
+ PS_MSG_FDENTRY_NULL,
+ PS_MSG_DIR_NOT_FOUND,
+ PS_MSG_SERVER_MSG,
+ PS_MSG_DICT_SERIALIZE_FAIL,
+ PS_MSG_RW_STAT,
+ PS_MSG_DICT_GET_FAILED,
+ PS_MSG_LOGIN_ERROR,
+ PS_MSG_REMOUNT_CLIENT_REQD,
+ PS_MSG_DEFAULTING_FILE,
+ PS_MSG_VOL_FILE_OPEN_FAILED,
+ PS_MSG_STAT_ERROR,
+ PS_MSG_SSL_NAME_SET_FAILED,
+ PS_MSG_ASPRINTF_FAILED,
+ PS_MSG_CLIENT_VERSION_NOT_SET,
+ PS_MSG_CLIENT_ACCEPTED,
+ PS_MSG_CLIENT_LK_VERSION_ERROR,
+ PS_MSG_GRACE_TIMER_EXPD,
+ PS_MSG_SERIALIZE_REPLY_FAILED,
+ PS_MSG_AUTH_IP_ERROR,
+ PS_MSG_SKIP_FORMAT_CHK,
+ PS_MSG_INTERNET_ADDR_ERROR,
+ PS_MSG_CLIENT_DISCONNECTING,
+ PS_MSG_GRACE_TIMER_START,
+ PS_MSG_STATEDUMP_PATH_ERROR,
+ PS_MSG_GRP_CACHE_ERROR,
+ PS_MSG_RPC_CONF_ERROR,
+ PS_MSG_TRANSPORT_ERROR,
+ PS_MSG_SUBVOL_NULL,
+ PS_MSG_PARENT_VOL_ERROR,
+ PS_MSG_RPCSVC_CREATE_FAILED,
+ PS_MSG_RPCSVC_LISTENER_CREATE_FAILED,
+ PS_MSG_RPCSVC_NOTIFY,
+ PS_MSG_PGM_REG_FAILED,
+ PS_MSG_ULIMIT_SET_FAILED,
+ PS_MSG_STATFS,
+ PS_MSG_LOOKUP_INFO,
+ PS_MSG_LK_INFO,
+ PS_MSG_LOCK_ERROR,
+ PS_MSG_INODELK_INFO,
+ PS_MSG_ENTRYLK_INFO,
+ PS_MSG_ACCESS_INFO,
+ PS_MSG_DIR_INFO,
+ PS_MSG_MKNOD_INFO,
+ PS_MSG_REMOVEXATTR_INFO,
+ PS_MSG_GETXATTR_INFO,
+ PS_MSG_SETXATTR_INFO,
+ PS_MSG_RENAME_INFO,
+ PS_MSG_LINK_INFO,
+ PS_MSG_TRUNCATE_INFO,
+ PS_MSG_FSTAT_INFO,
+ PS_MSG_FLUSH_INFO,
+ PS_MSG_SYNC_INFO,
+ PS_MSG_WRITE_INFO,
+ PS_MSG_READ_INFO,
+ PS_MSG_CHKSUM_INFO,
+ PS_MSG_OPEN_INFO,
+ PS_MSG_CREATE_INFO,
+ PS_MSG_SETATTR_INFO,
+ PS_MSG_XATTROP_INFO,
+ PS_MSG_ALLOC_INFO,
+ PS_MSG_DISCARD_INFO,
+ PS_MSG_ZEROFILL_INFO,
+ PS_MSG_FD_CREATE_FAILED,
+ PS_MSG_WRONG_STATE,
+ PS_MSG_CONF_DIR_INVALID,
+ PS_MSG_MOUNT_PT_FAIL,
+ PS_MSG_STAT_INFO,
+ PS_MSG_FILE_OP_FAILED,
+ PS_MSG_GRACE_TIMER_CANCELLED,
+ PS_MSG_ENCODE_MSG_FAILED,
+ PS_MSG_REPLY_SUBMIT_FAILED,
+ PS_MSG_RPC_NOTIFY_ERROR,
+ PS_MSG_SERVER_EVENT_UPCALL_FAILED,
+ PS_MSG_SERVER_IPC_INFO,
+ PS_MSG_SEEK_INFO,
+ PS_MSG_COMPOUND_INFO,
+ PS_MSG_CLIENT_OPVERSION_GET_FAILED,
+ PS_MSG_CHILD_STATUS_FAILED
+);
#endif /* !_PS_MESSAGES_H__ */