"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/protocol/client/src/client-messages.h" (16 Sep 2020, 10580 Bytes) of package /linux/misc/glusterfs-8.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "client-messages.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2   Copyright (c) 2015 Red Hat, Inc. <http://www.redhat.com>
    3   This file is part of GlusterFS.
    4 
    5   This file is licensed to you under your choice of the GNU Lesser
    6   General Public License, version 3 or any later version (LGPLv3 or
    7   later), or the GNU General Public License, version 2 (GPLv2), in all
    8   cases as published by the Free Software Foundation.
    9 */
   10 
   11 #ifndef _PC_MESSAGES_H__
   12 #define _PC_MESSAGES_H__
   13 
   14 #include <glusterfs/glfs-message-id.h>
   15 
   16 /* To add new message IDs, append new identifiers at the end of the list.
   17  *
   18  * Never remove a message ID. If it's not used anymore, you can rename it or
   19  * leave it as it is, but not delete it. This is to prevent reutilization of
   20  * IDs by other messages.
   21  *
   22  * The component name must match one of the entries defined in
   23  * glfs-message-id.h.
   24  */
   25 
   26 GLFS_MSGID(
   27     PC, PC_MSG_TIMER_EXPIRED, PC_MSG_DIR_OP_FAILED, PC_MSG_FILE_OP_FAILED,
   28     PC_MSG_TIMER_REG, PC_MSG_GRACE_TIMER_CANCELLED, PC_MSG_DICT_SET_FAILED,
   29     PC_MSG_DICT_GET_FAILED, PC_MSG_NO_MEMORY, PC_MSG_RPC_CBK_FAILED,
   30     PC_MSG_FUNCTION_CALL_ERROR, PC_MSG_RPC_INITED_ALREADY, PC_MSG_RPC_INIT,
   31     PC_MSG_RPC_DESTROY, PC_MSG_RPC_INVALID_CALL, PC_MSG_INVALID_ENTRY,
   32     PC_MSG_HANDSHAKE_RETURN, PC_MSG_CHILD_UP_NOTIFY_FAILED,
   33     PC_MSG_CLIENT_DISCONNECTED, PC_MSG_CHILD_DOWN_NOTIFY_FAILED,
   34     PC_MSG_PARENT_UP, PC_MSG_PARENT_DOWN, PC_MSG_RPC_INIT_FAILED,
   35     PC_MSG_RPC_NOTIFY_FAILED, PC_MSG_FD_DUPLICATE_TRY, PC_MSG_FD_SET_FAIL,
   36     PC_MSG_DICT_UNSERIALIZE_FAIL, PC_MSG_FD_GET_FAIL, PC_MSG_FD_CTX_INVALID,
   37     PC_MSG_FOP_SEND_FAILED, PC_MSG_XDR_DECODING_FAILED, PC_MSG_REMOTE_OP_FAILED,
   38     PC_MSG_RPC_STATUS_ERROR, PC_MSG_VOL_FILE_NOT_FOUND, PC_MSG_SEND_REQ_FAIL,
   39     PC_MSG_LOCK_VERSION_SERVER, PC_MSG_SET_LK_VERSION_ERROR,
   40     PC_MSG_LOCK_REQ_FAIL, PC_MSG_CLIENT_REQ_FAIL, PC_MSG_LOCK_ERROR,
   41     PC_MSG_LOCK_REACQUIRE, PC_MSG_CHILD_UP_NOTIFY, PC_MSG_CHILD_UP_NOTIFY_DELAY,
   42     PC_MSG_VOL_SET_FAIL, PC_MSG_SETVOLUME_FAIL, PC_MSG_VOLFILE_NOTIFY_FAILED,
   43     PC_MSG_REMOTE_VOL_CONNECTED, PC_MSG_LOCK_MISMATCH, PC_MSG_LOCK_MATCH,
   44     PC_MSG_AUTH_FAILED, PC_MSG_AUTH_FAILED_NOTIFY_FAILED,
   45     PC_MSG_CHILD_CONNECTING_EVENT, PC_MSG_CHILD_CONNECTING_NOTIFY_FAILED,
   46     PC_MSG_PROCESS_UUID_SET_FAIL, PC_MSG_DICT_ERROR, PC_MSG_DICT_SERIALIZE_FAIL,
   47     PC_MSG_PGM_NOT_FOUND, PC_MSG_VERSION_INFO, PC_MSG_PORT_NUM_ERROR,
   48     PC_MSG_VERSION_ERROR, PC_MSG_DIR_OP_SUCCESS, PC_MSG_BAD_FD,
   49     PC_MSG_CLIENT_LOCK_INFO, PC_MSG_CACHE_INVALIDATION_FAIL,
   50     PC_MSG_CHILD_STATUS, PC_MSG_GFID_NULL, PC_MSG_RECALL_LEASE_FAIL,
   51     PC_MSG_INODELK_CONTENTION_FAIL, PC_MSG_ENTRYLK_CONTENTION_FAIL,
   52     PC_MSG_BIGGER_SIZE, PC_MSG_CLIENT_DUMP_LOCKS_FAILED, PC_MSG_UNKNOWN_CMD,
   53     PC_MSG_REOPEN_FAILED, PC_MSG_FIND_KEY_FAILED, PC_MSG_VOL_ID_CHANGED,
   54     PC_MSG_GETHOSTNAME_FAILED, PC_MSG_VOLFILE_KEY_SET_FAILED,
   55     PC_MSG_VOLFILE_CHECKSUM_FAILED, PC_MSG_FRAME_NOT_FOUND,
   56     PC_MSG_REMOTE_SUBVOL_SET_FAIL, PC_MSG_HANDSHAKE_PGM_NOT_FOUND,
   57     PC_MSG_MERGE_IOBREF_FAILED, PC_MSG_ADD_IOBUF_FAILED,
   58     PC_MSG_RELEASE_DIR_OP_FAILED, PC_MSG_REMOTE_HOST_SET_FAILED,
   59     PC_MSG_REMOTE_PORT_SET_FAILED, PC_MSG_REMOTE_HOST_NOT_SET,
   60     PC_MSG_NOREMOTE_HOST, PC_MSG_REMOTE_SUBVOL_NOT_GIVEN,
   61     PC_MSG_FATAL_CLIENT_PROTOCOL, PC_MSG_VOL_DANGLING,
   62     PC_MSG_CREATE_MEM_POOL_FAILED, PC_MSG_PVT_XLATOR_NULL, PC_MSG_XLATOR_NULL,
   63     PC_MSG_LEASE_FOP_FAILED, PC_MSG_DICT_SET_FAIL, PC_MSG_NO_MEM,
   64     PC_MSG_UNKNOWN_LOCK_TYPE, PC_MSG_CLIENT_UID_ALLOC_FAILED);
   65 
   66 #define PC_MSG_REMOTE_OP_FAILED_STR "remote operation failed."
   67 #define PC_MSG_XDR_DECODING_FAILED_STR "XDR decoding failed"
   68 #define PC_MSG_FOP_SEND_FAILED_STR "failed to send the fop"
   69 #define PC_MSG_BIGGER_SIZE_STR "read-size is bigger than iobuf isze"
   70 #define PC_MSG_CLIENT_DUMP_LOCKS_FAILED_STR "client dump locks failed"
   71 #define PC_MSG_UNKNOWN_CMD_STR "Unknown cmd"
   72 #define PC_MSG_CHILD_UP_NOTIFY_FAILED_STR "notify of CHILD_UP failed"
   73 #define PC_MSG_CHILD_STATUS_STR                                                \
   74     "Defering sending CHILD_UP message as the client translators are not yet " \
   75     "ready to serve"
   76 #define PC_MSG_CHILD_UP_NOTIFY_STR "last fd open'd - notifying CHILD_UP"
   77 #define PC_MSG_RPC_STATUS_ERROR_STR                                            \
   78     "received RPC status error, returning ENOTCONN"
   79 #define PC_MSG_REOPEN_FAILED_STR "reopen failed"
   80 #define PC_MSG_DIR_OP_SUCCESS_STR "reopen dir succeeded"
   81 #define PC_MSG_DIR_OP_FAILED_STR "failed to send the re-opendir request"
   82 #define PC_MSG_CHILD_UP_NOTIFY_DELAY_STR                                       \
   83     "fds open - Delaying child_up until they are re-opened"
   84 #define PC_MSG_VOL_SET_FAIL_STR "failed to set the volume"
   85 #define PC_MSG_DICT_UNSERIALIZE_FAIL_STR "failed to unserialize buffer to dict"
   86 #define PC_MSG_DICT_GET_FAILED_STR "failed to get from reply dict"
   87 #define PC_MSG_SETVOLUME_FAIL_STR "SETVOLUME on remote-host failed"
   88 #define PC_MSG_VOLFILE_NOTIFY_FAILED_STR "notify of VOLFILE_MODIFIED failed"
   89 #define PC_MSG_FIND_KEY_FAILED_STR "failed to find key in the options"
   90 #define PC_MSG_VOL_ID_CHANGED_STR                                              \
   91     "volume-id changed, can't connect to server. Needs remount"
   92 #define PC_MSG_REMOTE_VOL_CONNECTED_STR "Connected, attached to remote volume"
   93 #define PC_MSG_AUTH_FAILED_STR "sending AUTH_FAILED event"
   94 #define PC_MSG_AUTH_FAILED_NOTIFY_FAILED_STR "notify of AUTH_FAILED failed"
   95 #define PC_MSG_CHILD_CONNECTING_EVENT_STR "sending CHILD_CONNECTING event"
   96 #define PC_MSG_CHILD_CONNECTING_NOTIFY_FAILED_STR                              \
   97     "notify of CHILD_CONNECTING failed"
   98 #define PC_MSG_DICT_SET_FAILED_STR "failed to set in handshake msg"
   99 #define PC_MSG_GETHOSTNAME_FAILED_STR "gethostname: failed"
  100 #define PC_MSG_PROCESS_UUID_SET_FAIL_STR                                       \
  101     "asprintf failed while setting process_uuid"
  102 #define PC_MSG_VOLFILE_KEY_SET_FAILED_STR "failed to set volfile-key"
  103 #define PC_MSG_VOLFILE_CHECKSUM_FAILED_STR "failed to set volfile-checksum"
  104 #define PC_MSG_DICT_SERIALIZE_FAIL_STR "failed to serialize dictionary"
  105 #define PC_MSG_PGM_NOT_FOUND_STR "xlator not found OR RPC program not found"
  106 #define PC_MSG_VERSION_INFO_STR "Using Program"
  107 #define PC_MSG_FRAME_NOT_FOUND_STR "frame not found with rpc request"
  108 #define PC_MSG_PORT_NUM_ERROR_STR                                              \
  109     "failed to get the port number for remote subvolume. Please run gluster "  \
  110     "volume status on server to see if brick process is running"
  111 #define PC_MSG_REMOTE_SUBVOL_SET_FAIL_STR "remote-subvolume not set in volfile"
  112 #define PC_MSG_VERSION_ERROR_STR "failed to get the version from server"
  113 #define PC_MSG_NO_VERSION_SUPPORT_STR "server doesn't support the version"
  114 #define PC_MSG_HANDSHAKE_PGM_NOT_FOUND_STR "handshake program not found"
  115 #define PC_MSG_MERGE_IOBREF_FAILED_STR                                         \
  116     "cannot merge iobref passed from caller into new_iobref"
  117 #define PC_MSG_ADD_IOBUF_FAILED_STR "cannot add iobuf into iobref"
  118 #define PC_MSG_RELEASE_DIR_OP_FAILED_STR "release dir op failed"
  119 #define PC_MSG_FILE_OP_FAILED_STR "release fop failed"
  120 #define PC_MSG_REMOTE_HOST_SET_FAILED_STR "failed to set remote-host"
  121 #define PC_MSG_REMOTE_PORT_SET_FAILED_STR "failed to set remote-port"
  122 #define PC_MSG_RPC_INIT_STR "client rpc init command"
  123 #define PC_MSG_RPC_DESTROY_STR "client rpc destroy command"
  124 #define PC_MSG_HANDSHAKE_RETURN_STR "handshake msg returned"
  125 #define PC_MSG_CLIENT_DISCONNECTED_STR                                         \
  126     "disconnected from client, process will keep trying to connect glusterd "  \
  127     "until brick's port is available"
  128 #define PC_MSG_CHILD_DOWN_NOTIFY_FAILED_STR "CHILD_DOWN notify failed"
  129 #define PC_MSG_PARENT_UP_STR                                                   \
  130     "parent translators are ready, attempting connect on transport"
  131 #define PC_MSG_PARENT_DOWN_STR                                                 \
  132     "current graph is no longer active, destroying rpc_client"
  133 #define PC_MSG_REMOTE_HOST_NOT_SET_STR                                         \
  134     "Remote host is not set. Assuming the volfile server as remote host"
  135 #define PC_MSG_NOREMOTE_HOST_STR "No remote host to connect"
  136 #define PC_MSG_REMOTE_SUBVOL_NOT_GIVEN_STR "option 'remote-subvolume' not given"
  137 #define PC_MSG_NO_MEMORY_STR "Memory accounting init failed"
  138 #define PC_MSG_RPC_INVALID_CALL_STR                                            \
  139     "RPC destroy called on already destroyed connection"
  140 #define PC_MSG_RPC_INITED_ALREADY_STR "client rpc already init'ed"
  141 #define PC_MSG_RPC_INIT_FAILED_STR "failed to initialize RPC"
  142 #define PC_MSG_RPC_NOTIFY_FAILED_STR "failed to register notify"
  143 #define PC_MSG_RPC_CBK_FAILED_STR "failed to reister callback program"
  144 #define PC_MSG_FATAL_CLIENT_PROTOCOL_STR                                       \
  145     "FATAL: client protocol, translator cannot have any subvolumes"
  146 #define PC_MSG_VOL_DANGLING_STR "Volume is dangling"
  147 #define PC_MSG_CREATE_MEM_POOL_FAILED_STR                                      \
  148     "failed to create local_t's memory pool"
  149 #define PC_MSG_XLATOR_NULL_STR "xlator is NULL"
  150 #define PC_MSG_PVT_XLATOR_NULL_STR "private structure of the xlator is NULL"
  151 #define PC_MSG_LEASE_FOP_FAILED_STR "Lease fop failed"
  152 #define PC_MSG_LOCK_ERROR_STR                                                  \
  153     "Unexpected case in subtract_locks. Please send a bug report to "          \
  154     "gluster-devel@gluster.org"
  155 #define PC_MSG_FD_CTX_INVALID_STR "fdctx not valid"
  156 #define PC_MSG_FD_GET_FAIL_STR "failed to get fd context. sending EBADFD"
  157 #define PC_MSG_DICT_SET_FAIL_STR "could not set dict"
  158 #define PC_MSG_CLIENT_LOCK_INFO_STR "client lock info"
  159 #define PC_MSG_BAD_FD_STR "remote_fd is -1. EBADFD"
  160 #define PC_MSG_FUNCTION_CALL_ERROR_STR "this function should not be called"
  161 #define PC_MSG_RECALL_LEASE_FAIL_STR "XDR decode of recall lease failed"
  162 #define PC_MSG_CACHE_INVALIDATION_FAIL_STR                                     \
  163     "XDR decode of cache_invalidation failed"
  164 #define PC_MSG_INODELK_CONTENTION_FAIL_STR                                     \
  165     "XDR decode of inodelk contention failed"
  166 #define PC_MSG_ENTRYLK_CONTENTION_FAIL_STR                                     \
  167     "XDR decode of entrylk contention failed"
  168 #define PC_MSG_FD_DUPLICATE_TRY_STR "trying duplicate remote fd set"
  169 #define PC_MSG_FD_SET_FAIL_STR "failed to set remote-fd"
  170 #define PC_MSG_NO_MEM_STR "No memory"
  171 #define PC_MSG_UNKNOWN_LOCK_TYPE_STR "Unknown lock type"
  172 #define PC_MSG_CLIENT_UID_ALLOC_FAILED_STR "client-uid could not be allocated"
  173 
  174 #endif /* !_PC_MESSAGES_H__ */