| 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 _AFR_MESSAGES_H_ |
| 12 |
#define _AFR_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 |
AFR, AFR_MSG_QUORUM_FAIL, AFR_MSG_QUORUM_MET, AFR_MSG_QUORUM_OVERRIDE, |
| 28 |
AFR_MSG_INVALID_CHILD_UP, AFR_MSG_SUBVOL_UP, AFR_MSG_SUBVOLS_DOWN, |
| 29 |
AFR_MSG_ENTRY_UNLOCK_FAIL, AFR_MSG_SPLIT_BRAIN, AFR_MSG_OPEN_FAIL, |
| 30 |
AFR_MSG_UNLOCK_FAIL, AFR_MSG_REPLACE_BRICK_STATUS, AFR_MSG_GFID_NULL, |
| 31 |
AFR_MSG_FD_CREATE_FAILED, AFR_MSG_DICT_SET_FAILED, |
| 32 |
AFR_MSG_EXPUNGING_FILE_OR_DIR, AFR_MSG_MIGRATION_IN_PROGRESS, |
| 33 |
AFR_MSG_CHILD_MISCONFIGURED, AFR_MSG_VOL_MISCONFIGURED, |
| 34 |
AFR_MSG_INTERNAL_LKS_FAILED, AFR_MSG_INVALID_FD, AFR_MSG_LOCK_INFO, |
| 35 |
AFR_MSG_LOCK_XLATOR_NOT_LOADED, AFR_MSG_FD_CTX_GET_FAILED, |
| 36 |
AFR_MSG_INVALID_SUBVOL, DEPRECATED_AFR_MSG_PUMP_XLATOR_ERROR, |
| 37 |
AFR_MSG_SELF_HEAL_INFO, AFR_MSG_READ_SUBVOL_ERROR, AFR_MSG_DICT_GET_FAILED, |
| 38 |
AFR_MSG_INFO_COMMON, AFR_MSG_SPLIT_BRAIN_CHOICE_ERROR, AFR_MSG_LOCAL_CHILD, |
| 39 |
AFR_MSG_INVALID_DATA, AFR_MSG_INVALID_ARG, AFR_MSG_INDEX_DIR_GET_FAILED, |
| 40 |
AFR_MSG_FSYNC_FAILED, AFR_MSG_FAVORITE_CHILD, AFR_MSG_SELF_HEAL_FAILED, |
| 41 |
AFR_MSG_SPLIT_BRAIN_STATUS, AFR_MSG_ADD_BRICK_STATUS, AFR_MSG_NO_CHANGELOG, |
| 42 |
AFR_MSG_TIMER_CREATE_FAIL, AFR_MSG_SBRAIN_FAV_CHILD_POLICY, |
| 43 |
AFR_MSG_INODE_CTX_GET_FAILED, AFR_MSG_THIN_ARB, |
| 44 |
AFR_MSG_THIN_ARB_XATTROP_FAILED, AFR_MSG_THIN_ARB_LOC_POP_FAILED, |
| 45 |
AFR_MSG_GET_PEND_VAL, AFR_MSG_THIN_ARB_SKIP_SHD, AFR_MSG_UNKNOWN_SET, |
| 46 |
AFR_MSG_NO_XL_ID, AFR_MSG_SELF_HEAL_INFO_START, |
| 47 |
AFR_MSG_SELF_HEAL_INFO_FINISH, AFR_MSG_INCRE_COUNT, |
| 48 |
AFR_MSG_ADD_TO_OUTPUT_FAILED, AFR_MSG_SET_TIME_FAILED, |
| 49 |
AFR_MSG_GFID_MISMATCH_DETECTED, AFR_MSG_GFID_HEAL_MSG, |
| 50 |
AFR_MSG_THIN_ARB_LOOKUP_FAILED, AFR_MSG_DICT_CREATE_FAILED, |
| 51 |
AFR_MSG_NO_MAJORITY_TO_RESOLVE, AFR_MSG_TYPE_MISMATCH, |
| 52 |
AFR_MSG_SIZE_POLICY_NOT_APPLICABLE, AFR_MSG_NO_CHILD_SELECTED, |
| 53 |
AFR_MSG_INVALID_CHILD, AFR_MSG_RESOLVE_CONFLICTING_DATA, |
| 54 |
SERROR_GETTING_SRC_BRICK, SNO_DIFF_IN_MTIME, SNO_BIGGER_FILE, |
| 55 |
SALL_BRICKS_UP_TO_RESOLVE, AFR_MSG_UNLOCK_FAILED, AFR_MSG_POST_OP_FAILED, |
| 56 |
AFR_MSG_TA_FRAME_CREATE_FAILED, AFR_MSG_SET_KEY_XATTROP_FAILED, |
| 57 |
AFR_MSG_BLOCKING_ENTRYLKS_FAILED, AFR_MSG_FOP_FAILED, |
| 58 |
AFR_MSG_CLEAN_UP_FAILED, AFR_MSG_UNABLE_TO_FETCH, AFR_MSG_XATTR_SET_FAILED, |
| 59 |
AFR_MSG_SPLIT_BRAIN_REPLICA, AFR_MSG_INODE_CTX_FAILED, |
| 60 |
AFR_MSG_LOOKUP_FAILED, AFR_MSG_ALL_SUBVOLS_DOWN, |
| 61 |
AFR_MSG_RELEASE_LOCK_FAILED, AFR_MSG_CLEAR_TIME_SPLIT_BRAIN, |
| 62 |
AFR_MSG_READ_FAILED, AFR_MSG_LAUNCH_FAILED, AFR_MSG_READ_SUBVOL_NOT_UP, |
| 63 |
AFR_MSG_LK_HEAL_DOM, AFR_MSG_NEW_BRICK, AFR_MSG_SPLIT_BRAIN_SET_FAILED, |
| 64 |
AFR_MSG_SPLIT_BRAIN_DETERMINE_FAILED, AFR_MSG_HEALER_SPAWN_FAILED, |
| 65 |
AFR_MSG_ADD_CRAWL_EVENT_FAILED, AFR_MSG_NULL_DEREF, AFR_MSG_SET_PEND_XATTR, |
| 66 |
AFR_MSG_INTERNAL_ATTR); |
| 67 |
|
| 68 |
#define AFR_MSG_DICT_GET_FAILED_STR "Dict get failed" |
| 69 |
#define AFR_MSG_DICT_SET_FAILED_STR "Dict set failed" |
| 70 |
#define AFR_MSG_HEALER_SPAWN_FAILED_STR "Healer spawn failed" |
| 71 |
#define AFR_MSG_ADD_CRAWL_EVENT_FAILED_STR "Adding crawl event failed" |
| 72 |
#define AFR_MSG_INVALID_ARG_STR "Invalid argument" |
| 73 |
#define AFR_MSG_INDEX_DIR_GET_FAILED_STR "unable to get index-dir on " |
| 74 |
#define AFR_MSG_THIN_ARB_LOOKUP_FAILED_STR "Failed lookup on file" |
| 75 |
#define AFR_MSG_DICT_CREATE_FAILED_STR "Failed to create dict." |
| 76 |
#define AFR_MSG_THIN_ARB_XATTROP_FAILED_STR "Xattrop failed." |
| 77 |
#define AFR_MSG_THIN_ARB_LOC_POP_FAILED_STR \ |
| 78 |
"Failed to populate loc for thin-arbiter" |
| 79 |
#define AFR_MSG_GET_PEND_VAL_STR "Error getting value of pending" |
| 80 |
#define AFR_MSG_THIN_ARB_SKIP_SHD_STR "I am not the god shd. skipping." |
| 81 |
#define AFR_MSG_UNKNOWN_SET_STR "Unknown set" |
| 82 |
#define AFR_MSG_NO_XL_ID_STR "xl does not have id" |
| 83 |
#define AFR_MSG_SELF_HEAL_INFO_START_STR "starting full sweep on" |
| 84 |
#define AFR_MSG_SELF_HEAL_INFO_FINISH_STR "finished full sweep on" |
| 85 |
#define AFR_MSG_INCRE_COUNT_STR "Could not increment the counter." |
| 86 |
#define AFR_MSG_ADD_TO_OUTPUT_FAILED_STR "Could not add to output" |
| 87 |
#define AFR_MSG_SET_TIME_FAILED_STR "Could not set time" |
| 88 |
#define AFR_MSG_GFID_HEAL_MSG_STR "Error setting gfid-heal-msg dict" |
| 89 |
#define AFR_MSG_NO_MAJORITY_TO_RESOLVE_STR \ |
| 90 |
"No majority to resolve gfid split brain" |
| 91 |
#define AFR_MSG_GFID_MISMATCH_DETECTED_STR "Gfid mismatch dectected" |
| 92 |
#define AFR_MSG_SELF_HEAL_INFO_STR "performing selfheal" |
| 93 |
#define AFR_MSG_TYPE_MISMATCH_STR "TYPE mismatch" |
| 94 |
#define AFR_MSG_SIZE_POLICY_NOT_APPLICABLE_STR \ |
| 95 |
"Size policy is not applicable to directories." |
| 96 |
#define AFR_MSG_NO_CHILD_SELECTED_STR \ |
| 97 |
"No child selected by favorite-child policy" |
| 98 |
#define AFR_MSG_INVALID_CHILD_STR "Invalid child" |
| 99 |
#define AFR_MSG_RESOLVE_CONFLICTING_DATA_STR \ |
| 100 |
"selected as authentic to resolve conflicting data" |
| 101 |
#define SERROR_GETTING_SRC_BRICK_STR "Error getting the source brick" |
| 102 |
#define SNO_DIFF_IN_MTIME_STR "No difference in mtime" |
| 103 |
#define SNO_BIGGER_FILE_STR "No bigger file" |
| 104 |
#define SALL_BRICKS_UP_TO_RESOLVE_STR \ |
| 105 |
"All the bricks should be up to resolve the gfid split brain" |
| 106 |
#define AFR_MSG_UNLOCK_FAILED_STR "Failed to unlock" |
| 107 |
#define AFR_MSG_POST_OP_FAILED_STR "Post-op on thin-arbiter failed" |
| 108 |
#define AFR_MSG_TA_FRAME_CREATE_FAILED_STR "Failed to create ta_frame" |
| 109 |
#define AFR_MSG_SET_KEY_XATTROP_FAILED_STR "Could not set key during xattrop" |
| 110 |
#define AFR_MSG_BLOCKING_ENTRYLKS_FAILED_STR "Blocking entrylks failed" |
| 111 |
#define AFR_MSG_FSYNC_FAILED_STR "fsync failed" |
| 112 |
#define AFR_MSG_QUORUM_FAIL_STR "quorum is not met" |
| 113 |
#define AFR_MSG_FOP_FAILED_STR "Failing Fop" |
| 114 |
#define AFR_MSG_INVALID_SUBVOL_STR "not a subvolume" |
| 115 |
#define AFR_MSG_VOL_MISCONFIGURED_STR "Volume is dangling" |
| 116 |
#define AFR_MSG_CHILD_MISCONFIGURED_STR \ |
| 117 |
"replicate translator needs more than one subvolume defined" |
| 118 |
#define AFR_MSG_CLEAN_UP_FAILED_STR "Failed to clean up healer threads" |
| 119 |
#define AFR_MSG_QUORUM_OVERRIDE_STR "overriding quorum-count" |
| 120 |
#define AFR_MSG_UNABLE_TO_FETCH_STR \ |
| 121 |
"Unable to fetch afr-pending-xattr option from volfile. Falling back to " \ |
| 122 |
"using client translator names" |
| 123 |
#define AFR_MSG_NULL_DEREF_STR "possible NULL deref" |
| 124 |
#define AFR_MSG_XATTR_SET_FAILED_STR "Cannot set xattr cookie key" |
| 125 |
#define AFR_MSG_SPLIT_BRAIN_STATUS_STR "Failed to create synctask" |
| 126 |
#define AFR_MSG_SUBVOLS_DOWN_STR "All subvolumes are not up" |
| 127 |
#define AFR_MSG_SPLIT_BRAIN_CHOICE_ERROR_STR \ |
| 128 |
"Failed to cancel split-brain choice" |
| 129 |
#define AFR_MSG_SPLIT_BRAIN_REPLICA_STR \ |
| 130 |
"Cannot set replica. File is not in data/metadata split-brain" |
| 131 |
#define AFR_MSG_INODE_CTX_FAILED_STR "Failed to get inode_ctx" |
| 132 |
#define AFR_MSG_READ_SUBVOL_ERROR_STR "no read subvols" |
| 133 |
#define AFR_MSG_LOCAL_CHILD_STR "selecting local read-child" |
| 134 |
#define AFR_MSG_LOOKUP_FAILED_STR "Failed to lookup/create thin-arbiter id file" |
| 135 |
#define AFR_MSG_TIMER_CREATE_FAIL_STR \ |
| 136 |
"Cannot create timer for delayed initialization" |
| 137 |
#define AFR_MSG_SUBVOL_UP_STR "Subvolume came back up; going online" |
| 138 |
#define AFR_MSG_ALL_SUBVOLS_DOWN_STR \ |
| 139 |
"All subvolumes are down. Going offline until atleast one of them is up" |
| 140 |
#define AFR_MSG_RELEASE_LOCK_FAILED_STR "Failed to release lock" |
| 141 |
#define AFR_MSG_INVALID_CHILD_UP_STR "Received child_up from invalid subvolume" |
| 142 |
#define AFR_MSG_QUORUM_MET_STR "Client-quorum is met" |
| 143 |
#define AFR_MSG_EXPUNGING_FILE_OR_DIR_STR "expunging file or dir" |
| 144 |
#define AFR_MSG_SELF_HEAL_FAILED_STR "Invalid" |
| 145 |
#define AFR_MSG_SPLIT_BRAIN_STR "Skipping conservative mergeon the file" |
| 146 |
#define AFR_MSG_CLEAR_TIME_SPLIT_BRAIN_STR "clear time split brain" |
| 147 |
#define AFR_MSG_READ_FAILED_STR "Failing read since good brick is down" |
| 148 |
#define AFR_MSG_LAUNCH_FAILED_STR "Failed to launch synctask" |
| 149 |
#define AFR_MSG_READ_SUBVOL_NOT_UP_STR \ |
| 150 |
"read subvolume in this generation is not up" |
| 151 |
#define AFR_MSG_INTERNAL_LKS_FAILED_STR \ |
| 152 |
"Unable to work with lk-owner while attempting fop" |
| 153 |
#define AFR_MSG_LOCK_XLATOR_NOT_LOADED_STR \ |
| 154 |
"subvolume does not support locking. please load features/locks xlator " \ |
| 155 |
"on server." |
| 156 |
#define AFR_MSG_FD_CTX_GET_FAILED_STR "unable to get fd ctx" |
| 157 |
#define AFR_MSG_INFO_COMMON_STR "fd not open on any subvolumes, aborting." |
| 158 |
#define AFR_MSG_REPLACE_BRICK_STATUS_STR "Couldn't acquire lock on any child." |
| 159 |
#define AFR_MSG_NEW_BRICK_STR "New brick" |
| 160 |
#define AFR_MSG_SPLIT_BRAIN_SET_FAILED_STR \ |
| 161 |
"Failed to set split-brain choice to -1" |
| 162 |
#define AFR_MSG_SPLIT_BRAIN_DETERMINE_FAILED_STR \ |
| 163 |
"Failed to determine split-brain. Aborting split-brain-choice set" |
| 164 |
#define AFR_MSG_OPEN_FAIL_STR "Failed to open subvolume" |
| 165 |
#define AFR_MSG_SET_PEND_XATTR_STR "Set of pending xattr" |
| 166 |
#define AFR_MSG_INTERNAL_ATTR_STR "is an internal extended attribute" |
| 167 |
#endif /* !_AFR_MESSAGES_H_ */ |