1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright 2016-2020, Intel Corporation */
5 * pmempool.h -- internal definitions for libpmempool
15 #define PMEMPOOL_LOG_PREFIX "libpmempool"
16 #define PMEMPOOL_LOG_LEVEL_VAR "PMEMPOOL_LOG_LEVEL"
17 #define PMEMPOOL_LOG_FILE_VAR "PMEMPOOL_LOG_FILE"
20 CHECK_RESULT_CONSISTENT
,
21 CHECK_RESULT_NOT_CONSISTENT
,
22 CHECK_RESULT_ASK_QUESTIONS
,
23 CHECK_RESULT_PROCESS_ANSWERS
,
24 CHECK_RESULT_REPAIRED
,
25 CHECK_RESULT_CANNOT_REPAIR
,
27 CHECK_RESULT_INTERNAL_ERROR
31 * pmempool_check_ctx -- context and arguments for check command
33 struct pmempool_check_ctx
{
34 struct pmempool_check_args args
;
38 struct check_data
*data
;
39 struct pool_data
*pool
;
40 enum check_result result
;
41 unsigned sync_required
;