mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
bf0378593c
There is a rudimentary make file in place so people can build by hand from 'LVM2/daemons/clogd'. It is not hooked into the main build system yet. I am checking this in to provide people better access to the source code. There is still work to be done to make better use of existing code in the LVM repository. (list.h could be removed in favor of existing list implementations, for example. Logging might also be removed in favor of what is already in the tree.) I will probably defer updating WHATS_NEW_DM until this code is linked into the main build system (unless otherwise instructed).
41 lines
1.4 KiB
C
41 lines
1.4 KiB
C
#ifndef __CLUSTER_LOG_COMMON_DOT_H__
|
|
#define __CLUSTER_LOG_COMMON_DOT_H__
|
|
|
|
/*
|
|
#define EXIT_SUCCESS 0
|
|
#define EXIT_FAILURE 1
|
|
*/
|
|
|
|
#define EXIT_LOCKFILE 2
|
|
|
|
#define EXIT_KERNEL_TFR_SOCKET 3 /* Failed netlink socket create */
|
|
#define EXIT_KERNEL_TFR_BIND 4
|
|
#define EXIT_KERNEL_TFR_SETSOCKOPT 5
|
|
|
|
#define EXIT_CLUSTER_CKPT_INIT 6 /* Failed to init checkpoint */
|
|
|
|
#define EXIT_QUEUE_NOMEM 7
|
|
|
|
/* Located in dm-clog-tfr.h
|
|
#define RQ_TYPE(x) \
|
|
((x) == DM_CLOG_CTR) ? "DM_CLOG_CTR" : \
|
|
((x) == DM_CLOG_DTR) ? "DM_CLOG_DTR" : \
|
|
((x) == DM_CLOG_PRESUSPEND) ? "DM_CLOG_PRESUSPEND" : \
|
|
((x) == DM_CLOG_POSTSUSPEND) ? "DM_CLOG_POSTSUSPEND" : \
|
|
((x) == DM_CLOG_RESUME) ? "DM_CLOG_RESUME" : \
|
|
((x) == DM_CLOG_GET_REGION_SIZE) ? "DM_CLOG_GET_REGION_SIZE" : \
|
|
((x) == DM_CLOG_IS_CLEAN) ? "DM_CLOG_IS_CLEAN" : \
|
|
((x) == DM_CLOG_IN_SYNC) ? "DM_CLOG_IN_SYNC" : \
|
|
((x) == DM_CLOG_FLUSH) ? "DM_CLOG_FLUSH" : \
|
|
((x) == DM_CLOG_MARK_REGION) ? "DM_CLOG_MARK_REGION" : \
|
|
((x) == DM_CLOG_CLEAR_REGION) ? "DM_CLOG_CLEAR_REGION" : \
|
|
((x) == DM_CLOG_GET_RESYNC_WORK) ? "DM_CLOG_GET_RESYNC_WORK" : \
|
|
((x) == DM_CLOG_SET_REGION_SYNC) ? "DM_CLOG_SET_REGION_SYNC" : \
|
|
((x) == DM_CLOG_GET_SYNC_COUNT) ? "DM_CLOG_GET_SYNC_COUNT" : \
|
|
((x) == DM_CLOG_STATUS_INFO) ? "DM_CLOG_STATUS_INFO" : \
|
|
((x) == DM_CLOG_STATUS_TABLE) ? "DM_CLOG_STATUS_TABLE" : \
|
|
NULL
|
|
*/
|
|
|
|
#endif /* __CLUSTER_LOG_COMMON_DOT_H__ */
|