/
version.h
187 lines (155 loc) · 5.41 KB
/
version.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
#undef VERSION
#define VERSION "12.4.2"
#define BDATE "03 March 2013"
#define LSMDATE "03Mar13"
#define PROG_COPYRIGHT "Copyright (C) %d-2012 Free Software Foundation Europe e.V.\n" \
"Copyright (C) 2013-2013 Bareos GmbH & Co. KG\n"
#define BYEAR "2013" /* year for copyright messages in progs */
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2000-2013 Free Software Foundation Europe e.V.
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
License as published by the Free Software Foundation and included
in the file LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
/* Shared object library versions */
/* Uncomment to overwrite default value from VERSION */
/* #define LIBBAREOS_LT_RELEASE "12.4.2" */
/* #define LIBBAREOSCFG_LT_RELEASE "12.4.2" */
/* #define LIBBAREOSSQL_LT_RELEASE "12.4.2" */
/* #define LIBBAREOSCATS_LT_RELEASE "12.4.2" */
/* #define LIBBAREOSCATS_LT_RELEASE "12.4.2" */
/* #define LIBBAREOSNDMP_LT_RELEASE "12.4.2" */
/* Debug flags */
#undef DEBUG
#define DEBUG 1
#define TRACEBACK 1
#define TRACE_FILE 1
/* If this is set stdout will not be closed on startup */
/* #define DEVELOPER 1 */
/* adjust DEVELOPER_MODE for status command */
#ifdef DEVELOPER
# define DEVELOPER_MODE 1
#else
# define DEVELOPER_MODE 0
#endif
/*
* SMCHECK does orphaned buffer checking (memory leaks)
* it can always be turned on, but has some minor performance
* penalties.
*/
#ifdef DEVELOPER
# define SMCHECK
#endif
/*
* _USE_LOCKMGR does lock/unlock mutex tracking (dead lock)
* it can always be turned on, but we advise to use it only
* for debug
*/
# ifndef _USE_LOCKMGR
# define _USE_LOCKMGR
# endif /* _USE_LOCKMGR */
/*
* Enable priority management with the lock manager
*
* Note, turning this on will cause the Bareos SD to abort if
* mutexes are executed out of order, which could lead to a
* deadlock. However, note that this is not necessarily a
* deadlock, so turn this on only for debugging.
*/
#define USE_LOCKMGR_PRIORITY
/*
* Enable thread verification before kill
*
* Note, this extra check have a high cost when using
* dozens of thread, so turn this only for debugging.
*/
/* #define USE_LOCKMGR_SAFEKILL */
#if !HAVE_LINUX_OS && !HAVE_SUN_OS && !HAVE_DARWIN_OS && !HAVE_FREEBSD_OS
# undef _USE_LOCKMGR
#endif
/*
* USE_VTAPE is a dummy tape driver. This is useful to
* run regress test.
*/
#ifdef HAVE_LINUX_OS
# define USE_VTAPE
#endif
/*
* USE_FTP is a ftp driver for the FD using curl.
*/
// #define USE_FTP
/*
* for fastest speed but you must have a UPS to avoid unwanted shutdowns
*/
//#define SQLITE3_INIT_QUERY "PRAGMA synchronous = OFF"
/*
* for more safety, but is 30 times slower than above
*/
#define SQLITE3_INIT_QUERY "PRAGMA synchronous = NORMAL"
/*
* This should always be on. It enables data encryption code
* providing it is configured.
*/
#define DATA_ENCRYPTION 1
/*
* This uses a Bareos specific bsnprintf rather than the sys lib
* version because it is much more secure. It should always be
* on.
*/
#define USE_BSNPRINTF 1
/* Debug flags not normally turned on */
/* #define TRACE_JCR_CHAIN 1 */
/* #define TRACE_RES 1 */
/* #define DEBUG_MEMSET 1 */
/* #define DEBUG_MUTEX 1 */
/* #define DEBUG_BLOCK_CHECKSUM 1 */
/*
* Set SMALLOC_SANITY_CHECK to zero to turn off, otherwise
* it is the maximum memory malloced before Bareos will
* abort. Except for debug situations, this should be zero
*/
#define SMALLOC_SANITY_CHECK 0 /* 500000000 0.5 GB max */
/* Check if header of tape block is zero before writing */
/* #define DEBUG_BLOCK_ZEROING 1 */
/* #define FULL_DEBUG 1 */ /* normally on for testing only */
/* Turn this on ONLY if you want all Dmsg() to append to the
* trace file. Implemented mainly for Win32 ...
*/
/* #define SEND_DMSG_TO_FILE 1 */
/* The following are turned on for performance testing */
/*
* If you turn on the NO_ATTRIBUTES_TEST and rebuild, the SD
* will receive the attributes from the FD, will write them
* to disk, then when the data is written to tape, it will
* read back the attributes, but they will not be sent to
* the Director. So this will eliminate: 1. the comm time
* to send the attributes to the Director. 2. the time it
* takes the Director to put them in the catalog database.
*/
/* #define NO_ATTRIBUTES_TEST 1 */
/*
* If you turn on NO_TAPE_WRITE_TEST and rebuild, the SD
* will do all normal actions, but will not write to the
* Volume. Note, this means a lot of functions such as
* labeling will not work, so you must use it only when
* Bareos is going to append to a Volume. This will eliminate
* the time it takes to write to the Volume (not the time
* it takes to do any positioning).
*/
/* #define NO_TAPE_WRITE_TEST 1 */
/*
* If you turn on FD_NO_SEND_TEST and rebuild, the FD will
* not send any attributes or data to the SD. This will
* eliminate the comm time sending to the SD.
*/
/* #define FD_NO_SEND_TEST 1 */