]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/version.h
Update technotes and version
[bacula/bacula] / bacula / src / version.h
1 /*
2  *  Version $Id$
3  */
4
5 #undef  VERSION
6 #define VERSION "3.1.7"
7 #define BDATE   "20 December 2009"
8 #define LSMDATE "20Dec09"
9
10 #define PROG_COPYRIGHT "Copyright (C) %d-2009 Free Software Foundation Europe e.V.\n"
11 #define BYEAR "2009"       /* year for copyright messages in progs */
12
13 /*
14    Bacula® - The Network Backup Solution
15
16    Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
17
18    The main author of Bacula is Kern Sibbald, with contributions from
19    many others, a complete list can be found in the file AUTHORS.
20    This program is Free Software; you can redistribute it and/or
21    modify it under the terms of version two of the GNU General Public
22    License as published by the Free Software Foundation and included
23    in the file LICENSE.
24
25    This program is distributed in the hope that it will be useful, but
26    WITHOUT ANY WARRANTY; without even the implied warranty of
27    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28    General Public License for more details.
29
30    You should have received a copy of the GNU General Public License
31    along with this program; if not, write to the Free Software
32    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
33    02110-1301, USA.
34
35    Bacula® is a registered trademark of Kern Sibbald.
36    The licensor of Bacula is the Free Software Foundation Europe
37    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
38    Switzerland, email:ftf@fsfeurope.org.
39 */
40
41
42 /* Debug flags */
43 #undef  DEBUG
44 #define DEBUG 1
45 #define TRACEBACK 1
46 #define TRACE_FILE 1
47
48 /* If this is set stdout will not be closed on startup */
49 #define DEVELOPER 1
50
51 /*
52  * SMCHECK does orphaned buffer checking (memory leaks)
53  *  it can always be turned on, but has some minor performance
54  *  penalties.
55  */
56 #ifdef DEVELOPER
57 # define SMCHECK
58 #endif
59
60 /*
61  * _USE_LOCKMGR does lock/unlock mutex tracking (dead lock)
62  *   it can always be turned on, but we advise to use it only
63  *   for debug
64  */
65 #if DEVELOPER
66 # ifndef _USE_LOCKMGR
67 #  define _USE_LOCKMGR
68 # endif
69 /*
70  * Enable priority management with the lock manager
71  *
72  * Note, turning this on will cause the Bacula SD to abort if
73  *  mutexes are executed out of order, which could lead to a
74  *  deadlock.  However, note that this is not necessarily a
75  *  deadlock, so turn this on only for debugging.
76  */
77 //# define USE_LOCKMGR_PRIORITY
78 #endif
79
80 #if !HAVE_LINUX_OS && !HAVE_SUN_OS && !HAVE_DARWIN_OS && !HAVE_FREEBSD_OS
81 # undef _USE_LOCKMGR
82 #endif
83
84 /*
85  * USE_VTAPE is a dummy tape driver. This is useful to
86  *  run regress test.
87  */
88 #ifdef HAVE_LINUX_OS
89 # define USE_VTAPE
90 #endif
91
92 /* 
93  * for fastest speed but you must have a UPS to avoid unwanted shutdowns
94  */
95 //#define SQLITE3_INIT_QUERY "PRAGMA synchronous = OFF"
96
97 /*
98  * for more safety, but is 30 times slower than above
99  */
100 #define SQLITE3_INIT_QUERY "PRAGMA synchronous = NORMAL"
101
102 /*
103  * This should always be on. It enables data encryption code 
104  *  providing it is configured.
105  */
106 #define DATA_ENCRYPTION 1
107
108 /*
109  * This uses a Bacula specific bsnprintf rather than the sys lib
110  *  version because it is much more secure. It should always be 
111  *  on.
112  */
113 #define USE_BSNPRINTF 1
114
115 /* Debug flags not normally turned on */
116
117 /* #define TRACE_JCR_CHAIN 1 */
118 /* #define TRACE_RES 1 */
119 /* #define DEBUG_MEMSET 1 */
120 /* #define DEBUG_MUTEX 1 */
121
122 /*
123  * Set SMALLOC_SANITY_CHECK to zero to turn off, otherwise
124  *  it is the maximum memory malloced before Bacula will
125  *  abort.  Except for debug situations, this should be zero
126  */
127 #define SMALLOC_SANITY_CHECK 0  /* 500000000  0.5 GB max */
128
129
130 /* Check if header of tape block is zero before writing */
131 /* #define DEBUG_BLOCK_ZEROING 1 */
132
133 /* #define FULL_DEBUG 1 */   /* normally on for testing only */
134
135 /* Turn this on ONLY if you want all Dmsg() to append to the
136  *   trace file. Implemented mainly for Win32 ...
137  */
138 /*  #define SEND_DMSG_TO_FILE 1 */
139
140
141 /* The following are turned on for performance testing */
142 /*  
143  * If you turn on the NO_ATTRIBUTES_TEST and rebuild, the SD
144  *  will receive the attributes from the FD, will write them
145  *  to disk, then when the data is written to tape, it will
146  *  read back the attributes, but they will not be sent to
147  *  the Director. So this will eliminate: 1. the comm time
148  *  to send the attributes to the Director. 2. the time it
149  *  takes the Director to put them in the catalog database.
150  */
151 /* #define NO_ATTRIBUTES_TEST 1 */
152
153 /* 
154 * If you turn on NO_TAPE_WRITE_TEST and rebuild, the SD
155 *  will do all normal actions, but will not write to the
156 *  Volume.  Note, this means a lot of functions such as
157 *  labeling will not work, so you must use it only when 
158 *  Bacula is going to append to a Volume. This will eliminate
159 *  the time it takes to write to the Volume (not the time
160 *  it takes to do any positioning).
161 */
162 /* #define NO_TAPE_WRITE_TEST 1 */
163
164 /*
165  * If you turn on FD_NO_SEND_TEST and rebuild, the FD will
166  *  not send any attributes or data to the SD. This will
167  *  eliminate the comm time sending to the SD.
168  */
169 /* #define FD_NO_SEND_TEST 1 */