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