]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/version.h
Backport from Bacula Enterprise
[bacula/bacula] / bacula / src / version.h
1 #ifndef VERSION_H
2 #define VERSION_H
3 #undef  VERSION
4
5 #define COMMUNITY 1      /* Define to create a Windows community binary */
6
7 /* Note: there can be only *one* VERSION in this file */
8 #define VERSION "7.2.0"
9 #define BDATE   "12 August 2015"
10 #define LSMDATE "02Aug15"
11
12 #define RELEASE 1   /* Use ONLY in rpms */
13
14 #define PROG_COPYRIGHT "Copyright (C) %d-2015 Kern Sibbald.\n"
15 #define BYEAR "2015"       /* year for copyright messages in progs */
16
17 /*
18    Bacula(R) - The Network Backup Solution
19
20    Copyright (C) 2000-2015 Kern Sibbald
21    Copyright (C) 2000-2015 Free Software Foundation Europe e.V.
22
23    The original author of Bacula is Kern Sibbald, with contributions
24    from many others, a complete list can be found in the file AUTHORS.
25
26    You may use this file and others of this release according to the
27    license defined in the LICENSE file, which includes the Affero General
28    Public License, v3.0 ("AGPLv3") and some additional permissions and
29    terms pursuant to its AGPLv3 Section 7.
30
31    This notice must be preserved when any source code is 
32    conveyed and/or propagated.
33
34    Bacula(R) is a registered trademark of Kern Sibbald.
35 */
36
37 /* Debug flags */
38 #undef  DEBUG
39 #define DEBUG 1
40 #define TRACEBACK 1
41 #define TRACE_FILE 1
42 #define ENTER_LEAVE 1
43 //#define FORCE_ALIGNED 1
44
45 /* If this is set stdout will not be closed on startup */
46 #define DEVELOPER 1
47
48 /* adjust DEVELOPER_MODE for status command */
49 #ifdef DEVELOPER
50 # define DEVELOPER_MODE 1
51 #else
52 # define DEVELOPER_MODE 0
53 #endif
54
55 /*
56  * SMCHECK does orphaned buffer checking (memory leaks)
57  *  it can always be turned on, but has some minor performance
58  *  penalties.
59  */
60 #ifdef DEVELOPER
61 # define SMCHECK
62 #endif
63
64 #define BEEF 0
65
66 /*
67  * _USE_LOCKMGR does lock/unlock mutex tracking (dead lock)
68  *   it can always be turned on, but we advise to use it only
69  *   for debug
70  */
71 # ifndef _USE_LOCKMGR
72 #  define _USE_LOCKMGR
73 # endif /* _USE_LOCKMGR */
74 /*
75  * Enable priority management with the lock manager
76  *
77  * Note, turning this on will cause the Bacula SD to abort if
78  *  mutexes are executed out of order, which could lead to a
79  *  deadlock.  However, note that this is not necessarily a
80  *  deadlock, so turn this on only for debugging.
81  */
82 #define USE_LOCKMGR_PRIORITY
83
84 /*
85  * Enable thread verification before kill
86  *
87  * Note, this extra check have a high cost when using
88  * dozens of thread, so turn this only for debugging.
89  */
90 /* #define USE_LOCKMGR_SAFEKILL */
91
92 #if !HAVE_LINUX_OS && !HAVE_SUN_OS && !HAVE_DARWIN_OS && !HAVE_FREEBSD_OS
93 # undef _USE_LOCKMGR
94 #endif
95
96 /*
97  * USE_VTAPE is a dummy tape driver. This is useful to
98  *  run regress test.
99  */
100 #ifdef HAVE_LINUX_OS
101 # define USE_VTAPE
102 #endif
103
104 /*
105  * USE_FTP is a ftp driver for the FD using curl.
106  */
107 // #define USE_FTP
108
109 /*
110  * for fastest speed but you must have a UPS to avoid unwanted shutdowns
111  */
112 //#define SQLITE3_INIT_QUERY "PRAGMA synchronous = OFF"
113
114 /*
115  * for more safety, but is 30 times slower than above
116  */
117 #define SQLITE3_INIT_QUERY "PRAGMA synchronous = NORMAL"
118    
119 /*
120  * This should always be on. It enables data encryption code
121  *  providing it is configured.
122  */
123 #define DATA_ENCRYPTION 1
124
125 /*
126  * This uses a Bacula specific bsnprintf rather than the sys lib
127  *  version because it is much more secure. It should always be
128  *  on.
129  */
130 #define USE_BSNPRINTF 1
131
132 /* Debug flags not normally turned on */
133
134 /* #define TRACE_JCR_CHAIN 1 */
135 /* #define TRACE_RES 1 */
136 /* #define DEBUG_MEMSET 1 */
137 /* #define DEBUG_MUTEX 1 */
138 /* #define DEBUG_BLOCK_CHECKSUM 1 */
139
140 /*
141  * Set SMALLOC_SANITY_CHECK to zero to turn off, otherwise
142  *  it is the maximum memory malloced before Bacula will
143  *  abort.  Except for debug situations, this should be zero
144  */
145 #define SMALLOC_SANITY_CHECK 0  /* 500000000  0.5 GB max */
146
147
148 /* Check if header of tape block is zero before writing */
149 /* #define DEBUG_BLOCK_ZEROING 1 */
150
151 /* #define FULL_DEBUG 1 */   /* normally on for testing only */
152
153 /* Turn this on ONLY if you want all Dmsg() to append to the
154  *   trace file. Implemented mainly for Win32 ...
155  */
156 /*  #define SEND_DMSG_TO_FILE 1 */
157
158
159 /* The following are turned on for performance testing */
160 /*
161  * If you turn on the NO_ATTRIBUTES_TEST and rebuild, the SD
162  *  will receive the attributes from the FD, will write them
163  *  to disk, then when the data is written to tape, it will
164  *  read back the attributes, but they will not be sent to
165  *  the Director. So this will eliminate: 1. the comm time
166  *  to send the attributes to the Director. 2. the time it
167  *  takes the Director to put them in the catalog database.
168  */
169 /* #define NO_ATTRIBUTES_TEST 1 */
170
171 /*
172 * If you turn on NO_TAPE_WRITE_TEST and rebuild, the SD
173 *  will do all normal actions, but will not write to the
174 *  Volume.  Note, this means a lot of functions such as
175 *  labeling will not work, so you must use it only when
176 *  Bacula is going to append to a Volume. This will eliminate
177 *  the time it takes to write to the Volume (not the time
178 *  it takes to do any positioning).
179 */
180 /* #define NO_TAPE_WRITE_TEST 1 */
181
182 /*
183  * If you turn on FD_NO_SEND_TEST and rebuild, the FD will
184  *  not send any attributes or data to the SD. This will
185  *  eliminate the comm time sending to the SD.
186  */
187 /* #define FD_NO_SEND_TEST 1 */
188
189 #endif  /* VERSION_H */