2 Release Notes for Bacula 2.4.0
4 Bacula code: Total files = 500 Total lines = 188,654 (*.h *.c *.in)
6 This Director and Storage daemon must be upgraded at the same time,
7 but they should be compatible with all 2.0.x File daemons, unless you
8 use some of the new features that affect the FD. In other words, you should
9 not have to upgrade all your File daemons when you upgrade. There is
10 no database upgrade needed from version 2.0.x to 2.2.0 nor from version
11 2.2.x to version 2.4.0
13 ================== Warning !!!!!! ==========================
14 As of Version 2.4.0, the Win32 FD should not descend into
15 any reparse point directory or reparse mount points unless the
16 specified directory is explicitly mentioned at the top level of
17 FileSet (as with Unix). A file that is linked to another file will
18 be backed up, much like Unix hardlinked files. If you want
19 reparse directories backed up, you must explicitly include them
21 ==============================================================
23 This release consists mainly of a number of bug fixes since 2.2.x
24 but most importantly, a rewrite of significant portions of the
25 Storage daemon reservation and autochanger code. This rewritten
26 code is simpler, more stable, and works much better, particularly
27 with multiple drive autochangers than the prior code did. That
28 said, there are still a number of issues to be resolved. Note,
29 the new code has not been tested in manual volume mount situations.
32 1095, 1086, 1091, 1070, 1041, 1083, 1078, 1066, 1068, 1038
33 1062, 1065, 1046, 1047, 1031
36 - You can now build bat without the QWT libraries. Use
37 --without-qwt as a ./configure option.
40 - Update version to 2.4.0 to reflect the magnitude of the SD changes.
41 - Make sure to clear JS_WaitMedia when operator mounts a Volume.
43 - Add create_postgresql_database.sql to Win32 installer. Should
44 fix problem reported by Juilio Monteiro.
45 - Get correct slot when auto unloading a device. This fixes bug
47 - Fix possible seg fault if SQL error.
48 - Fix renaming a Volume, which used the wrong Volume name.
49 - If operator has rewind tape, print warning, release tape and
50 try once more. If tape is positioned somewhere, something went
51 wrong, so mark the tape in error and try once more. Previously
52 this error was fatal, now it produces an error message.
53 - Ensure correct volume name displayed during restore
54 - Fix a few more Coverity reported problems.
55 - Fix #1091 about bad output in estimate command.
56 - Modify autochanger locking to attempt to avoid race
58 - Make sure device not busy before doing label command.
59 - Display open() errors except when polling. Previously too
60 many were suppressed. This should fix bug #1070.
61 - Fix Win32 reparse points. Bacula will not recurse into any
62 reparse point directory, including mount points, unless the
63 directory is explicitly mentioned at the top level (same as
64 with Unix). A file that is linked to another file will be
65 backed up -- much as Unix does for hardlinked files.
67 - Remove StorageId test when pruning and recycling (Eric's changes).
68 - Fix buffer overruns detected by Coverity.
69 - Implement --without-qwt
70 - Fix layout of restore tree dialog
71 - Add configure bat QWT libraries, so that bat can be built
72 with or without the QWT libaries.
73 - Implement regression that explicitly tests swapping a Volume
74 from one drive to another.
75 - Enhance disk-changer to detect most error conditions.
76 - Fix SD code so that it properly swaps a Volume between drives.
78 - Prevent a Volume that is being swapped from being freed from
79 the volume list. This will most likely fix, at least partially,
81 - Fix strippath so that it does not get a buffer overrun and crash FD.
83 - Make inability to change owner/group when creating a dir only a
84 warning rather than an error.
85 - Fix SQL query in migration code
86 - Fix bat seg fault at termination.
87 - Add Bacula generated version to bat about box.
88 - Backport development stream SD reservation system changes.
89 - When wrong volume is mounted during read, unload_autochanger.
90 - Stop searching for Volumes in SD askdir if DIR returns the
91 same volume name twice in a row.
92 - Rework class structures for VOLRES, DCR, and DEVICE to make
93 the method names a bit more logical, and for more logically
94 handling the responsibilities.
95 - Remove redundant code in terminating the scheduler that just
96 causes a seg fault in many cases.
97 - Improve algorithm for detecting pre-reserved volume and
99 - Prevent volume from being released while being swapped.
100 - Refactor parts of stored/mount.c
101 - Add sanity checks for VolWriteTime and VolReadTime
102 - Take care of bad clock changes while computing VolWriteTime
103 and VolReadTime. This should fix or limit #1066
104 - Correct error string numbers in dird/catreq.c
105 - Restructure reserving, acquiring, and mounting volumes. Calls to
106 autochanger are deferred for mount.c -- simplifes the code.
107 - Do not prune any running job. It just fails the job.
108 - Lock the volumes when changing dev->reserved_device and marking
109 the volume unused otherwise the device can get reserved by
110 another job before the volume is released, thus blocking it.
111 - Correct some SD catalog request error messages.
112 - Turn off code in read_record that causes a seg fault in the SD
113 when reading past an EOS_LABEL.
114 - Turn off unloading the autochanger in reserve.c as it just
116 - Lock volumes when unreserving a device.
117 - Do not mark volume unused when recycling.
118 - Fix bug #1068 fixes a SD crash when using Virtual autochanger.
119 - Generate correct JobMedia records during spooling/despooling when
120 running concurrent jobs. Thanks to Tom Ivar Helbekkmo
121 <tih@hamartun.priv.no> for excellent analysis and testing.
122 - *Massive* commit of all fixes and back ports to create 2.2.9
123 Mostly SD reservations enhancements.
124 - Fix Win32 FD backup/restore memory leak due to improper termination
125 of BackupRead/Write. This fixes bug# 1038.
126 - Fixes a StorageId problem with volumes after migration.
127 - Implements autostart scripts for Debian
128 - Fix mtx-changer.in for broken Debian mt program.
129 - Apply doc fix from bug #1062.
130 - Resolve crash and improper restore wx-console Win32 restore
131 GUI. Fixes bug #1065.
132 - Update Win32 wxWidgets to latest version.
133 - Attempt to do correct handling of Win32 mount points. Should
135 - Add const to AIX prototype for initgroups()
136 - Fix to the JobMedia patch, which introduced a new problem.
137 - Fix creating first JobMedia record during Migration to include
138 proper index. This caused slow restores of migrated jobs.
139 - Fix bug #1047, do not strip paths on symbolic links.
140 - Set catalog backup database and user name from values specified on
141 the ./configure line.
142 - Apply patch to correct bug #1031, about wrong pool source information
146 =========================================================================
148 Version 2.2.8 is a bug fix to version 2.2.7:
149 - It fixes bugs: 1036, 1033(doc), 1028, 1040, 1045(doc), 1030,
150 1042(partially), and possibly bugs 1018 and 1032.
151 Bugs 1018 and 1032 involve problems with multiple-drive autochangers,
152 and are difficult to reproduce.
153 See the ChangeLog for more details.
155 Version 2.2.7 has several new features and several important bug fixes
157 - It fixes bugs: 1009, 1022, 1024, 1019, 1012, 1021, 1020
158 1007, 1008. For more details, please see the technotes-2.1 file.
159 - Fixed a seg fault reported by Frank Sweetser that depended on
160 exact path lengths, but the problem was in bsnprintf.c
161 - Double quoting include filenames (@xxx) in Bacula conf files is now
162 possible, thanks to a patch by Michael Stapelberg.
163 - You can pipe input to include filenames (@|prog) by using a vertical
164 bar, thanks to the above patch.
165 - A daylight savings time bug in the Win32 bsmpt was fixed by a patch from
167 - Marc Cousins submitted a patch that permits building the PostgreSQL
168 driver with version 8.3.
169 - The configure option --archivedir has been changed to --with-archivedir
171 Version 2.2.6 is a minor bug fix release to version 2.2.5
172 - It fixes bugs: #1003, 942, 982, 990(response only), 991,
174 - Fix bat crash wen it cannot connect to Director.
175 - Fix joblist failure bug in bat.
177 Version 2.2.5 is a major bug fix release to version 2.2.4
178 - It fixes the following bugs: #961, 962, 963, 969, 968, 960,
179 964, (possibly 935 and 903), 953, 953, 967, 966, 965, 954,
180 957, 908, 958, and 955.
181 - It also improves listing performance problems in bat pointed
182 out by Chris Howells.
184 Version 2.2.4 is a minor bug fix release to version 2.2.3
185 - Possible fix for authorization problems bug #953.
186 - Possible fix for bug #908.
187 - Add waits to multiple exit detection code to try to force pid
188 file to always be deleted.
189 - Restore good dev.tar.gz to rescue set appropriate binary property.
191 - Fix seg fault in error exit of acquire_for_read after unsuccessfully
192 trying to switch drives by checking for blocking before unblocking.
194 - Cancel storage daemon in all cases where FD reports error. This
195 should fix virtually all cases of bug #920 and will ensure that Devices
196 are released as soon as possible.
197 - Fix error message that was clobbered when Dir tells SD it does not
198 have write permission on Volume. This should fix a minor point
199 in bug #942, but not the main problem.
200 - Fix migration code to get correct Volume name with multiple volumes
201 by skipping |. Fixes bug #936.
202 - Implement patch supplied by Landon to fix bug #944 where using
203 TLS with bconsole uses 99+% of the CPU.
204 - Fix bug #946 about 'bacula-dir -t' which doesn't works
206 - Using 'm' in bconsole will show messages as in prior versions
207 and not memory usage.
209 - Note, you need GTK >= 2.10 to be able to link the Tray Monitor
212 Version 2.2.3 is a critical bug fix release to version 2.2.2
213 - Fix bug #935, and possibly also bug #903 where files were not
214 restored. MediaId was not properly set in JobMedia record after
215 a Volume change. This bug is known to affect all versions from
216 2.0.0 on, and probably versions prior to that. A detailed analysis
217 of the bug can be found at:
219 http://www.bacula.org/downloads/bug-395.txt
221 - Add ./configure search in qwt-qt4 for qwt package
222 - Apply Martin Simmons patch that should turn off the new API usage
223 when batch insert is turned off allowing building on older
225 - Note, you need GTK >= 2.10 to be able to link the Tray Monitor
228 Version 2.2.2 is a minor bug fix release to 2.2.1
229 - Detect if new PosgreSQL batch insert API is present.
230 - Correct incorrect mempool call causing Director crash on older
231 systems that do not have va_copy().
232 - Update spec files for 2.2.1 release
234 Version 2.2.1 is mainly a minor bug fix release to version 2.2.0,
235 the main changes since 2.2.0 are:
236 - Fixed bugs #921, 930, and 923.
237 - More portable timezone offset in bsmtp thaks to Attila Fülöp.
238 - Fix several bat issues.
239 - Use GTK+ calls instead of egg files in tray-monitor.
240 - Win32 service routines rewritten
241 - Updated projects file
242 Please see the ChangeLog for details.
244 Notes on 2.2.0 release follow:
246 Areas requiring caution or testing:
247 - You must have the thread safe version of MySQL client libraries loaded
248 to build with MySQL enabled.
249 - Volumes are pruned only when absolutely necessary -- this may cause
250 your database to grow compared to prior Bacula versions.
251 - Solaris door and even port files are no longer restored (equivalent
252 to what we do with sockets).
253 - SQLite is no longer supported for Solaris -- it fails too often with
254 bus errors. SQLite3 should work on Solaris.
255 - The default setting for SQLite3 is now 'PRAGMA synchronous=OFF'.
256 This makes it run 30 times faster, but increases the possiblity
257 of a corrupted database if your server shuts down unexpectedly.
258 The default behavior can be changed in src/version.h
259 - Restore on Win32, and in particular on Vista is untested. Please
260 test before relying on it. It should backup and restore reparse
262 - Win32 servers are untested, and very likely not to work.
264 The major new features are:
265 - Much faster insertion of attributes (somewhere around 10 times),
266 many thanks to Eric Bollengier and Marc Cousin.
267 - First release of bat (Bacula Administration Tool). Note to build
268 bat you must explicitly enable it on the ./configure line, you
269 must have the Qt4 version 4.2 or later libraries loaded, the qwt
270 (Qt Graphics) package loaded, and qmake and the other Qt4 tools
271 must be available. Most of the implementation was done by Dirk Bartley.
272 - Red/Black restore in memory tree (500 times faster loading).
273 - The Regex Where code to allow easier relocation of restored files
275 - Socket level heartbeat for all connections (untested).
276 - posix_fadvise() use in the FD to improve performance reduces
277 swapping due to opening/reading lots of files. Win32 equivalent
279 - Much improved Volume reservation code that should eliminate most
280 conflicts experienced in multiple drive autochangers.
281 - Simpler locking in the SD in the reservation system.
282 - Detection of file size/date change during backup if enabled.
283 - New Recycle Pool feature -- thanks to Eric.
284 - Efficient implementation of very large include/exclude lists.
285 - Volumes are no longer pruned during 'status dir'
286 - Pruning is now more efficient, and if a Volume is purged,
287 during pruning, it is immediately discovered.
288 - License is now GPL v2 without modifications, fix a few copyright
289 mistakes made when adding FSFE copyright notice.
291 New ./configure options:
292 - --enable-bwx-console
297 - --enable-batch-insert
299 New bconsole commands:
305 - .pwd (in restore tree)
306 - restoreclient (keyword)
307 - backupclient (keyword)
308 - regexwhere (keyword)
309 - update jobid (new command)
310 - recyclepool (keyword)
313 - Heartbeat Interval (bconsole.conf)
314 - Heartbeat Interval (bacula-dir.conf in Director, Client, Storage)
315 - TLS Allowed CN (bacula-dir.conf in Client)
316 - Regex Where (bacula-dir.conf in Job)
317 - Strip Prefix (bacula-dir.conf in Job)
318 - Add Prefix (bacula-dir.conf in Job)
319 - Add Suffex (bacula-dir.conf in Job)
320 - Recycle Pool (bacula-dir.conf in Pool)
321 - FailJobOnError (bacula-dir.conf in RunScript)
322 - CheckFileChanges (bacula-dir.conf in FileSet)
323 - StripPath (bacula-dir.conf in FileSet)
325 Other features or bug fixes:
326 - Fixed bugs: 916, 910, 917, 914, 906, 907,
327 842, 830, 893, 861, 888, 886, 807, 877, 872
328 885, 887, 864, 874, 882, 881, 863, 859,
329 856, 854, 845, 847, 846, 809, 772,
330 822, 825, 824, 808, 802, 797, 798, 795, 789, 791,
331 788, 780, 763, 782, 612, 767, 775, 621, 772, 764,
332 766, 621, 761, 755, 750, 741, 747, 742, 744, and 743.
333 - Configure bat with --enable-bat. Define qwt libraries with
334 --with-qwt=<dir>. See Installation chapter of manual for details.
335 - Create a depkgs-qt package that has both Qt4 and qwt, which are
336 needed to build bat. Most modern Linux systems will have both
337 these packages in the distro.
338 - Storage overrides delete all previous storage definitions instead
340 - One should be able to mount and unmount removable devices if the
341 Device resource has Removeable Media set and the mount and unmount
342 directives are defined.
343 - ./configure will do a better job of searching for qwt libraries.
344 - The Win32 version can no longer be shutdown from the tray monitor.
345 Use the command line or the Services panne.
346 - Keep prune_volumes() from pruning the whole Scratch pool.
347 - More debug output in status storage.
348 - Correct moving a Scratch volume from pool to pool (some
349 critical columns were lost).
350 - Different locking in reservations and despooling systems,
351 which means more micro-locking and less macro-locking, which
352 should give a lot more concurrency at the expense of slightly
353 (<0.1%) more overhead due to more locking/unlocking, but
354 concurrent jobs should run much faster.
355 - Additional drive reservation algorithm that should solve a lot of
356 the problems experienced with multiple drive autochangers.
357 - Storage daemon status command enhanced to more clearly show Volume,
358 pool and media type when a job is waiting.
359 - Made bsmtp work with more strict SMTP servers.
360 - Detect doubly freed buffers in smartall.c
361 - wx-console renamed to bwx-console (Fedora request)
362 - gnome-console renamed to bgnome-console (Fedora request)
363 - Migration preserves original job's FileSetId
364 - Spooling implemented for migration jobs.
365 - Config files can be read through a pipe, by specifying a leading |
366 in front of the configuration path/filename.
367 - New memory command (bconsole) that will print the current Director's
368 memory usage, and an in use buffer dump.
369 - Console name changed from *Console* to -Console- to accomodate Win32
370 filename restrictions.
371 - Corrected the Win32 ftruncate bug.
372 - Additional version information added to Job reports.
373 - New -8 option for bsmtp to specify UTF-8 encoding type.
374 - bsmtp will no longer add < > to target (from, to, cc) if there
375 is already a < in the target.
376 - Prefer Mounted Volumes extended to mean a volume that is being
377 mounted by another job.
378 - Runscript timing set to same as version 1.38.11
379 - New TLS Allowed CN directive(s) permitted.
380 - New bconsole 'exec' command to run external script/command.
381 - Turn on FreeBSD/OpenBSD code to set EOT model on tape.
382 - Drop from root done before database is opened.
383 - Database user and name can be configured with:
384 --with-db-name=name --with-db-user=user
385 - Turn on wait_for_drive in mtx-changer script.
386 - Rework how bar codes are handled in mtx-changer script.
387 This appears to have been an unreported bug.
388 - Updated nagios plugin supplied by Christian Masopust
389 - Better restricted console ACL checking.
390 - New Client Connect Wait directive in Storage daemon so that
391 users can configure how long SD waits for FD connection.
392 - Bacula will no longer permit pruning of the currently running
393 job (note, if other jobs are running, they may be pruned).
394 - Sockets are no longer restored.
395 - dbcheck works in 300K chunks so will typically run faster.
396 - Include/Exclude lists can now be efficiently handled for quite
397 large sizes -- tens of thousands of entries.
398 - Several memory leaks in migration and database usage were fixed.
399 - New console keyword restoreclient, which specifies the client to
400 which the restore will be sent. The client keyword specifies
401 the backup client. The restoreclient keyword is optional if it is
402 not specified, the backup client will also be the restore client.
403 - The disk file size is now checked to ensure that it agrees with the
404 catalog value before Bacula will append to the disk (same as tape