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