Debian Codegraph @

xlators/features/bit-rot/src/stub/bit-rot-stub-messages.h

raw symbols SCIP
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 _BITROT_STUB_MESSAGES_H_
12 #define _BITROT_STUB_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(BITROT_STUB, BRS_MSG_NO_MEMORY, BRS_MSG_SET_EVENT_FAILED,
27 BRS_MSG_MEM_ACNT_FAILED, BRS_MSG_CREATE_FRAME_FAILED,
28 BRS_MSG_SET_CONTEXT_FAILED, BRS_MSG_CHANGE_VERSION_FAILED,
29 BRS_MSG_ADD_FD_TO_LIST_FAILED, BRS_MSG_SET_FD_CONTEXT_FAILED,
30 BRS_MSG_CREATE_ANONYMOUS_FD_FAILED, BRS_MSG_NO_CHILD,
31 BRS_MSG_STUB_ALLOC_FAILED, BRS_MSG_GET_INODE_CONTEXT_FAILED,
32 BRS_MSG_CANCEL_SIGN_THREAD_FAILED, BRS_MSG_ADD_FD_TO_INODE,
33 BRS_MSG_SIGN_VERSION_ERROR, BRS_MSG_BAD_OBJ_MARK_FAIL,
34 BRS_MSG_NON_SCRUB_BAD_OBJ_MARK, BRS_MSG_REMOVE_INTERNAL_XATTR,
35 BRS_MSG_SET_INTERNAL_XATTR, BRS_MSG_BAD_OBJECT_ACCESS,
36 BRS_MSG_BAD_CONTAINER_FAIL, BRS_MSG_BAD_OBJECT_DIR_FAIL,
37 BRS_MSG_BAD_OBJECT_DIR_SEEK_FAIL, BRS_MSG_BAD_OBJECT_DIR_TELL_FAIL,
38 BRS_MSG_BAD_OBJECT_DIR_READ_FAIL, BRS_MSG_GET_FD_CONTEXT_FAILED,
39 BRS_MSG_BAD_HANDLE_DIR_NULL, BRS_MSG_BAD_OBJ_THREAD_FAIL,
40 BRS_MSG_BAD_OBJ_DIR_CLOSE_FAIL, BRS_MSG_LINK_FAIL,
41 BRS_MSG_UNUSED_PLACEHOLDER, BRS_MSG_DICT_SET_FAILED,
42 BRS_MSG_PATH_GET_FAILED, BRS_MSG_NULL_LOCAL,
43 BRS_MSG_SPAWN_SIGN_THRD_FAILED, BRS_MSG_KILL_SIGN_THREAD,
44 BRS_MSG_NON_BITD_PID, BRS_MSG_SIGN_PREPARE_FAIL,
45 BRS_MSG_USING_DEFAULT_THREAD_SIZE, BRS_MSG_ALLOC_MEM_FAILED,
46 BRS_MSG_DICT_ALLOC_FAILED, BRS_MSG_CREATE_GF_DIRENT_FAILED,
47 BRS_MSG_ALLOC_FAILED, BRS_MSG_PATH_XATTR_GET_FAILED,
48 BRS_MSG_VERSION_PREPARE_FAIL);
49
50 #define BRS_MSG_MEM_ACNT_FAILED_STR "Memory accounting init failed"
51 #define BRS_MSG_BAD_OBJ_THREAD_FAIL_STR "pthread_init failed"
52 #define BRS_MSG_USING_DEFAULT_THREAD_SIZE_STR "Using default thread stack size"
53 #define BRS_MSG_NO_CHILD_STR "FATAL: no children"
54 #define BRS_MSG_SPAWN_SIGN_THRD_FAILED_STR \
55 "failed to create the new thread for signer"
56 #define BRS_MSG_BAD_CONTAINER_FAIL_STR \
57 "failed to launch the thread for storing bad gfids"
58 #define BRS_MSG_CANCEL_SIGN_THREAD_FAILED_STR \
59 "Could not cancel sign serializer thread"
60 #define BRS_MSG_KILL_SIGN_THREAD_STR "killed the signer thread"
61 #define BRS_MSG_GET_INODE_CONTEXT_FAILED_STR \
62 "failed to init the inode context for the inode"
63 #define BRS_MSG_ADD_FD_TO_INODE_STR "failed to add fd to the inode"
64 #define BRS_MSG_NO_MEMORY_STR "local allocation failed"
65 #define BRS_MSG_BAD_OBJECT_ACCESS_STR "bad object accessed. Returning"
66 #define BRS_MSG_SIGN_VERSION_ERROR_STR "Signing version exceeds current version"
67 #define BRS_MSG_NON_BITD_PID_STR \
68 "PID from where signature request came, does not belong to bit-rot " \
69 "daemon. Unwinding the fop"
70 #define BRS_MSG_SIGN_PREPARE_FAIL_STR \
71 "failed to prepare the signature. Unwinding the fop"
72 #define BRS_MSG_VERSION_PREPARE_FAIL_STR \
73 "failed to prepare the version. Unwinding the fop"
74 #define BRS_MSG_STUB_ALLOC_FAILED_STR "failed to allocate stub fop, Unwinding"
75 #define BRS_MSG_BAD_OBJ_MARK_FAIL_STR "failed to mark object as bad"
76 #define BRS_MSG_NON_SCRUB_BAD_OBJ_MARK_STR \
77 "bad object marking is not from the scrubber"
78 #define BRS_MSG_ALLOC_MEM_FAILED_STR "failed to allocate memory"
79 #define BRS_MSG_SET_INTERNAL_XATTR_STR "called on the internal xattr"
80 #define BRS_MSG_REMOVE_INTERNAL_XATTR_STR "removexattr called on internal xattr"
81 #define BRS_MSG_CREATE_ANONYMOUS_FD_FAILED_STR \
82 "failed to create anonymous fd for the inode"
83 #define BRS_MSG_ADD_FD_TO_LIST_FAILED_STR "failed add fd to the list"
84 #define BRS_MSG_SET_FD_CONTEXT_FAILED_STR \
85 "failed to set the fd context for the file"
86 #define BRS_MSG_NULL_LOCAL_STR "local is NULL"
87 #define BRS_MSG_DICT_ALLOC_FAILED_STR \
88 "dict allocation failed: cannot send IPC FOP to changelog"
89 #define BRS_MSG_SET_EVENT_FAILED_STR "cannot set release event in dict"
90 #define BRS_MSG_CREATE_FRAME_FAILED_STR "create_frame() failure"
91 #define BRS_MSG_BAD_OBJ_DIR_CLOSE_FAIL_STR "closedir error"
92 #define BRS_MSG_LINK_FAIL_STR "failed to record gfid"
93 #define BRS_MSG_BAD_OBJECT_DIR_FAIL_STR "failed stub directory"
94 #define BRS_MSG_BAD_OBJECT_DIR_SEEK_FAIL_STR \
95 "seekdir failed. Invalid argument (offset reused from another DIR * " \
96 "structure)"
97 #define BRS_MSG_BAD_OBJECT_DIR_TELL_FAIL_STR "telldir failed on dir"
98 #define BRS_MSG_BAD_OBJECT_DIR_READ_FAIL_STR "readdir failed on dir"
99 #define BRS_MSG_CREATE_GF_DIRENT_FAILED_STR "could not create gf_dirent"
100 #define BRS_MSG_GET_FD_CONTEXT_FAILED_STR "pfd is NULL"
101 #define BRS_MSG_BAD_HANDLE_DIR_NULL_STR "dir if NULL"
102 #define BRS_MSG_ALLOC_FAILED_STR \
103 "failed to allocate new dict for saving the paths of the corrupted " \
104 "objects. Scrub status will only display the gfid"
105 #define BRS_MSG_PATH_GET_FAILED_STR "failed to get the path"
106 #define BRS_MSG_PATH_XATTR_GET_FAILED_STR \
107 "failed to get the path xattr from disk for the gfid. Trying to get path " \
108 "from the memory"
109 #define BRS_MSG_DICT_SET_FAILED_STR \
110 "failed to set the actual path as the value in the dict for the " \
111 "corrupted object"
112 #define BRS_MSG_SET_CONTEXT_FAILED_STR \
113 "could not set fd context for release callback"
114 #define BRS_MSG_CHANGE_VERSION_FAILED_STR "change version failed"
115 #endif /* !_BITROT_STUB_MESSAGES_H_ */