"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/api/src/gfapi-messages.h" (16 Sep 2020, 8761 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 "gfapi-messages.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  *   Copyright (c) 2015-2018 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 _GFAPI_MESSAGES_H__
   12 #define _GFAPI_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(API, API_MSG_MEM_ACCT_INIT_FAILED, API_MSG_MASTER_XLATOR_INIT_FAILED,
   27            API_MSG_GFAPI_XLATOR_INIT_FAILED, API_MSG_VOLFILE_OPEN_FAILED,
   28            API_MSG_VOL_SPEC_FILE_ERROR, API_MSG_GLFS_FSOBJ_NULL,
   29            API_MSG_INVALID_ENTRY, API_MSG_FSMUTEX_LOCK_FAILED,
   30            API_MSG_COND_WAIT_FAILED, API_MSG_FSMUTEX_UNLOCK_FAILED,
   31            API_MSG_INODE_REFRESH_FAILED, API_MSG_GRAPH_CONSTRUCT_FAILED,
   32            API_MSG_API_XLATOR_ERROR, API_MSG_XDR_PAYLOAD_FAILED,
   33            API_MSG_GET_VOLINFO_CBK_FAILED, API_MSG_FETCH_VOLUUID_FAILED,
   34            API_MSG_INSUFF_SIZE, API_MSG_FRAME_CREAT_FAILED,
   35            API_MSG_DICT_SET_FAILED, API_MSG_XDR_DECODE_FAILED,
   36            API_MSG_GET_VOLFILE_FAILED, API_MSG_WRONG_OPVERSION,
   37            API_MSG_DICT_SERIALIZE_FAILED, API_MSG_REMOTE_HOST_CONN_FAILED,
   38            API_MSG_VOLFILE_SERVER_EXHAUST, API_MSG_CREATE_RPC_CLIENT_FAILED,
   39            API_MSG_REG_NOTIFY_FUNC_FAILED, API_MSG_REG_CBK_FUNC_FAILED,
   40            API_MSG_GET_CWD_FAILED, API_MSG_FGETXATTR_FAILED,
   41            API_MSG_LOCKINFO_KEY_MISSING, API_MSG_FSETXATTR_FAILED,
   42            API_MSG_FSYNC_FAILED, API_MSG_FDCREATE_FAILED,
   43            API_MSG_INODE_PATH_FAILED, API_MSG_SYNCOP_OPEN_FAILED,
   44            API_MSG_LOCK_MIGRATE_FAILED, API_MSG_OPENFD_SKIPPED,
   45            API_MSG_FIRST_LOOKUP_GRAPH_FAILED, API_MSG_CWD_GRAPH_REF_FAILED,
   46            API_MSG_SWITCHED_GRAPH, API_MSG_XDR_RESPONSE_DECODE_FAILED,
   47            API_MSG_VOLFILE_INFO, API_MSG_VOLFILE_CONNECTING, API_MSG_NEW_GRAPH,
   48            API_MSG_ALLOC_FAILED, API_MSG_CREATE_HANDLE_FAILED,
   49            API_MSG_INODE_LINK_FAILED, API_MSG_STATEDUMP_FAILED,
   50            API_MSG_XREADDIRP_R_FAILED, API_MSG_LOCK_INSERT_MERGE_FAILED,
   51            API_MSG_SETTING_LOCK_TYPE_FAILED, API_MSG_INODE_FIND_FAILED,
   52            API_MSG_FDCTX_SET_FAILED, API_MSG_UPCALL_SYNCOP_FAILED,
   53            API_MSG_INVALID_ARG, API_MSG_UPCALL_EVENT_NULL_RECEIVED,
   54            API_MSG_FLAGS_HANDLE, API_MSG_FDCREATE_FAILED_ON_GRAPH,
   55            API_MSG_TRANS_RDMA_DEP, API_MSG_TRANS_NOT_SUPPORTED,
   56            API_MSG_FS_NOT_INIT, API_MSG_INVALID_SYSRQ,
   57            API_MSG_DECODE_XDR_FAILED, API_MSG_NULL, API_MSG_CALL_NOT_SUCCESSFUL,
   58            API_MSG_CALL_NOT_VALID, API_MSG_UNABLE_TO_DEL,
   59            API_MSG_REMOTE_HOST_DISCONN, API_MSG_HANDLE_NOT_SET);
   60 
   61 #define API_MSG_ALLOC_FAILED_STR "Upcall allocation failed"
   62 #define API_MSG_LOCK_INSERT_MERGE_FAILED_STR                                   \
   63     "Lock insertion and splitting/merging failed"
   64 #define API_MSG_SETTING_LOCK_TYPE_FAILED_STR "Setting lock type failed"
   65 
   66 #define API_MSG_INVALID_ARG_STR "Invalid"
   67 #define API_MSG_INVALID_ENTRY_STR "Upcall entry validation failed"
   68 #define API_MSG_INODE_FIND_FAILED_STR "Unable to find inode entry"
   69 #define API_MSG_CREATE_HANDLE_FAILED_STR "handle creation failed"
   70 #define API_MSG_UPCALL_EVENT_NULL_RECEIVED_STR                                 \
   71     "Upcall_EVENT_NULL received. Skipping it"
   72 #define API_MSG_UPCALL_SYNCOP_FAILED_STR "Synctask for upcall failed"
   73 #define API_MSG_FDCREATE_FAILED_STR "Allocating anonymous fd failed"
   74 #define API_MSG_XREADDIRP_R_FAILED_STR "glfs_x_readdirp_r failed"
   75 #define API_MSG_FDCTX_SET_FAILED_STR "Setting fd ctx failed"
   76 #define API_MSG_FLAGS_HANDLE_STR "arg not set. Flags handled are"
   77 #define API_MSG_INODE_REFRESH_FAILED_STR "inode refresh failed"
   78 #define API_MSG_INODE_LINK_FAILED_STR "inode linking failed"
   79 #define API_MSG_GET_CWD_FAILED_STR "Failed to get cwd"
   80 #define API_MSG_FGETXATTR_FAILED_STR "fgetxattr failed"
   81 #define API_MSG_LOCKINFO_KEY_MISSING_STR "missing lockinfo key"
   82 #define API_MSG_FSYNC_FAILED_STR "fsync() failed"
   83 #define API_MSG_FDCREATE_FAILED_ON_GRAPH_STR "fd_create failed on graph"
   84 #define API_MSG_INODE_PATH_FAILED_STR "inode_path failed"
   85 #define API_MSG_SYNCOP_OPEN_FAILED_STR "syncop_open failed"
   86 #define API_MSG_LOCK_MIGRATE_FAILED_STR "lock migration failed on graph"
   87 #define API_MSG_OPENFD_SKIPPED_STR "skipping openfd in graph"
   88 #define API_MSG_FIRST_LOOKUP_GRAPH_FAILED_STR "first lookup on graph failed"
   89 #define API_MSG_CWD_GRAPH_REF_FAILED_STR "cwd refresh of graph failed"
   90 #define API_MSG_SWITCHED_GRAPH_STR "switched to graph"
   91 #define API_MSG_FSETXATTR_FAILED_STR "fsetxattr failed"
   92 #define API_MSG_MEM_ACCT_INIT_FAILED_STR "Memory accounting init failed"
   93 #define API_MSG_MASTER_XLATOR_INIT_FAILED_STR                                  \
   94     "master xlator for initialization failed"
   95 #define API_MSG_GFAPI_XLATOR_INIT_FAILED_STR                                   \
   96     "failed to initialize gfapi translator"
   97 #define API_MSG_VOLFILE_OPEN_FAILED_STR "volume file open failed"
   98 #define API_MSG_VOL_SPEC_FILE_ERROR_STR "Cannot reach volume specification file"
   99 #define API_MSG_TRANS_RDMA_DEP_STR                                             \
  100     "transport RDMA is deprecated, falling back to tcp"
  101 #define API_MSG_TRANS_NOT_SUPPORTED_STR                                        \
  102     "transport is not supported, possible values tcp|unix"
  103 #define API_MSG_GLFS_FSOBJ_NULL_STR "fs is NULL"
  104 #define API_MSG_FS_NOT_INIT_STR "fs is not properly initialized"
  105 #define API_MSG_FSMUTEX_LOCK_FAILED_STR                                        \
  106     "pthread lock on glfs mutex, returned error"
  107 #define API_MSG_FSMUTEX_UNLOCK_FAILED_STR                                      \
  108     "pthread unlock on glfs mutex, returned error"
  109 #define API_MSG_COND_WAIT_FAILED_STR "cond wait failed"
  110 #define API_MSG_INVALID_SYSRQ_STR "not a valid sysrq"
  111 #define API_MSG_GRAPH_CONSTRUCT_FAILED_STR "failed to construct the graph"
  112 #define API_MSG_API_XLATOR_ERROR_STR                                           \
  113     "api master xlator cannot be specified in volume file"
  114 #define API_MSG_STATEDUMP_FAILED_STR "statedump failed"
  115 #define API_MSG_DECODE_XDR_FAILED_STR                                          \
  116     "Failed to decode xdr response for GF_CBK_STATEDUMP"
  117 #define API_MSG_NULL_STR "NULL"
  118 #define API_MSG_XDR_PAYLOAD_FAILED_STR "failed to create XDR payload"
  119 #define API_MSG_CALL_NOT_SUCCESSFUL_STR                                        \
  120     "GET_VOLUME_INFO RPC call is not successful"
  121 #define API_MSG_XDR_RESPONSE_DECODE_FAILED_STR                                 \
  122     "Failed to decode xdr response for GET_VOLUME_INFO"
  123 #define API_MSG_CALL_NOT_VALID_STR                                             \
  124     "Response received for GET_VOLUME_INFO RPC is not valid"
  125 #define API_MSG_GET_VOLINFO_CBK_FAILED_STR                                     \
  126     "In GET_VOLUME_INFO cbk, received error"
  127 #define API_MSG_FETCH_VOLUUID_FAILED_STR "Unable to fetch volume UUID"
  128 #define API_MSG_INSUFF_SIZE_STR "Insufficient size passed"
  129 #define API_MSG_FRAME_CREAT_FAILED_STR "failed to create the frame"
  130 #define API_MSG_DICT_SET_FAILED_STR "failed to set"
  131 #define API_MSG_XDR_DECODE_FAILED_STR "XDR decoding error"
  132 #define API_MSG_GET_VOLFILE_FAILED_STR "failed to get the volume file"
  133 #define API_MSG_VOLFILE_INFO_STR "No change in volfile, continuing"
  134 #define API_MSG_UNABLE_TO_DEL_STR "unable to delete file"
  135 #define API_MSG_WRONG_OPVERSION_STR                                            \
  136     "Server is operating at an op-version which is not supported"
  137 #define API_MSG_DICT_SERIALIZE_FAILED_STR "Failed to serialize dictionary"
  138 #define API_MSG_REMOTE_HOST_CONN_FAILED_STR "Failed to connect to remote-host"
  139 #define API_MSG_REMOTE_HOST_DISCONN_STR "disconnected from remote-host"
  140 #define API_MSG_VOLFILE_SERVER_EXHAUST_STR "Exhausted all volfile servers"
  141 #define API_MSG_VOLFILE_CONNECTING_STR "connecting to next volfile server"
  142 #define API_MSG_CREATE_RPC_CLIENT_FAILED_STR "failed to create rpc clnt"
  143 #define API_MSG_REG_NOTIFY_FUNC_FAILED_STR "failed to register notify function"
  144 #define API_MSG_REG_CBK_FUNC_FAILED_STR "failed to register callback function"
  145 #define API_MSG_NEW_GRAPH_STR "New graph coming up"
  146 #define API_MSG_HANDLE_NOT_SET_STR "handle not set. Flags handled for xstat are"
  147 #endif /* !_GFAPI_MESSAGES_H__ */