"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/protocol/server/src/server-messages.h" (16 Sep 2020, 9485 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 "server-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 _PS_MESSAGES_H__
   12 #define _PS_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     PS, PS_MSG_AUTHENTICATE_ERROR, PS_MSG_VOL_VALIDATE_FAILED,
   28     PS_MSG_AUTH_INIT_FAILED, PS_MSG_REMOTE_CLIENT_REFUSED,
   29     PS_MSG_GFID_RESOLVE_FAILED, PS_MSG_ANONYMOUS_FD_CREATE_FAILED,
   30     PS_MSG_NO_MEMORY, PS_MSG_FD_NOT_FOUND, PS_MSG_INVALID_ENTRY,
   31     PS_MSG_GET_UID_FAILED, PS_MSG_UID_NOT_FOUND, PS_MSG_MAPPING_ERROR,
   32     PS_MSG_FD_CLEANUP, PS_MSG_SERVER_CTX_GET_FAILED, PS_MSG_FDENTRY_NULL,
   33     PS_MSG_DIR_NOT_FOUND, PS_MSG_SERVER_MSG, PS_MSG_DICT_SERIALIZE_FAIL,
   34     PS_MSG_RW_STAT, PS_MSG_DICT_GET_FAILED, PS_MSG_LOGIN_ERROR,
   35     PS_MSG_REMOUNT_CLIENT_REQD, PS_MSG_DEFAULTING_FILE,
   36     PS_MSG_VOL_FILE_OPEN_FAILED, PS_MSG_STAT_ERROR, PS_MSG_SSL_NAME_SET_FAILED,
   37     PS_MSG_ASPRINTF_FAILED, PS_MSG_CLIENT_VERSION_NOT_SET,
   38     PS_MSG_CLIENT_ACCEPTED, PS_MSG_CLIENT_LK_VERSION_ERROR,
   39     PS_MSG_GRACE_TIMER_EXPD, PS_MSG_SERIALIZE_REPLY_FAILED,
   40     PS_MSG_AUTH_IP_ERROR, PS_MSG_SKIP_FORMAT_CHK, PS_MSG_INTERNET_ADDR_ERROR,
   41     PS_MSG_CLIENT_DISCONNECTING, PS_MSG_GRACE_TIMER_START,
   42     PS_MSG_STATEDUMP_PATH_ERROR, PS_MSG_GRP_CACHE_ERROR, PS_MSG_RPC_CONF_ERROR,
   43     PS_MSG_TRANSPORT_ERROR, PS_MSG_SUBVOL_NULL, PS_MSG_PARENT_VOL_ERROR,
   44     PS_MSG_RPCSVC_CREATE_FAILED, PS_MSG_RPCSVC_LISTENER_CREATE_FAILED,
   45     PS_MSG_RPCSVC_NOTIFY, PS_MSG_PGM_REG_FAILED, PS_MSG_ULIMIT_SET_FAILED,
   46     PS_MSG_STATFS, PS_MSG_LOOKUP_INFO, PS_MSG_LK_INFO, PS_MSG_LOCK_ERROR,
   47     PS_MSG_INODELK_INFO, PS_MSG_ENTRYLK_INFO, PS_MSG_ACCESS_INFO,
   48     PS_MSG_DIR_INFO, PS_MSG_MKNOD_INFO, PS_MSG_REMOVEXATTR_INFO,
   49     PS_MSG_GETXATTR_INFO, PS_MSG_SETXATTR_INFO, PS_MSG_RENAME_INFO,
   50     PS_MSG_LINK_INFO, PS_MSG_TRUNCATE_INFO, PS_MSG_FSTAT_INFO,
   51     PS_MSG_FLUSH_INFO, PS_MSG_SYNC_INFO, PS_MSG_WRITE_INFO, PS_MSG_READ_INFO,
   52     PS_MSG_CHKSUM_INFO, PS_MSG_OPEN_INFO, PS_MSG_CREATE_INFO,
   53     PS_MSG_SETATTR_INFO, PS_MSG_XATTROP_INFO, PS_MSG_ALLOC_INFO,
   54     PS_MSG_DISCARD_INFO, PS_MSG_ZEROFILL_INFO, PS_MSG_FD_CREATE_FAILED,
   55     PS_MSG_WRONG_STATE, PS_MSG_CONF_DIR_INVALID, PS_MSG_MOUNT_PT_FAIL,
   56     PS_MSG_STAT_INFO, PS_MSG_FILE_OP_FAILED, PS_MSG_GRACE_TIMER_CANCELLED,
   57     PS_MSG_ENCODE_MSG_FAILED, PS_MSG_REPLY_SUBMIT_FAILED,
   58     PS_MSG_RPC_NOTIFY_ERROR, PS_MSG_SERVER_EVENT_UPCALL_FAILED,
   59     PS_MSG_SERVER_IPC_INFO, PS_MSG_SEEK_INFO, PS_MSG_COMPOUND_INFO,
   60     PS_MSG_CLIENT_OPVERSION_GET_FAILED, PS_MSG_CHILD_STATUS_FAILED,
   61     PS_MSG_PUT_INFO, PS_MSG_UNAUTHORIZED_CLIENT, PS_MSG_RECONFIGURE_FAILED,
   62     PS_MSG_SET_STATEDUMP_PATH_ERROR, PS_MSG_INIT_GRP_CACHE_ERROR,
   63     PS_MSG_RPC_CONFIGURE_FAILED, PS_MSG_TRANSPORT_TYPE_NOT_SET,
   64     PS_MSG_GET_TOTAL_AVAIL_TRANSPORT_FAILED, PS_MSG_INVLAID_UPCALL_EVENT,
   65     PS_MSG_SERVER_CHILD_EVENT_FAILED, PS_MSG_SETACTIVELK_INFO,
   66     PS_MSG_GETACTIVELK_INFO, PS_MSG_WRONG_VALUE, PS_MSG_PASSWORD_NOT_FOUND,
   67     PS_MSG_REMOTE_SUBVOL_NOT_SPECIFIED, PS_MSG_NO_MEM);
   68 
   69 #define PS_MSG_SERIALIZE_REPLY_FAILED_STR "Failed to serialize reply"
   70 #define PS_MSG_AUTH_IP_ERROR_STR "assuming 'auth.ip' to be 'auth.addr'"
   71 #define PS_MSG_SKIP_FORMAT_CHK_STR "skip format check for non-addr auth option"
   72 #define PS_MSG_INTERNET_ADDR_ERROR_STR                                         \
   73     "internet address does not confirm to standards"
   74 #define PS_MSG_AUTHENTICATE_ERROR_STR                                          \
   75     "volume defined as subvolume, but no authentication defined for the same"
   76 #define PS_MSG_CLIENT_DISCONNECTING_STR "disconnecting connection"
   77 #define PS_MSG_DICT_GET_FAILED_STR "failed to get"
   78 #define PS_MSG_NO_MEMORY_STR "Memory accounting init failed"
   79 #define PS_MSG_INVALID_ENTRY_STR                                               \
   80     "'trace' takes on only boolean values. Neglecting option"
   81 #define PS_MSG_STATEDUMP_PATH_ERROR_STR                                        \
   82     "Error while reconfiguring statedump path"
   83 #define PS_MSG_GRP_CACHE_ERROR_STR "Failed to reconfigure group cache."
   84 #define PS_MSG_RPC_CONF_ERROR_STR "No rpc_conf !!!!"
   85 #define PS_MSG_CLIENT_ACCEPTED_STR                                             \
   86     "authorized client, hence we continue with this connection"
   87 #define PS_MSG_UNAUTHORIZED_CLIENT_STR                                         \
   88     "unauthorized client, hence terminating the connection"
   89 #define PS_MSG_RECONFIGURE_FAILED_STR                                          \
   90     "Failed to reconfigure outstanding-rpc-limit"
   91 #define PS_MSG_TRANSPORT_ERROR_STR "Reconfigure not found for transport"
   92 #define PS_MSG_SUBVOL_NULL_STR "protocol/server should have subvolume"
   93 #define PS_MSG_PARENT_VOL_ERROR_STR                                            \
   94     "protocol/server should not have parent volumes"
   95 #define PS_MSG_SET_STATEDUMP_PATH_ERROR_STR "Error setting statedump path"
   96 #define PS_MSG_INIT_GRP_CACHE_ERROR_STR "Failed to initialize group cache."
   97 #define PS_MSG_RPCSVC_CREATE_FAILED_STR "creation of rpcsvc failed"
   98 #define PS_MSG_RPC_CONFIGURE_FAILED_STR                                        \
   99     "Failed to configure outstanding-rpc-limit"
  100 #define PS_MSG_TRANSPORT_TYPE_NOT_SET_STR "option transport-type not set"
  101 #define PS_MSG_GET_TOTAL_AVAIL_TRANSPORT_FAILED_STR                            \
  102     "failed to get total number of available tranpsorts"
  103 #define PS_MSG_RPCSVC_LISTENER_CREATE_FAILED_STR "creation of listener failed"
  104 #define PS_MSG_RPCSVC_NOTIFY_STR "registration of notify with rpcsvc failed"
  105 #define PS_MSG_PGM_REG_FAILED_STR "registration of program failed"
  106 #define PS_MSG_ULIMIT_SET_FAILED_STR "WARNING: Failed to set 'ulimit -n 1M'"
  107 #define PS_MSG_FD_NOT_FOUND_STR "Failed to set max open fd to 64k"
  108 #define PS_MSG_VOL_FILE_OPEN_FAILED_STR                                        \
  109     "volfile-id argument not given. This is mandatory argument, defaulting "   \
  110     "to 'gluster'"
  111 #define PS_MSG_INVLAID_UPCALL_EVENT_STR "Received invalid upcall event"
  112 #define PS_MSG_CHILD_STATUS_FAILED_STR "No xlator is found in child status list"
  113 #define PS_MSG_SERVER_EVENT_UPCALL_FAILED_STR                                  \
  114     "server_process_event_upcall failed"
  115 #define PS_MSG_SERVER_CHILD_EVENT_FAILED_STR "server_process_child_event failed"
  116 #define PS_MSG_STATFS_STR "STATFS"
  117 #define PS_MSG_LOOKUP_INFO_STR "LOOKUP info"
  118 #define PS_MSG_LK_INFO_STR "LEASE info"
  119 #define PS_MSG_INODELK_INFO_STR "INODELK info"
  120 #define PS_MSG_DIR_INFO_STR "MKDIR info"
  121 #define PS_MSG_MKNOD_INFO_STR "MKNOD info"
  122 #define PS_MSG_REMOVEXATTR_INFO_STR "REMOVEXATTR info"
  123 #define PS_MSG_GETXATTR_INFO_STR "GETXATTR info"
  124 #define PS_MSG_SETXATTR_INFO_STR "SETXATTR info"
  125 #define PS_MSG_RENAME_INFO_STR "RENAME inf"
  126 #define PS_MSG_LINK_INFO_STR "LINK info"
  127 #define PS_MSG_TRUNCATE_INFO_STR "TRUNCATE info"
  128 #define PS_MSG_STAT_INFO_STR "STAT info"
  129 #define PS_MSG_FLUSH_INFO_STR "FLUSH info"
  130 #define PS_MSG_SYNC_INFO_STR "SYNC info"
  131 #define PS_MSG_WRITE_INFO_STR "WRITE info"
  132 #define PS_MSG_READ_INFO_STR "READ info"
  133 #define PS_MSG_CHKSUM_INFO_STR "CHKSUM info"
  134 #define PS_MSG_OPEN_INFO_STR "OPEN info"
  135 #define PS_MSG_XATTROP_INFO_STR "XATTROP info"
  136 #define PS_MSG_ALLOC_INFO_STR "ALLOC info"
  137 #define PS_MSG_DISCARD_INFO_STR "DISCARD info"
  138 #define PS_MSG_ZEROFILL_INFO_STR "ZEROFILL info"
  139 #define PS_MSG_SERVER_IPC_INFO_STR "IPC info"
  140 #define PS_MSG_SEEK_INFO_STR "SEEK info"
  141 #define PS_MSG_SETACTIVELK_INFO_STR "SETACTIVELK info"
  142 #define PS_MSG_CREATE_INFO_STR "CREATE info"
  143 #define PS_MSG_PUT_INFO_STR "PUT info"
  144 #define PS_MSG_FD_CREATE_FAILED_STR "could not create the fd"
  145 #define PS_MSG_GETACTIVELK_INFO_STR "GETACTIVELK  info"
  146 #define PS_MSG_ENTRYLK_INFO_STR "ENTRYLK info"
  147 #define PS_MSG_ACCESS_INFO_STR "ACCESS info"
  148 #define PS_MSG_SETATTR_INFO_STR "SETATTR info"
  149 #define PS_MSG_SERVER_CTX_GET_FAILED_STR "server_ctx_get() failed"
  150 #define PS_MSG_LOCK_ERROR_STR "Unknown lock type"
  151 #define PS_MSG_GET_UID_FAILED_STR "getpwuid_r failed"
  152 #define PS_MSG_UID_NOT_FOUND_STR "getpwuid_r found nothing"
  153 #define PS_MSG_MAPPING_ERROR_STR "could not map to group list"
  154 #define PS_MSG_FD_CLEANUP_STR "fd cleanup"
  155 #define PS_MSG_FDENTRY_NULL_STR "no fdentry to clean"
  156 #define PS_MSG_WRONG_VALUE_STR                                                 \
  157     "wrong value for 'verify-volfile-checksum', Neglecting option"
  158 #define PS_MSG_DIR_NOT_FOUND_STR "Directory doesnot exist"
  159 #define PS_MSG_CONF_DIR_INVALID_STR "invalid conf_dir"
  160 #define PS_MSG_SERVER_MSG_STR "server msg"
  161 #define PS_MSG_DICT_SERIALIZE_FAIL_STR "failed to serialize reply dict"
  162 #define PS_MSG_MOUNT_PT_FAIL_STR "mount point fail"
  163 #define PS_MSG_RW_STAT_STR "stat"
  164 #define PS_MSG_PASSWORD_NOT_FOUND_STR "password not found, returning DONT-CARE"
  165 #define PS_MSG_REMOTE_SUBVOL_NOT_SPECIFIED_STR "remote-subvolume not specified"
  166 #define PS_MSG_LOGIN_ERROR_STR "wrong password for user"
  167 #define PS_MSG_NO_MEM_STR "No memory"
  168 #endif /* !_PS_MESSAGES_H__ */