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