"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/features/changelog/src/changelog-messages.h" (16 Sep 2020, 10820 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 "changelog-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 _CHANGELOG_MESSAGES_H_
   12 #define _CHANGELOG_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     CHANGELOG, CHANGELOG_MSG_OPEN_FAILED, CHANGELOG_MSG_BARRIER_FOP_FAILED,
   28     CHANGELOG_MSG_VOL_MISCONFIGURED, CHANGELOG_MSG_RENAME_ERROR,
   29     CHANGELOG_MSG_READ_ERROR, CHANGELOG_MSG_HTIME_ERROR,
   30     CHANGELOG_MSG_PTHREAD_MUTEX_INIT_FAILED,
   31     CHANGELOG_MSG_PTHREAD_COND_INIT_FAILED, CHANGELOG_MSG_CHILD_MISCONFIGURED,
   32     CHANGELOG_MSG_DIR_OPTIONS_NOT_SET, CHANGELOG_MSG_CLOSE_ERROR,
   33     CHANGELOG_MSG_PIPE_CREATION_ERROR, CHANGELOG_MSG_DICT_GET_FAILED,
   34     CHANGELOG_MSG_BARRIER_INFO, CHANGELOG_MSG_BARRIER_ERROR,
   35     CHANGELOG_MSG_GET_TIME_OP_FAILED, CHANGELOG_MSG_WRITE_FAILED,
   36     CHANGELOG_MSG_PTHREAD_ERROR, CHANGELOG_MSG_INODE_NOT_FOUND,
   37     CHANGELOG_MSG_FSYNC_OP_FAILED, CHANGELOG_MSG_TOTAL_LOG_INFO,
   38     CHANGELOG_MSG_SNAP_INFO, CHANGELOG_MSG_SELECT_FAILED,
   39     CHANGELOG_MSG_FCNTL_FAILED, CHANGELOG_MSG_BNOTIFY_INFO,
   40     CHANGELOG_MSG_ENTRY_BUF_INFO, CHANGELOG_MSG_CHANGELOG_NOT_ACTIVE,
   41     CHANGELOG_MSG_LOCAL_INIT_FAILED, CHANGELOG_MSG_NOTIFY_REGISTER_FAILED,
   42     CHANGELOG_MSG_PROGRAM_NAME_REG_FAILED, CHANGELOG_MSG_HANDLE_PROBE_ERROR,
   43     CHANGELOG_MSG_SET_FD_CONTEXT, CHANGELOG_MSG_FREEUP_FAILED,
   44     CHANGELOG_MSG_RECONFIGURE, CHANGELOG_MSG_RPC_SUBMIT_REPLY_FAILED,
   45     CHANGELOG_MSG_RPC_BUILD_ERROR, CHANGELOG_MSG_RPC_CONNECT_ERROR,
   46     CHANGELOG_MSG_RPC_START_ERROR, CHANGELOG_MSG_BUFFER_STARVATION_ERROR,
   47     CHANGELOG_MSG_SCAN_DIR_FAILED, CHANGELOG_MSG_FSETXATTR_FAILED,
   48     CHANGELOG_MSG_FGETXATTR_FAILED, CHANGELOG_MSG_CLEANUP_ON_ACTIVE_REF,
   49     CHANGELOG_MSG_DISPATCH_EVENT_FAILED, CHANGELOG_MSG_PUT_BUFFER_FAILED,
   50     CHANGELOG_MSG_PTHREAD_COND_WAIT_FAILED, CHANGELOG_MSG_PTHREAD_CANCEL_FAILED,
   51     CHANGELOG_MSG_INJECT_FSYNC_FAILED, CHANGELOG_MSG_CREATE_FRAME_FAILED,
   52     CHANGELOG_MSG_FSTAT_OP_FAILED, CHANGELOG_MSG_LSEEK_OP_FAILED,
   53     CHANGELOG_MSG_STRSTR_OP_FAILED, CHANGELOG_MSG_UNLINK_OP_FAILED,
   54     CHANGELOG_MSG_DETECT_EMPTY_CHANGELOG_FAILED,
   55     CHANGELOG_MSG_READLINK_OP_FAILED, CHANGELOG_MSG_EXPLICIT_ROLLOVER_FAILED,
   56     CHANGELOG_MSG_RPCSVC_NOTIFY_FAILED, CHANGELOG_MSG_MEMORY_INIT_FAILED,
   57     CHANGELOG_MSG_NO_MEMORY, CHANGELOG_MSG_HTIME_STAT_ERROR,
   58     CHANGELOG_MSG_HTIME_CURRENT_ERROR, CHANGELOG_MSG_BNOTIFY_COND_INFO,
   59     CHANGELOG_MSG_NO_HTIME_CURRENT, CHANGELOG_MSG_HTIME_CURRENT,
   60     CHANGELOG_MSG_NEW_HTIME_FILE, CHANGELOG_MSG_MKDIR_ERROR,
   61     CHANGELOG_MSG_PATH_NOT_FOUND, CHANGELOG_MSG_XATTR_INIT_FAILED,
   62     CHANGELOG_MSG_WROTE_TO_CSNAP, CHANGELOG_MSG_ROLLOVER_DATA_FILL_FAILED,
   63     CHANGELOG_MSG_GET_BUFFER_FAILED, CHANGELOG_MSG_BARRIER_STATE_NOTIFY,
   64     CHANGELOG_MSG_BARRIER_DISABLED, CHANGELOG_MSG_BARRIER_ALREADY_DISABLED,
   65     CHANGELOG_MSG_BARRIER_ON_ERROR, CHANGELOG_MSG_BARRIER_ENABLE,
   66     CHANGELOG_MSG_BARRIER_KEY_NOT_FOUND, CHANGELOG_MSG_ERROR_IN_DICT_GET,
   67     CHANGELOG_MSG_GET_TIME_FAILURE, CHANGELOG_MSG_HTIME_FETCH_FAILED,
   68     CHANGELOG_MSG_DEQUEUING_BARRIER_FOPS,
   69     CHANGELOG_MSG_DEQUEUING_BARRIER_FOPS_FINISHED,
   70     CHANGELOG_MSG_BARRIER_TIMEOUT, CHANGELOG_MSG_TIMEOUT_ADD_FAILED,
   71     CHANGELOG_MSG_CLEANUP_ALREADY_SET);
   72 
   73 #define CHANGELOG_MSG_BARRIER_FOP_FAILED_STR                                   \
   74     "failed to barrier FOPs, disabling changelog barrier"
   75 #define CHANGELOG_MSG_MEMORY_INIT_FAILED_STR "memory accounting init failed"
   76 #define CHANGELOG_MSG_NO_MEMORY_STR "failed to create local memory pool"
   77 #define CHANGELOG_MSG_ENTRY_BUF_INFO_STR                                       \
   78     "Entry cannot be captured for gfid, Capturing DATA entry."
   79 #define CHANGELOG_MSG_PTHREAD_ERROR_STR "pthread error"
   80 #define CHANGELOG_MSG_PTHREAD_MUTEX_INIT_FAILED_STR "pthread_mutex_init failed"
   81 #define CHANGELOG_MSG_PTHREAD_COND_INIT_FAILED_STR "pthread_cond_init failed"
   82 #define CHANGELOG_MSG_HTIME_ERROR_STR "failed to update HTIME file"
   83 #define CHANGELOG_MSG_HTIME_STAT_ERROR_STR "unable to stat htime file"
   84 #define CHANGELOG_MSG_HTIME_CURRENT_ERROR_STR "Error extracting HTIME_CURRENT."
   85 #define CHANGELOG_MSG_UNLINK_OP_FAILED_STR "error unlinking empty changelog"
   86 #define CHANGELOG_MSG_RENAME_ERROR_STR "error renaming"
   87 #define CHANGELOG_MSG_MKDIR_ERROR_STR "unable to create directory"
   88 #define CHANGELOG_MSG_BNOTIFY_INFO_STR                                         \
   89     "Explicit rollover changelog signaling bnotify"
   90 #define CHANGELOG_MSG_BNOTIFY_COND_INFO_STR "Woke up: bnotify conditional wait"
   91 #define CHANGELOG_MSG_RECONFIGURE_STR "Reconfigure: Changelog Enable"
   92 #define CHANGELOG_MSG_NO_HTIME_CURRENT_STR                                     \
   93     "HTIME_CURRENT not found. Changelog enabled before init"
   94 #define CHANGELOG_MSG_HTIME_CURRENT_STR "HTIME_CURRENT"
   95 #define CHANGELOG_MSG_NEW_HTIME_FILE_STR                                       \
   96     "Changelog enable: Creating new HTIME file"
   97 #define CHANGELOG_MSG_FGETXATTR_FAILED_STR "fgetxattr failed"
   98 #define CHANGELOG_MSG_TOTAL_LOG_INFO_STR "changelog info"
   99 #define CHANGELOG_MSG_PTHREAD_COND_WAIT_FAILED_STR "pthread cond wait failed"
  100 #define CHANGELOG_MSG_INODE_NOT_FOUND_STR "inode not found"
  101 #define CHANGELOG_MSG_READLINK_OP_FAILED_STR                                   \
  102     "could not read the link from the gfid handle"
  103 #define CHANGELOG_MSG_OPEN_FAILED_STR "unable to open file"
  104 #define CHANGELOG_MSG_RPC_CONNECT_ERROR_STR "failed to connect back"
  105 #define CHANGELOG_MSG_BUFFER_STARVATION_ERROR_STR                              \
  106     "Failed to get buffer for RPC dispatch"
  107 #define CHANGELOG_MSG_PTHREAD_CANCEL_FAILED_STR "could not cancel thread"
  108 #define CHANGELOG_MSG_FSTAT_OP_FAILED_STR "Could not stat (CHANGELOG)"
  109 #define CHANGELOG_MSG_LSEEK_OP_FAILED_STR "Could not lseek (changelog)"
  110 #define CHANGELOG_MSG_PATH_NOT_FOUND_STR                                       \
  111     "Could not find CHANGELOG in changelog path"
  112 #define CHANGELOG_MSG_FSYNC_OP_FAILED_STR "fsync failed"
  113 #define CHANGELOG_MSG_DETECT_EMPTY_CHANGELOG_FAILED_STR                        \
  114     "Error detecting empty changelog"
  115 #define CHANGELOG_MSG_EXPLICIT_ROLLOVER_FAILED_STR                             \
  116     "Fail snapshot because of previous errors"
  117 #define CHANGELOG_MSG_SCAN_DIR_FAILED_STR "scandir failed"
  118 #define CHANGELOG_MSG_FSETXATTR_FAILED_STR "fsetxattr failed"
  119 #define CHANGELOG_MSG_XATTR_INIT_FAILED_STR "Htime xattr initialization failed"
  120 #define CHANGELOG_MSG_SNAP_INFO_STR "log in call path"
  121 #define CHANGELOG_MSG_WRITE_FAILED_STR "error writing to disk"
  122 #define CHANGELOG_MSG_WROTE_TO_CSNAP_STR "Successfully wrote to csnap"
  123 #define CHANGELOG_MSG_GET_TIME_OP_FAILED_STR "Problem rolling over changelog(s)"
  124 #define CHANGELOG_MSG_BARRIER_INFO_STR "Explicit wakeup on barrier notify"
  125 #define CHANGELOG_MSG_SELECT_FAILED_STR "pthread_cond_timedwait failed"
  126 #define CHANGELOG_MSG_ROLLOVER_DATA_FILL_FAILED_STR                            \
  127     "failed to fill rollover data"
  128 #define CHANGELOG_MSG_INJECT_FSYNC_FAILED_STR "failed to inject fsync event"
  129 #define CHANGELOG_MSG_LOCAL_INIT_FAILED_STR                                    \
  130     "changelog local initialization failed"
  131 #define CHANGELOG_MSG_GET_BUFFER_FAILED_STR "Failed to get buffer"
  132 #define CHANGELOG_MSG_SET_FD_CONTEXT_STR                                       \
  133     "could not set fd context(for release cbk)"
  134 #define CHANGELOG_MSG_DICT_GET_FAILED_STR "Barrier failed"
  135 #define CHANGELOG_MSG_BARRIER_STATE_NOTIFY_STR "Barrier notification"
  136 #define CHANGELOG_MSG_BARRIER_ERROR_STR                                        \
  137     "Received another barrier off notification while already off"
  138 #define CHANGELOG_MSG_BARRIER_DISABLED_STR "disabled changelog barrier"
  139 #define CHANGELOG_MSG_BARRIER_ALREADY_DISABLED_STR                             \
  140     "Changelog barrier already disabled"
  141 #define CHANGELOG_MSG_BARRIER_ON_ERROR_STR                                     \
  142     "Received another barrier on notification when last one is not served yet"
  143 #define CHANGELOG_MSG_BARRIER_ENABLE_STR "Enabled changelog barrier"
  144 #define CHANGELOG_MSG_BARRIER_KEY_NOT_FOUND_STR "barrier key not found"
  145 #define CHANGELOG_MSG_ERROR_IN_DICT_GET_STR                                    \
  146     "Something went wrong in dict_get_str_boolean"
  147 #define CHANGELOG_MSG_GET_TIME_FAILURE_STR "gettimeofday() failure"
  148 #define CHANGELOG_MSG_DIR_OPTIONS_NOT_SET_STR "changelog-dir option is not set"
  149 #define CHANGELOG_MSG_HTIME_FETCH_FAILED_STR "unable to fetch htime"
  150 #define CHANGELOG_MSG_FREEUP_FAILED_STR "could not cleanup bootstrapper"
  151 #define CHANGELOG_MSG_CHILD_MISCONFIGURED_STR                                  \
  152     "translator needs a single subvolume"
  153 #define CHANGELOG_MSG_VOL_MISCONFIGURED_STR                                    \
  154     "dangling volume. please check volfile"
  155 #define CHANGELOG_MSG_DEQUEUING_BARRIER_FOPS_STR                               \
  156     "Dequeuing all the changelog barriered fops"
  157 #define CHANGELOG_MSG_DEQUEUING_BARRIER_FOPS_FINISHED_STR                      \
  158     "Dequeuing changelog barriered fops is finished"
  159 #define CHANGELOG_MSG_BARRIER_TIMEOUT_STR                                      \
  160     "Disabling changelog barrier because of the timeout"
  161 #define CHANGELOG_MSG_TIMEOUT_ADD_FAILED_STR                                   \
  162     "Couldn't add changelog barrier timeout event"
  163 #define CHANGELOG_MSG_RPC_BUILD_ERROR_STR "failed to build rpc options"
  164 #define CHANGELOG_MSG_NOTIFY_REGISTER_FAILED_STR "failed to register notify"
  165 #define CHANGELOG_MSG_RPC_START_ERROR_STR "failed to start rpc"
  166 #define CHANGELOG_MSG_CREATE_FRAME_FAILED_STR "failed to create frame"
  167 #define CHANGELOG_MSG_RPC_SUBMIT_REPLY_FAILED_STR "failed to serialize reply"
  168 #define CHANGELOG_MSG_PROGRAM_NAME_REG_FAILED_STR "cannot register program"
  169 #define CHANGELOG_MSG_CHANGELOG_NOT_ACTIVE_STR                                 \
  170     "Changelog is not active, return success"
  171 #define CHANGELOG_MSG_PUT_BUFFER_FAILED_STR                                    \
  172     "failed to put buffer after consumption"
  173 #define CHANGELOG_MSG_CLEANUP_ALREADY_SET_STR                                  \
  174     "cleanup_starting flag is already set for xl"
  175 #define CHANGELOG_MSG_HANDLE_PROBE_ERROR_STR "xdr decoding error"
  176 #endif /* !_CHANGELOG_MESSAGES_H_ */