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