"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/features/changelog/lib/src/changelog-lib-messages.h" (16 Sep 2020, 3771 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-lib-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_LIB_MESSAGES_H_
   12 #define _CHANGELOG_LIB_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_LIB, CHANGELOG_LIB_MSG_OPEN_FAILED,
   28     CHANGELOG_LIB_MSG_FAILED_TO_RMDIR,
   29     CHANGELOG_LIB_MSG_SCRATCH_DIR_ENTRIES_CREATION_ERROR,
   30     CHANGELOG_LIB_MSG_THREAD_CREATION_FAILED, CHANGELOG_LIB_MSG_OPENDIR_ERROR,
   31     CHANGELOG_LIB_MSG_RENAME_FAILED, CHANGELOG_LIB_MSG_READ_ERROR,
   32     CHANGELOG_LIB_MSG_HTIME_ERROR, CHANGELOG_LIB_MSG_GET_TIME_ERROR,
   33     CHANGELOG_LIB_MSG_WRITE_FAILED, CHANGELOG_LIB_MSG_PTHREAD_ERROR,
   34     CHANGELOG_LIB_MSG_MMAP_FAILED, CHANGELOG_LIB_MSG_MUNMAP_FAILED,
   35     CHANGELOG_LIB_MSG_ASCII_ERROR, CHANGELOG_LIB_MSG_STAT_FAILED,
   36     CHANGELOG_LIB_MSG_GET_XATTR_FAILED, CHANGELOG_LIB_MSG_PUBLISH_ERROR,
   37     CHANGELOG_LIB_MSG_PARSE_ERROR, CHANGELOG_LIB_MSG_MIN_MAX_INFO,
   38     CHANGELOG_LIB_MSG_CLEANUP_ERROR, CHANGELOG_LIB_MSG_UNLINK_FAILED,
   39     CHANGELOG_LIB_MSG_NOTIFY_REGISTER_FAILED,
   40     CHANGELOG_LIB_MSG_INVOKE_RPC_FAILED, CHANGELOG_LIB_MSG_DRAINING_EVENT_INFO,
   41     CHANGELOG_LIB_MSG_CLEANING_BRICK_ENTRY_INFO,
   42     CHANGELOG_LIB_MSG_FREEING_ENTRY_INFO, CHANGELOG_LIB_MSG_XDR_DECODING_FAILED,
   43     CHANGELOG_LIB_MSG_NOTIFY_REGISTER_INFO,
   44     CHANGELOG_LIB_MSG_THREAD_CLEANUP_WARNING,
   45     CHANGELOG_LIB_MSG_COPY_FROM_BUFFER_FAILED,
   46     CHANGELOG_LIB_MSG_PTHREAD_JOIN_FAILED, CHANGELOG_LIB_MSG_HIST_FAILED,
   47     CHANGELOG_LIB_MSG_DRAINED_EVENT_INFO, CHANGELOG_LIB_MSG_PARSE_ERROR_CEASED,
   48     CHANGELOG_LIB_MSG_REQUESTING_INFO, CHANGELOG_LIB_MSG_FINAL_INFO);
   49 
   50 #define CHANGELOG_LIB_MSG_NOTIFY_REGISTER_INFO_STR "Registering brick"
   51 #define CHANGELOG_LIB_MSG_RENAME_FAILED_STR "error moving changelog file"
   52 #define CHANGELOG_LIB_MSG_OPEN_FAILED_STR "cannot open changelog file"
   53 #define CHANGELOG_LIB_MSG_UNLINK_FAILED_STR "failed to unlink"
   54 #define CHANGELOG_LIB_MSG_FAILED_TO_RMDIR_STR "failed to rmdir"
   55 #define CHANGELOG_LIB_MSG_STAT_FAILED_STR "stat failed on changelog file"
   56 #define CHANGELOG_LIB_MSG_PARSE_ERROR_STR "could not parse changelog"
   57 #define CHANGELOG_LIB_MSG_PARSE_ERROR_CEASED_STR                               \
   58     "parsing error, ceased publishing..."
   59 #define CHANGELOG_LIB_MSG_HTIME_ERROR_STR "fop failed on htime file"
   60 #define CHANGELOG_LIB_MSG_GET_XATTR_FAILED_STR                                 \
   61     "error extracting max timstamp from htime file"
   62 #define CHANGELOG_LIB_MSG_MIN_MAX_INFO_STR "changelogs min max"
   63 #define CHANGELOG_LIB_MSG_REQUESTING_INFO_STR "Requesting historical changelogs"
   64 #define CHANGELOG_LIB_MSG_FINAL_INFO_STR "FINAL"
   65 #define CHANGELOG_LIB_MSG_HIST_FAILED_STR                                      \
   66     "Requested changelog range is not available"
   67 #define CHANGELOG_LIB_MSG_GET_TIME_ERROR_STR "wrong result"
   68 #define CHANGELOG_LIB_MSG_CLEANING_BRICK_ENTRY_INFO_STR                        \
   69     "Cleaning brick entry for brick"
   70 #define CHANGELOG_LIB_MSG_DRAINING_EVENT_INFO_STR "Draining event"
   71 #define CHANGELOG_LIB_MSG_DRAINED_EVENT_INFO_STR "Drained event"
   72 #define CHANGELOG_LIB_MSG_FREEING_ENTRY_INFO_STR "freeing entry"
   73 
   74 #endif /* !_CHANGELOG_MESSAGES_H_ */