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