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