]> git.sur5r.net Git - bacula/bacula/blob - bacula/technotes-2.3
2d695e47801ef0e86fe2fca4c85bcecb5d1f587d
[bacula/bacula] / bacula / technotes-2.3
1               Technical notes on version 2.3
2
3           
4 New features:
5 Accurate files
6 TLS authentication 
7 bextract Win32 data
8 Run afterVSS
9 Multiple command/console per runscript
10 console command in runscript
11 Bat API
12 Plugin API
13 State file updated on job term
14 PluginOptions
15 FD Version
16 Duplicate Job directives
17 MaxFullInterval
18 MaxDiffInterval
19 Honor nodump flag
20 Improved status commands for Bat
21 Spooling/despooling status
22 Implement ftruncate for NFS devices
23 Add long term statistics job table
24
25
26 General:
27 01May08
28 kes  Apply patch from bug #1076 by Tullio Andreatta <t.andreatta@troppoavanti.it>
29      that implements multiple commands per line in the console when using 
30      readline. Modify the default to use a semicolon as the command separator.  
31 28Apr08
32 ebl  Fix SQL query in migration code.
33 ebl  Make accurate mode with hash disk pass regression tests
34 27Apr08
35 ebl  Implement first cut of accurate backup with hash disk.
36 19Apr08
37 kes  Force unload of volume when wrong volume mounted in SD.
38 17Apr08
39 kes  Fix bat seg fault at termination.
40 kes  Add Bacula generated version to bat about box.
41  
42 16Apr08
43 kes  Experiment with allowing multiple read jobs.
44 kes  Move final volume swapping code to DCR method and
45      call it from acquire_for_read().
46 kes  When wrong volume is mounted during read, unload_autochanger.
47 15Apr08
48 kes  Integrate the libdbi changes from Joao Henrique Freitas
49 14Apr08
50 kes  Stop searching for Volumes in SD askdir if DIR returns the
51      same volume name twice in a row.
52 kes  Close bat console windows first to eliminate error message
53      from the notifier.
54 13Apr08
55 kes  Tweak the swap Volume from one drive to another code so that
56      it now seems to work.
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
61      jobs fail.
62 12Apr08
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.
66 11Apr08
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
71      swapping volumes.
72 10Apr08
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  Apply Bastian Friedrich's edit codes patch for the bpipe-fd
79      plugin.
80 kes  Apply Bastial Friedrich's edit pool=%p patch for run clone
81      jobs.
82 kes  Refactor parts of stored/mount.c
83 09Apr08
84 ebl  Add sanity checks for VolWriteTime and VolReadTime
85 ebl  Take care of bad clock changes while computing VolWriteTime
86      and VolReadTime. This should fix or limit #1066
87 kes  Correct error string numbers in dird/catreq.c
88 kes  Restructure reserving, acquiring, and mounting volumes. Calls to
89      autochanger are deferred for mount.c -- simplifes the code.
90 08Apr08
91 kes  Do not prune any running job. It just fails the job.
92 kes  Lock the volumes when changing dev->reserved_device and marking
93      the volume unused otherwise the device can get reserved by
94      another job before the volume is released, thus blocking it.
95 06Apr08
96 kes  Correctly detect Ubuntu systems, and add ubuntu platform directory.
97 kes  Fix bug #1063, reuse of freed ptr in list nextvol.
98 kes  Release regex compile buffer in filed/job.c
99 kes  Add proper type of const char in sql_create.c
100 kes  Turn off debug in daemon termination routines
101 kes  Move free_volume_list() before devices are freed in stored.c
102 kes  Fix reference to uninitalized stack variables in bregex.c. 
103      This should correct bug #1067.
104 04Apr08
105 kes  Fix possible seg fault in SD when freeing a volume entry.
106 03Apr08
107 kes  Implement unload_dev() before swap device.
108 ebl  Add statistics prunning with option and menu
109 kes  Separate unload_dev() from unload_other_device() in autochanger.c
110 02Apr08
111 kes  Apply patch from bug #1069 that corrects spurious error messages
112      when ACLs enabled on SGI but no ACL exists.
113 ebl  Fix small segfault in bacula-sd when debug level is 500
114 kes  Modify run_program() and run_program_full_output() to use
115      call by reference for the results string. This corrects a long
116      standing problem where the address of the string may be changed
117      in the subroutine but not in the calling program.
118 01Apr08
119 kes  Re-enable code to remember last volume mounted on a non-tape
120      Autochanger.
121 kes  Add patch supplied in bug #1068 that fixes a SD crash when using
122      a Virtual autochanger.
123 kes  Generate correct JobMedia records during spooling/despooling when
124      running concurrent jobs.  Thanks to Tom Ivar Helbekkmo
125      <tih@hamartun.priv.no> for excellent analysis and testing.
126 31Mar08
127 kes  Tweak hash algorithm for htable using Martin Simmons idea
128      for doing a circular shift.
129 kes  Remember what volume is in VTLs (previously turned off for
130      testing).
131 kes  Analysis of JobMedia records by Tom Ivar Helbekkmo <tih@hamartun.priv.no>
132      pointed out some problems in creating JobMedia records during
133      spooling with concurrent jobs. Fix the problem by updating the
134      start file position before despooling and generate a jobmedia
135      record at the end of despooling.
136 28Mar08
137 kes  Fix handling of JobMedia records during spooling and when a
138      Volume is changed without actually writing data to the Volume.
139 27Mar08
140 kes  Rework certain SD locking based on gdb tracebacks of deadlocks
141      sent by Eric. This code now uses only the volume_lock() rather
142      than the reservations lock when at EOM and acquiring a new
143      volume. 
144 kes  Ensure only one exit point in several subroutines.
145 26Mar08
146 kes  Implement bsock code to permit locking. Use the new code in Verify
147      in the FD to prevent the heartbeat thread from disrupting the Verify
148      data sent to the Dir.
149 kes  Modify SD locking to eliminate locking the reservations system from
150      outside the system. Use the volume lock when getting media data
151      and reserving a new volume at end of media.   
152 kes  Add Eric's volume_unused() fix to stored.c so that Volumes found
153      when SD starts are not locked into place.
154 24Mar08
155 kes  Fix error compiling runscript code on 64 bit machines.
156 kes  Tweak Win32 mount point code.
157 kes  Fix a couple of bugs in the accurate code (bad sscanf, buffer not
158      cleared giving bad file estimate).
159 kes  Implement BIG_MALLOC in htable code. Runs 2.5 times faster for
160      5 Million entries.
161 22Mar08
162 kes  Keep Schedule run lists in order as suggested by
163      Bastian Friedrich.
164 21Mar08
165 kes  Implement autostart scripts for Debian.
166 ebl  Implement upgrade catalog scripts.
167 20Mar08
168 ebl  Apply jobstat patch for long term statistics. Have to implement
169      purge stats command and upgrade scripts.
170 kes  Fix mtx-changer.in for broken Debian mt program.
171 19Mar08
172 kes  Fix large number of JobMedia records reported by Eric Bollengier.
173 18Mar08
174 kes  Apply doc fix from bug #1062.
175 kes  Resolve crash and improper restore wx-console Win32 restore
176      GUI. Fixes bug #1065.                   
177 kes  Update Win32 wxWidgets to latest version.
178 kes  Attempt to do correct handling of Win32 mount points. Should
179      fix bug #1046.
180 kes  Fix Win32 FD backup/restore memory leak due to improper termination
181      of BackupRead/Write. This fixes bug# 1038.
182 16Mar08
183 ebl  Reduce memory usage for accurate backup, working only with ctime
184      and mtime. (not all Lstat field) 
185      About 40MB for my linux system (400.000 files)
186 14Mar08
187 kes  Add dcr->reserved_volume flag that allows us to release a volume
188      even if it is not vol->released.  This allows maxvol2 to work when
189      Volumes expire and we are already writing to the device (i.e. a
190      volume is pulled out from under us by another job terminating after
191      we reserve the drive).
192 13Mar08
193 ebl  Permit multiple command/console per runscript definition.
194      RunScript { command = /bin/true ; command = /bin/false ... }
195 ebl  Add RunsWhen = AfterVSS to runscript. You can execute a command
196      (restart an application) just after the VSS snapshot on windows.
197 kes  Don't zap dcr values during release_volume() as they might
198      have the next Volume to be mounted.
199 kes  Fix AIX prototype.
200 12Mar08
201 kes  Second cut of drive switching during backup.
202 11Mar08
203 kes  Fix Win32 build.
204 kes  Update Win32 version of wxWidgets to most recent version.
205 kes  Tweak Copy job details.
206 kes  Rework dir_find_next_appendable_volume to make a bit more effort
207      to find a suitable volume before giving up.
208 10Mar08
209 kes  Make ask_sysop_to_create... to return if waken from wait.
210      This helps get out of blocked conditions.
211 kes  Experimental implementation of switch_device in reservations. 
212 kes  Implement FD version to allow easier protocol changes.
213 kes  Add Plugin Options string -- not yet passed to FD.
214 kes  Implement PluginOptions ACL.
215 09Mar08
216 kes  Attempt to correct problems with restores with autochangers and
217      use counts going negative 
218 kes  Rework SD status command and implement API for bat. Implements
219      header, runing waitreservation, devices, volumes, spooling,
220      and terminated status keywords.
221      .status storage=xxx <keyword>
222 kes  Clarify TLS error message by adding double quotes around name.
223 kes  Simplify SD/FD status code by putting api flag in STATUS_PKT
224 kes  Pass jcr to tls routines so debug messages can be handled better.
225 kes  Rework jobq resource allocation code, and possibly fix a bug
226      that caused reference counts to get out of sync.
227 08Mar08
228 kes  Rename fd/dir plugin to use Bacula standard underscore.
229 kes  Plugin work -- bring dir up to fd level.
230 kes  Start implementation of VTL code
231 kes  Fix Win32 build after adding new cats subroutine.
232 06Mar08
233 kes  First cut at Duplicate Job implementation.
234 05Mar08
235 kes  Fix bugs in MaxFullInterval and Implement MaxDiffInterval.
236 kes  Start PluginOptions string, and refactor a bit of ua_run.c
237 ebl  Apply Allan patch that permit to reset recyclepool. 
238 04Mar08
239 kes  Test patch -- possible fix or improvement for bug #1053
240 kes  Refactor FD and SD status commands to permit new API code in
241      SD, and to fix Win32 build.
242 kes  Win32 build is now working.
243 03Mar08
244 kes  Implement 'MaxFullInterval' and start 'MaxDiffInterval' based on
245      some ideas in patch from Scott Bailey.
246 kes  Begin implementation of duplicate Job control.
247 kes  Fix some of Win32 build after recent additions.
248 kes  Apply patch from Frank Kardel that implements 'honor no dump flag',
249      which causes the FD to detect whether or not the OS has the 
250      honor no dump bit (*BSD systems), and if so, to skip backing up
251      any file with this bit set.  The feature is enabled by setting
252      'honor no dump flag = yes' in the Options section of a FileSet.
253 28Feb08
254 kes  Correct po warning message with datarootdir
255 kes  Implement more code in dird.c to put configuration parsing in
256      a class rather than use globals.
257 kes  Restructure SD status command for implementation of bat API
258      interface.
259 27Feb08
260 kes  Suppress incorrect 'Will not descend from x into y' messages.
261 kes  Eliminate FORTIFY_CODE=2 bug, and make first cut at removing 
262      daemon globals used by parser.              
263 kes  Apply Joao's patch to separate DB_TYPE and DB_PROG in configure.
264 26Feb08
265 kes  Fix free of plugin_list when none exists.
266 25Feb08
267 ebl  Apply accurate project patch.
268 24Feb08
269 ebl  Fix a segfault when using strip_path option. (Use of pm_strcpy
270      on non-mempool object) 
271 kes  First cut of converting FD .status to work with bat API.
272      New form is:
273      .status client=XXX header
274      .status client=XXX running
275      .status client=XXX terminated
276 kes  Implement first cut of Copy Job.
277 kes  Implement Catalog in Pool resource. It overrides catalog specified
278      in the Client resource.
279 22Feb08
280 kes  Apply patch (with some difficulties) from Joao Henrique Freitas 
281      <joaohf@gmail.com>, which adds support for libdbi as a Bacula
282      database driver.
283 kes  Add patch from Martin Schmid scm@apsag.com that checks to see if
284      ftruncate() actually works. In the case of some (cheap) NAS devices,
285      it does not, and so recycling NAS Volumes does not work. The code
286      simply unlink()s the file, then recreates it.  This fixes bug #1011.
287 21Feb08
288 kes  First incomplete cut of big malloc blocks for htable.
289 kes  Tweak plugin code.
290 17Feb08
291 kes  Plugin debug code + tweak a couple bat dialog layouts
292 14Feb08
293 kes  Fix creating first JobMedia record during Migration to include
294      proper index. This caused slow restores of migrated jobs.
295 kes  Temp fix to plugin name file_index.
296 kes  Bacula backed up and restored a MySQL database.
297 13Feb08
298 kes  Implement plugin restore.
299 kes  Implement parsing of db_driver to give db_type index.
300 10Feb08
301 kes  First cut of plugin restore code.
302 kes  Fix bug #1047, which had a heap overrun when stripping certain paths,
303      and do not strip paths on symbolic links.
304 kes  Set catalog backup database and user name from values specified on
305      the ./configure line.
306 ebl  Fix #1031 about wrong pool source information in job report.
307 09Feb08
308 kes  Fix Win32 build.
309 kes  Remove a redundant jcr argument to find_files, match_files, and
310      find_one_file.
311 kes  Implement '.status dir header|scheduled|running|terminated' that
312      prints the requested status section. With the exception of the
313      header, the other reports have fields separated by tabs (\t).
314 08Feb08
315 kes  Apply patch from Peter Much <pmc@citylink.dinoex.sub.org> that fixes
316      a resource embedded run command to find a since time if no explicit
317      since time was supplied on the command line.
318 kes  Apply state-file.patch sent by Allan Black <Allan.Black@btconnect.com>
319      that updates the state file at job termination time in addition to
320      when the daemon terminates.
321 05Feb08
322 kes  First version where a plugin did a backup.
323      bpipe-fd.so created a backup file, wrote a test
324      string to it, and Bacua could restore this fabricated file.
325 02Feb08
326 kes  Implement DB Driver = string for the DBI driver.
327 kes  Remove all old bdb_xxx.c code.  Add dummy routines to bdb.c
328 kes  First cut of code for loading Win32 plugin dlls. Implement
329      dlopen, dlsym, dlclose, and dlerror in src/win32/compat/compat.cpp
330      and implement a dlfcn.h file based on opengroup's definitions of
331      the functions.
332 01Feb08
333 kes  First cut plugin directives.
334 30Jan08
335 kes  Apply patch from bug #1049 to prevent stripping the path on a
336      symlink.
337 kes  Attempt to fix bug #1047 where stripping a path corrupts the
338      heap. Waiting for feedback.
339 kes  Correct the Mount message not to suggest labeling a new tape
340      when doing a restore.  Submitted by email by John Stoffel.
341 kes  Attempt to work around gcc FORTIFY_SOURCE bug that crashes the 
342      FD by using casting. Reported in bug #1042.
343 28Jan08
344 kes  A bit of crypto cleanup.  More later.
345
346 Release Version 2.2.8
347 25Jan08
348 kes  Apply patch from Martin to correct bug #1040, bscan sets existing
349      ClientId to zero.
350 kes  Fixed important spelling error in doc -- bug #1045.
351 23Jan08
352 ebl  Fix bextract to be able to extract non-portable Win32 data to 
353      Unix/Linux clients
354 kes  Move initialization of read/write res lock earlier in the code.
355      This fixes the crash with a null conf file. This fixes bug
356      #1030.
357 kes  Redefine CURES in lib/parse_conf to be URES and move it all
358      into lib/parse_conf.c -- this responds to bug #1042, but does
359      not fix it. The fix is not to compile with FORTIFY_SOURCE.
360 kes  Backport to 2.2.8 fix de-referencing a NULL pointer in the scanner from
361      the trunk SVN. I don't think this was reported as a bug.
362 17Jan08
363 ebl  Fix a bug during tape initialization with MTSETDRVBUFFER.
364 12Jan08
365 kes  Fix Win32 build with new .def files and DLL_IMP_EXP ...
366 10Jan08
367 kes  Add DataDespooling and DataCommitting status (committing is
368      the last despooling).
369 kes  Finish implementation of new reservations code noted below.
370 08Jan08
371 kes  Fix bsnprintf for float point numbers. I broke recently when
372      parameterizing some variables. This fixes bug #1036.
373 kes  Undo recent reservations changes ... will apply them later
374      when they work better.
375 06Jan08
376 ebl  Fixes #1034 which cause mysql to hang the connection after 8h
377 ebl  Change default statistics target of filename.name and path.path
378      fields for PostgreSQL. This speeds lookup by indexes. Thanks
379      to Marc Cousin.
380 kes  A few more tweaks to new reservation code. Make sure to clear
381      vol released flag when retaking volume. When reading label and
382      label is bad mark volume unused. When recycling, mark volume
383      unused so it can be renamed.
384 05Jan08
385 kes  Fix reserve_volume() so it doesn't release a volume in use
386      (i.e. a volume entry not marked released). This should be
387      the last part needed to fix bug #1018.
388 03Jan08
389 kes  Move Heartbeat documentation from Job to Director resource.
390      This fixes bug #1033.
391 02Jan08
392 kes  Fix existing switch drive SD code to call autochanger to release
393      any old volume. This must be done to keep the autochanger from
394      releasing subsequently newly reserved volumes in doing a close().
395      This should fix bug #1018.
396 kes  Fail if attempting to get console input in batch mode. This
397      should help fail RunScript console commands that are incomplete.
398 kes  First cut implementing switch_drive() in SD (not actually called).
399 31Dec07
400 kes  Implement first cut running console commands in a RunScript.
401 29Dec07
402 ebl  Fixes bug #1028 where 'Selection Type' option was not usable 
403      with JobDefs.
404 ebl  Fixes bug #897 and bug #1005 where bacula doesn't display runscript
405      output in error.
406
407 Release Version 2.2.7
408 24Dec07
409 kes  Add new free_tls() entry point so that Win32 builds.
410 kes  Fix compile warning in src/lib/util.c
411 kes  Fix entry point for edit_job_codes() so that Win32 builds.
412 kes  Fix seg fault Frank Sweetser reports in regression testing
413      on his systems. The problem was that the original author of
414      bsnprintf.c did not take into account the side effects of
415      using ++x in the argument to a #define.
416 kes  Make SD protocol backward compatible with version 2.2.x.
417 19Dec07
418 ebl  Fixes bug #1015 where bacula failed to restore acl to a socket
419      because Bacula no longer restores sockets.
420 ebl  Always use ignorecase fileset option on win32 FD.
421 14Dec07
422 kes  Apply patch from  Michael Stapelberg <michael@stapelberg.de>
423      that implements double quoting include names in conf files,
424      and also allows piping input by having the first character 
425      be a vertical bar (|). 
426 kes  Apply patch from Bastian Friedrich <bastian.friedrich@collax.com>
427      that implement %f in RunScripts to pass the FileSet name.
428 kes  Skip leading | when lex input comes from a pipe as suggested
429      by Michael Stapelberg <michael@stapelberg.de>.
430 13Dec07
431 kes  Apply patch for bsmtp Win32 daylight savings time fix supplied by
432      Nerijus Baliunas <nerijus@users.sourceforge.net>
433 12Dec07
434 kes  Implement Plugin Directory and plugin events.
435 11Dec07
436 kes  Implement a security enhancement: TLS authentication but no       
437      encryption. Enabled by setting 'TLS Authentication = yes'.
438      Note when this is on, TLS encryption is turned OFF!
439 10Dec07
440 kes  This patch corrects a problem where the maximum concurrent storage
441      jobs counter gets out of sync during restore jobs causing jobs to
442      'wait on max Storage jobs'.  This patch fixes bug #1009.
443 03Dec07
444 kes  This patch fixes bcopy so that it produces correct Volumes.
445      It fixes bug #1022.
446 kes  This patch eliminates spurious output to the console during a VerifyVolume
447      job that contains encrypted data. It fixes bug #1024.
448 02Dec07
449 kes  This patch prevents the 'status dir' command from trying to use a scratch
450      volume and possibly moving it from one pool to another.  This patch fixes
451      bug #1019.
452 01Dec07
453 kes  Add new include to postgresql.c suggested by Marc Cousins so
454      that it compiles correctly with pgre version 8.3.
455 30Nov07
456 kes  Fix --archivedir addition to configure. Replace it with
457      --with-archivedir in configure.in  This fixes the regression       
458      test builds.
459 kes  This patch fixes bug #1012 where the job is canceled because
460       of Max Run Time exceeded when the job has not yet started.
461 29Nov07
462 ebl  Apply Richard Mortimer patch that fixes #1016 when there are more than 
463      one 'part' to write.  Instead of each part being stored on disk, 
464      written to DVD, then deleted from disk, all parts are written to disk,
465      and only the last is written and deleted from disk.
466 kes  This patch fixes the status command to include the formating string for
467      JS_AttrInsterting.  It fixes bug #1021.
468 kes  This patch should fix the Mac OS X build problem on the latest
469      Darwin, where sys/types.h was not included correctly (apparently
470      due to a change in the Mac headers).  The solution was to explicitly
471      ensure that it is defined for the ./configure.
472      This patch also has a rebuild of configure that includes the Debian
473      qt4 patch to check for qmake-qt4. This patch fixes bug #1020.
474 kes  This patch should ensure that queued messages to the console are
475      displayed as soon as possible.  It should fix bug 1007, but has been
476      reported not to work.
477 14Nov07
478 kes  This patch fixes the infinite loop when trying to increase the
479      maximum number of volumes in a Pool during the add command.
480      This patch fixes bug #1008. 
481
482 Release Version 2.2.6
483 09Nov07
484 db   Remove extra data on estimate command in joblist for bat.
485 04Nov07
486 kes  Cleanup of code in SD that sets the LastWritten date. This doesn't 
487      really change anything, but is the beginning of doing it *right*.
488      To do it completely right the LastWritten date must be passed to
489      the SD, but it is not yet done.
490 kes  Minor tweaks to some bat restore SQL.
491 kes  This patch fixes bug #1003 where putting the message output from
492      a Verify job into the catalog results in a recursive loop.  The problem
493      seems to show up only with postgresql (to be verified).
494 kes  Correct %x to %p in postgresql debug statement.
495 02Nov07
496 kes  Fix bug #942 where lots of emails where generated when the heartbeat
497      interval was low and Bacula wanted a different tape from the one in
498      the drive.
499 25Oct07
500 ebl  Add new SD despooling attributes and Dir inserting attributes 
501      job status codes in the catalog (Status table).
502 24Oct07
503 ebl  Use qmake-qt4 instead of qmake when available (debian system).
504 22Oct07
505 kes  Add a security warning to src/cats/make_catalog_backup.in indicating
506      that passing the password via the command line (arg 3) is insecure.
507      This responds to bug #990 (it doesn't fix it).
508 19Oct07
509 kes  Set default debug_level to zero. This corrects bugs #991 and #993. 
510 kes  Fix a crash in bat when it cannot connect to the Director for example
511      if the Director is not running.
512 kes  Remove redundant INDEX (JobId) from File table in the trunk.
513      This fixes bug #992.
514 kes  Make explicit exception to GPL in LICENSE to permit linking
515      the Win32 FD with Microsoft VSS code.
516 kes  Apply the Solaris package patch from 
517      Masopust, Christian <christian.masopust@siemens.com>
518 kes  Apply the patch to optionally add a timestamp in the debug output
519      submitted by Mariusz Czulada <manieq@wp.eu>.
520 18Oct07
521 ebl  Use PQerrorMessage instead of PQresultErrorMessage in postgresql
522      backend (sql_strerror). Fixes bug #989
523 16Oct07
524 kes  Apply Michael Short's <mdshort@gmail.com> Win32 regress patch.
525      It applied with no problems.
526 kes  Add PATH command to SunOS part of mtx-changer.in so that sed and
527      awk are on the path.  
528 kes  Redirect stderror to stdin on mt status command in mtx-changer.in
529      since the status is returned on stderr on Solaris.              
530 kes  Activate Close button on tray-monitor window. This fixes
531      bug #986.
532 kes  Check for NULL item in parse_conf.c before calling it.  In the
533      case of Device, there is no item and this caused a seg fault when
534      Device appears in the conf file.
535 kes  Add a #define __CONFIG_H when including config.h in bacula.h. This
536      avoids pulling in config.h multiple times in some new code.
537 12Oct07
538 kes  Fix spurious warning message printed when creating a volume with
539      a LabelFormat. This fixes bug #976.
540
541 Release Version 2.2.5
542 09Oct07
543 kes  Add JobId in place of Job name in all the Jmsg() output.
544 kes  Correct the APP_DESC for the Win32 storage service (remove an e).
545 07Oct07
546 kes  Make maxvol-test and new more strict maxvol2-test work. 
547 kes  Print JobId in all Jmsg() job output.
548 06Oct07
549 kes  Add new SD despooling attributes and Dir inserting attributes 
550      job status codes.  This fixes bug 961.
551 kes  Fix Win32 drive display in bat version browser. Fixes bug #962.
552 05Oct07
553 kes  Fix doc issue. This fixes bug #963.
554 kes  Fix listing performance problems in bat. Pointed out by 
555      Chris Howells.
556 kes  Remove old debug code.
557 kes  Fix bat code that tests for Win32. This should fix bug #968
558 kes  Query 5 list wrong Vol after migration. This fixes bug #960
559 04Oct07
560 ebl  Fix #969 where user can't change Replace option in restore menu.
561 5ASep07
562 kes  Save jcr in thread specific data (tsd) for each thread.
563 kes  Make Dmsg() print JobId as -%u.
564 kes  Make Jmsg, Emsg, and others automatically pickup the jobid
565      for the thread if it exists.
566 kes  Remove old reservation debug jid code.
567 kes  Remove get_jcr_from_tid() from OpenSSL and tls code.
568 ebl  Add an option that permit to specify spool size in job
569      definition. (Applying patches/testing/spoolsize_per_job.patch).
570      You must upgrade SD and DIR at the same time.
571 dvl  Add new configuration item --archivedir
572 dvl  Adjust regression tests to use tmp not /tmp.  This will allow
573      multiple concurrent runs of the regression tests.
574 28Sep07
575 kes  Fix race condition that drops final block written to volume.
576      This happens in rare cases with multiple simultaneous jobs 
577      when the Volume fills.  This fixes bug #964.  May be related
578      to bug #935 and possibly #903.
579 kes  Eliminate more strerror() and replace with bstrerror().
580 kes  Remove BSD getopt and replace with unrestricted IBM version.
581 kes  Fix Win32 build for changed calling sequences.
582 kes  More tweaks to the mount volume routines to get everything
583      right. Changed variable name from find to have_vol, which is
584      much easier to understand.
585 kes  Enhance btimer debug code.
586 27Sep07 
587 kes  Fix FD->SD authorization failure, which was due to spurious
588      wakeups from a pthread_cond_timedwait().  Simply check the
589      predicate before continuing.  This fixes bug #953.
590 kes  Add const char where needed (more to do). Remove temp debug code.
591 26Sep07
592 kes  Setup SQLite busy handler before doing queries. Fixes bug #967.
593 kes  Don't overwrite error message in check_tables_version.
594      Fixes bug #966.
595 kes  Unlock batch insert tables with same calls used elsewhere.
596 kes  Allow starting 59 jobs a second.
597 kes  Make SD session key more random.
598 kes  Add retry for SQLite opening db if it fails. Probably helps
599      for bug #967.
600 kes  Suppress extra error messages during batch insert failure.
601      Fixes bug #966.
602 kes  Add jcr to timer packets so if killed message can be sent to job.
603 kes  Add JobId to all Dmsg() output.
604 kes  Put some FD auth code on dbglvl rather than fixed.
605 kes  Return insert attributes error message in db msg buffer to avoid
606      false error messages. Helps fix bug #966.
607 kes  Separate batch init error messages. Probably helps fix bug #966.
608 kes  Make SD code that contructs attribute insert check string lengths
609      more carefully.
610 kes  If Dir gets an error during inserting attributes, cancel SD.  
611      This reduces unnecessary error messages.
612 24Sep07 
613 kes  Correct search boolean for getting Volume info
614 ebl  Cleanup batch insert code. Probably fixes bug #965.
615 kes  Back out one small change to the reservation system (reserving a volume).
616 kes  Rework how a Volume is mounted. It is now much more intelligent and
617      will always attempt to use any mounted volume if possible and reduces
618      calls to the Director asking about volumes.
619 23Sep07 
620 kes  Turn off some code when batch insert not enabled.
621 kes  Edit FD name in connect error messages.
622 kes  Rework the reservation system to take into account that the Director
623      might give us a Volume that is different from the current one being
624      used, and to ensure that we don't exceed Maximum Volume Jobs.
625      This fixes (mostly) bug #947 '  Maximum Volume Jobs = 1 produces 
626      fatal error with multiple jobs running'
627 kes  Add more debug code in reservation system.
628 kes  Implement maxvol-test to check bug #947.
629 22Sep07 
630 kes  Add code to handle tray monitor separated from Win32 FD.
631 kes  Fix display of Win32 tray monitor after reboot. Fixes bug #952.
632 20Sep07
633 kes  Add missed return in fixing verify bug -- trunk only.
634 ebl  Fix a command parser issue causing a director segfault.
635 kes  Fix ANSI tape labeling. Fix restoring ANSI labeled Volumes. 
636      This fixes bug #954.
637 kes  Increase the max block size to 4MB fixes bug #957.
638 kes  ERABT if user sets min block size > max block size.  Fixes bug #956.
639 kes  Apply 2.2.4-poll-mount fix, that resolves bug #908 where a tape
640      is not properly mounted (recognized) during a poll.
641 kes  Apply 2.2.4-verify patch that resolves bug #958.  A Verify catalog
642      Job that has differences reports Verify OK.
643 ebl  Fixes #955 bug seg fault in Dir introduced  with regexwhere relocation.
644 17Sep07
645 ebl  Add an option to operate on all pools with update vol parameters.
646      This complete the project 20. Patch from Nigel Stepp.
647 ebl  Add history support to bconsole when using readline.
648      Using Ctrl-D to exit doesn't update .bconsole_history
649 kes  Modify new volume algorithm to use max MediaId for generating next
650      volume number rather than the count of Volumes. This should essentially
651      eliminate the failure rate if some volumes were deleted. Bug #921.
652 kes  Begin implemention of Optimize Job Scheduling.
653 kes  Implement restore callback that Dirk and I agreed on for bat 
654      restore. This fixes bug #928. Restore of backup of zero files fails.
655 kes  Fix SQL Catalog logging which broke with new db_escape_string 
656      calling sequence.
657
658 Release Version 2.2.4
659 14Sep07
660 kes  Fix bacula_cats.def for new db_escape_string().
661 kes  Increase size of name string when FD making connection to SD.
662      May fix bug #953. FD->SD connection failure.
663 13Sep07
664 kes  Add code to help Dan debug 2drive-incremental-2disk test.
665 kes  Add code to try to fix bug #908.
666 kes  Add waits to multiple exit detection code to try to force pid
667      file to always be deleted.
668 kes  Restore good dev.tar.gz to rescue set appropriate binary property.
669      This fixes bug #950.
670 kes  Fix seg fault in error exit of acquire_for_read after unsuccessfully
671      trying to switch drives by checking for blocking before unblocking.
672      Fixes bug #906.
673 kes  Cancel storage daemon in all cases where FD reports error. This
674      should fix virtually all cases of bug #920.
675 kes  Fix db_escape_string() for MySQL which did not compile.
676 12Sep07
677 kes  Fix error message that was clobbered when Dir tells SD it does not
678      have write permission on Volume.  This should fix a minor point
679      in bug #942, but not the main problem.
680 kes  Add code to cancel job in SD if FD connection fails. This should
681      fix bug #920.
682 kes  Add code in FD exit to prevent loops and a crash on FreeBSD.
683 dvl  Pass jcr and db into db_escape_string() to enable better escaping
684      of strings
685 kes  Fix migration code to get correct Volume name with multiple volumes 
686      by skipping |.  Fixes bug #936.
687 kes  Implement patch supplied by Landon to fix bug #944 where using
688      TLS with bconsole uses 99+% of the CPU.
689 kes  Note, you need GTK >= 2.10 to be able to link the Tray Monitor
690      program.
691 kes  Move patches into patches directory.
692 11Sep07 
693 ebl  Fix bug #946 about 'bacula-dir -t' which doesn't works
694      as expected.
695 09Sep07 
696 ebl  Using 'm' in bconsole will show messages like before,
697      and not memory usage.
698 kes  Fix bug #935, and probably also bug #903 where files were not
699      restored. MediaId was not properly set in JobMedia record after
700      a Volume change.
701 08Sep07
702 kes  Suppress chown and chmod error messages if the FD is not running
703      as root.
704 07Sep07
705 kes  Apply Martin Simmons' patch that should turn off the new API usage
706      when batch insert is turned off allowing building on older
707      PostgreSQLs.
708 kes  Add ./configure search in qwt-qt4 for qwt package
709 05Sep07
710 kes  Bacula is now free of 3rd party GPL copyrighted code!
711 kes  Remove idcache.c 
712 kes  Add guid_to_name.c/h which replace idcache.
713 kes  Remove enh_fnmatch.c.  Make code that references it use fnmatch.c
714 04Sep07
715 ebl  Detect if new PosgreSQL batch insert API is present.
716 kes  Correct incorrect mempool call causing Director crash. Occurs on
717      systems without va_copy().
718 sb   Update spec files for 2.2.1 release
719 03Sep07
720 kes  Fix memory pool call in ua_output.c. bug #934.
721 kes  Replace fnmatch.c and fnmatch.h by modified BSD versions.
722      Add test program to fnmatch.c
723 02Sep07
724 kes  Integrate patch to README.vc8 from 
725      Hederer Jean-Sébastien <hedererjs@asperience.fr, had to manually
726      edit it to get it into Unix patch format.
727 kes  Implement mkpath.c to replace old FSF makepath.c
728 01Sep07
729 kes  Implement savecwd.h and savecwd.c. Remove FSF versions.
730
731 Release Version 2.2.1
732 30Aug07
733 kes  Update POTFILES.in
734 kes  Cleanup a few underquoted AC_DEFUNs in configure   
735 kes  Apply patch from Martin Simmons that adds a test for va_copy to
736      ./configure
737 29Aug07
738 kes  Fix bug #921 by increasing the number of tries to create a new volume
739      from 11 to 100.
740 kes  Rework bmsg in ua_output to use va_copy() so that bvsnprintf()
741      can be called multiple times.  Implement a version for machines
742      without va_copy() that gets a big buffer.
743 25Aug07
744 kes  Integrate more portable zone offset code into bsmtp.c
745      Submitted by Attila Fülöp.
746 24Aug07
747 kes  Fix bad SD->FD return status reported by 
748      (James Harper) <james.harper@bendigoit.com.au>
749 ebl  Fix a bug in read_close_session which return random status
750      thanks to James Harper
751 23Aug07
752 kes  Fix (hopefully) bug #930 by doing a db_escape_string() on file  
753      and directory names during restore of single file/directories.
754 kes  Add sanity checks to .sql command when string is empty. Hopefully
755      that will resolve Dirks Director crash.
756 22Aug07 
757 kes  Apply patch submitted by Martin Simmons that corrects a seg fault
758      in the bsmtp chat subroutine when debug is >= 10.
759 21Aug07
760 kes  Fix Director crash when running bat SQL queries.
761 kes  Add David's notes on Item 8: Copy pools.
762 18Aug07
763 kes  Rework projects file to be current and ready for a vote.
764 kes  Enhance lex scanner error message.
765 17Aug07
766 kes  Tweak LICENSE file to mention BSD code.
767 kes  Fix bat.pro.in so that it includes the OpenSSL libraries only
768      if specified on the ./configure.
769 kes  Add first (not yet tested) cut of bcomm to the qt-console directory.
770      This class is intended to allow us to open a second bsock to the
771      Director while in the restore subdialog.  
772 16Aug07
773 kes  Fix configure to create bat Makefile before creating dependencies.
774 kes  Eliminate the egg files from the tray-monitor. Use gtk calls.
775 kes  Add a tooltip to the tray monitor.
776 dvl  Set the Director's PID file before dropping privs. This fixes
777      bug #923.
778 15Aug07
779 kes  Update AUTHORs file
780 kes  Increase the default max concurrent jobs to 20 in FD and SD to
781      correspond with the default .conf files.
782 kes  Rewrite the Win32 service routines.  This eliminates the 3 copies
783      some different, of the same file created by RN when porting the 
784      Win32 SD and Dir.
785 kes  Rearrange some of the Win32 directories and the placement of the files
786      in them.
787 kes  Set DEVELOPER flag in version.h
788
789 ========================================================================
790 Release Version 2.2.0
791 09Aug07
792 kes  Apply a second doc patch from Marc.
793 kes  Apply a doc patch from Marc Schiffbauer <marc@schiffbauer.net> that
794      improves the tips section that discusses how to setup multiple
795      simultaneous jobs.
796 08Aug07
797 kes  Update bat README file.
798 kes  Apply patch from Allan Black <Allan.Black@btconnect.com> that     
799      corrects a typo in the Recycle status check in db_find_next_volume().
800      This will probably fix a number of annoying problems with multiple
801      Recycled volumes.
802 kes  Modify most of dird/msgchan.c to use bsock class calls rather than
803      bnet calls -- no functionality change.
804 07Aug07 
805 kes  Modify the Verify output to specify if files are missing on    
806      the Volume(s) or disk.  Fixes confusion in bug #916.
807 kes  When more than one Volume is read in a migration job, the last
808      Volume bytes reported are from the last read volume rather than
809      the last written volume. Fixed. This fixes bug #910.
810 kes  Fix display of Recycle flag after update volume=foo recycle=yes.
811      It previously printed New Recyle flag is: no. This fixes bug
812      #917.
813 06Aug07
814 kes  Correct seg fault when switching tape drives during restore.
815 kes  Commit uid_gid_name.c (replacement for idcache.c), but will not
816      be used until after 2.2.0 release.
817 04Aug07
818 kes  Remove fnmatch() in SD that permitted wild card specifications.
819      This fixes bug #914.
820 31Jul07
821 kes  Fix %g in filename returned by SQL for browse tree reported by
822      Dirk.
823 kes  Fix configure so that it puts config.out in the cwd rather than
824      in src/qt-console
825 kes  Attempt to fix the locking problem reported by Eric in bug #906.
826 kes  Make berrno class to leave errno unchanged after constructor call.
827 kes  Make bnet_server use the heap rather than the stack to allocate
828      its socket fd pointers to avoid a crash at termination. Problem
829      reported by Ryan Novosielski and bugs pointed out by Martin Simmons.
830 30Jul07 
831 kes  Create new depkgs and depkgs-qt separating the qwt out of depkgs
832      and putting it in depkgs-qt along with Qt4.3.
833 29Jul07
834 kes  Rework code in acquire.c that switches drives for reading when
835      the Media Type does not match. This should fix bug #906
836 28Jul07
837 ebl  Fix a director segfault during job setup #907
838 kes  Correct seg fault in postgresql when first operation returns no
839      rows.  Fixes Dirks File browser problem seg fault with bat.
840 25Jul07
841 kes  Apply patch from Felix Schwarz <Felix.Schwarz@web.de> that allows
842      building wxconsole on Fedora 7 with wxWidgets 2.8 (it works with
843      2.6 as well).
844 24Jul07 
845 kes  Implement PopUp YES/NO dialog for bat.
846 23Jul07
847 ebl  Fix a compilation bug when using #define BACL_WANT_NUMERIC_IDS
848 22Jul07
849 kes  Correct RunScript to terminate job in FD on failure.
850 kes  Change abort_on_error and AbortJobOnError to fail_on_error
851      and FailJobOnError in RunScripts.
852 kes  Minor tweaks of code formating in RunScripts, principally to
853      avoid depassing 80 columns.
854 21Jul07
855 kes  Eliminate one #ifdef Win32 in bsmtp
856 kes  Implement grow tool to grow a file for testing very large databases.
857 kes  Add big-vol-test to test Bacula seeking with > 5GB.
858 Release 2.1.28 beta
859 19Jul07
860 kes  Modify find_next_volume() to return all values in Media record.
861 kes  Ensure that we keep Recycle Pool when moving Scratch volumes.
862
863 Release 2.1.28 beta
864 18Jul07
865 kes  Update Release notes 
866 17Jul07
867 ebl  fix a bug in get_scratch_volume() report by Andreas Helmcke
868      Warning, in previous beta version, all media get from scratch keep their
869      old retention.
870 16Jul07
871 kes  Tweaked Win32 installer to remove temp conf files at uninstall time.
872      This should fix bug #842. Made a note to look at removing the temp
873      files at the end of the install.
874 kes  Add ability to mount and unmount a file device providing it is
875      marked as being removable and has the appropriate mount and unmount
876      commands defined in the Device resource. This fixes bug #830.
877 kes  When applying a storage override, release all previous storage
878      definitions rather than just prepending the new storage.
879      This should prevent a good deal of confusion.
880 14Jul07
881 kes  Implement ./configure search for qwt libraries.
882 13Jul07
883 kes  Disable posting the WM_CLOSE message in KillRunningCopy of the 
884      Win32 FD.  This should fix bug #893.
885 kes  Remove an unnecessary beep in Win32 init code.
886 kes  Update copyright dates in Win32 executable about boxes.
887 kes  Replace the FSF copyrighted getopt.c and getopt.h in the Win32
888      code with a BSD getopt.c and getopt.h.
889 kes  Remove sched.h from the Win32 compat directory -- not used.
890 kes  Remove the Exit menu item from the Win32 tray monitor. If you really
891      need to shut it down, do it through the services panel or the command
892      line.
893 kes  Remove some inappropriate Bacula FSFE copyrights.
894 ebl  Tweak status client=xxx to be more easy to parse (more like in 2.0.x)
895 kes  Fix regress config non-portable test as pointed out by
896      Florian Heigl <florian.heigl@gmail.com>
897 kes  Fix PSCMD for HP-UX in configure.in to have proper syntax.
898      as pointed out by Florian Heigl <florian.heigl@gmail.com>
899 12Jul07
900 kes  Fix missing rctx. prefixes on the Darwin code in src/filed/restore.c
901      Reported by Frank Sweetser.
902
903 Release 2.1.26 beta
904 12Jul07
905 kes  Fix client-only build.
906 kes  Integrate client-only fixes for bsys (initgroups) and conio from
907      Sergey Svishchev <svs@ropnet.ru> for the AIX platform.
908 kes  Make arguments to get_scratch_volume() in same order as other
909      such calls.
910 kes  Rework the prune_volumes() subroutine so that after purging and
911      no volume found in desired pool, it will check for a scratch 
912      volume. This prevents recycling the whole scratch pool.
913 kes  Add code to status storage to print boffset_t (largefile support).
914 11Jul07
915 kes  Move qwt (Graphics libarary for Qt4) to depkgs.
916 kes  You now need a --with-qwt=<dir> to be able to build bat.
917 kes  Update src/win32/cats/bacula_cats.def to include the new       
918      db_get_query_dbids() call on Win32.
919 07Jul07
920 kes  Correct a problem when selecting a scratch volume and moving
921      it to another pool that lost some columns.
922 kes  Tweak some code in ua_update.c to use POOL_MEM instead of POOLMEM.
923 kes  Enhance Autochanger error messages to include Volume and device name.
924 kes  Rework prune_volumes() code to take account of InChanger flag,
925      and to handle recycling volumes going to the Scratch pool and
926      current pool because the RecyclePool directive.
927 kes  Implement a better and more efficient db_get_query_dbids() to
928      handle creating and passing back a list of DBIds.
929
930 Release 2.1.24 beta
931 03Jul07
932 kes  Start work on new more efficient DBId subroutine. First use
933      will be for recycling volume to Scratch inchanger.
934 kes  Increase number of JobIds in pruning from 1000 to 10000. 
935      This to be replaced by above routine.
936 kes  Begin implementation of building Qt4 on Win32.
937 kes  Correct typo in fix I added for bad TLS shutdown.
938 kes  Pull 2.0.3 patches into patches directory.
939 kes  Update Release notes.  Include qt-console in line count.
940 kes  Update Projects file.
941 30Jun07
942 kes  Integrate patch from Sergey Svishchev <svs@ropnet.ru> that fixes 
943      bug in migration code where a job that spanned two volumes
944      was migrated twice.
945 29Jun07
946 kes  Implement new BST_DESPOOLING blocked state. Change from locking
947      during despooling in SD to blocking. This means that other threads
948      can work with the device structure, in particular the reservations
949      system while despooling.
950 28Jun07
951 kes  Fix return in reservation message queue that missed clearing
952      the jcr lock (implemented 26Jun07 below).
953 kes  Rename a number of dev methods to make locking function names
954      a bit clearer.
955 kes  Document locking in lock.c. Move lock structures to new file
956      lock.h.
957 26Jun07
958 kes  Move reservations message lock to lock jcr only this
959      fixes bug #861.
960 kes  Move main SD locking code into lock.c (new file).
961 kes  Update Win32 build to include lock.c
962
963 Release 2.1.22 beta
964 26Jun07
965 kes  Dirk committed the qwt library code for drawing graphs in bat.
966 kes  Tweak install of qwt so that it is integrated with ./configure.
967 25Jun07
968 kes  Fix HAVE_BATCH_INSERT to be HAVE_BATCH_FILE_INSERT, pointed
969      out by Eric (my typo).
970 ebl  Fix configure.in to get batch mode enable
971 kes  Return correct string from authenticate.cpp in bat when connecting
972      to Dir.
973 kes  Apply patch suggested by Frank Sweetser to fix bug #888 --     
974      spurious line drops when using TLS.  
975 kes  Do not file reparse points when restoring a file that already
976      exists -- Win32.
977 24Jun07
978 kes  Implement Windows reparse points -- similar to directories, but
979      we do not descend into it. This is a first cut. They seem to 
980      be backed up, but restore is not yet tested.
981 kes  Remove restore_blocking in tls code when shutting a socket to leave
982      it in blocking mode. Hopefully this will fix the encryption bug  
983      reported by Frank Sweetser.
984 kes  When opening a file for backup, tell the OS that we are going to
985      read it sequentially -- optimization.
986 kes  Change variable names in authenticate_director() to not conflict
987      with member names in bat. Caused great confusion with compiler,
988      but no warnings.
989 23Jun07
990 kes  Queue openssl error messages in case of comm problem.
991 kes  Do shutdown() call if socket terminated.
992 kes  Remove some duplicated code in tls.c
993 kes  Move more of the bsock member variables into private and access
994      them with methods.
995 kes  Add Frank Sweetser's tls-test to the regression suite.
996 22Jun07
997 kes  Add Swedish sv.po file
998 21Jun07
999 kes  Don't print clock skew message in FD if less than 3 seconds diff.
1000 kes  Add a bit of VSS info to status client.
1001 kes  Implement a first cut of Vista VSS, using Win2003 code.
1002
1003 Release: 2.1.20 beta
1004 20Jun07
1005 kes  Fixed bug #886 (multidrive autochanger: SD doesn't use drive with
1006      loaded tape but uses first drive).
1007 kes  Fixed bug #807 Restore encrypted backup failed on Windows 2003
1008      This was indeed a Win32 issue.
1009 19Jun07 
1010 kes  Simplify search of autochanger for in-use Volume.  
1011 kes  Fix exit condition of check for in-use volume.  kes Remove
1012      inappropriate my_postgresql_free_result() in db_close()
1013      routine.
1014 kes  Fix bad return in FD when encryption signature not found.
1015      Probably caused a crash.
1016 kes  Inhibit missing encryption signature error messages for 
1017      file types where no signature computed.
1018 kes  Correct inverted check on autochanger in reservation system.
1019 kes  Tweak debug code in autochanger reservation.
1020 18Jun07
1021 kes  Add some additional locking in the cats directory in subroutines
1022      that modify packet variables called from batch insert.
1023 kes  Rework how dcrs are allocated. new_dcr() can now be called
1024      with an existing pointer, and it will simply clean it up.
1025      This allows the reservation system to test various different
1026      devices, and will permit easy device changes.
1027 kes  A bunch of changes all over to handle new new_dcr() calling
1028      sequence.
1029 kes  Work more on the Volume management in the SD. Remember Volumes
1030      for tape drives and for autochangers (even virtual disk changers).
1031 kes  When looking at the Volume list to reserve a drive, handle 
1032      autochanger names correctly by interating through the changer 
1033      devices.  Also call the Director to see if a Volume is suitable
1034      for the current job.
1035 kes  Fix some bugs in bscan. Make sure all media records are written.
1036      Make sure that valid JobMedia records are written for disk files.
1037      Previously they were completely wrong.
1038 kes  Move source tar files for depkgs-mingw32 to www.bacula.org so
1039      that the URLs don't change and so that the developers will all
1040      work off the same copy. Rebuild from scrach.
1041 kes  Upgrade Win32 SQLite3 from 3.3.8 to 3.3.17.
1042
1043 Release: 2.1.18 beta
1044 16Jun07
1045 kes  Fix seg fault in FD from incorrect digest size. 
1046 kes  Fix argument to non-OpenSSL crypto.c subroutine.      
1047
1048 Release: 2.1.16 beta
1049 16Jun07
1050 kes  Remove a few malloc()s from the encryption code.
1051 kes  Use the class calls to bsock in filed/backup.c and restore.c in
1052      place of the old bnet_xxx code.
1053 kes  Implement code that does an on the fly calculation of the  
1054      signing digest during restore of encrypted files.  It makes
1055      a best guess at the algorithm, and if it is not correct, will
1056      then revert to the old code which reads the file after it is
1057      restored.
1058 kes  Implement at least one missing crypto stream in stream_to_ascii()
1059 kes  Apply patch from William <chowmeined@gmail.com> that fixes bug
1060      #877 where a reload with bad syntax causes Dir to exit.
1061
1062 Cut: 2.1.14 beta (not released)
1063 14Jun07
1064 kes  Do not free a volume on a tape drive until another volume is
1065      mounted and read, or the autochanger unloads the volume.
1066      This should help the SD re-use volumes that are already mounted,
1067      and should fix bug #886.
1068 kes  Apply patch from user brettedgar that allows gnome2-console include
1069      the OpenSSL libraries, and hence work with SSL.  Fixes bug #885.
1070 kes  Apply patch from Lucien Weller that fixes day of week calculation
1071      because of DST flag problem. Fixes bug #887.
1072 10Jun07
1073 kes  Move find_next_appendable_volume() to after acquiring a valid device
1074      in reserve.c.  This fixes bug #864 -- confirmed by reporter.
1075 09Jun07
1076 kes  Unable to reproduce bug 872. However added additional testing for
1077      integer.
1078 kes  Bug #874 resolved by documenting SQLite limitations.
1079 kes  Bug #882 resolved by documenting mtx-changer script for new drive code.
1080 kes  Bug #881 resolved by removing typo in mtx-changer script.
1081 kes  Made Frank Sweetser's wiki the official Bacula wiki with his
1082      approval. Added a link to the wiki on the web page, and implemented
1083      a backup from http://paramount.ind.wpi.edu                                          
1084 08Jun07
1085 kes  Fix update allfrompool to pass pool name.
1086 07Jun07
1087 kes  Convert to pure GPL v2 license.
1088 kes  Fix sscanf problems reported by Peter Buschman that caused
1089      a bus error on Solaris.
1090 kes  Rework (simplify) the select prompt in bat.
1091 kes  Move get_jobid_from_tid() into lib and create a 
1092      get_jcr_from_tid().
1093 kes  Use get_jcr_from_tid() to conver all tls Emsg() to Jmsg().  This
1094      should definitely fix the problem of lost error messages in the
1095      encryption code.
1096 kes  Remove over zellous addition of FSFE copyright in a few eggxxx files.
1097 kes  Eliminate tcpd.h from the project. Enclose the #include from the
1098      library with extern C ...
1099 kes  Add print of signal name when a signal is trapped.
1100
1101 Release: 2.1.12 beta
1102 04Jun07
1103 kes  Fix a seg fault in the PostgreSQL driver dereferencing a NULL pointer.
1104 03Jun07
1105 kes  Implement SQLITE3_INIT_QUERY in version.h that can do an initial
1106      query for SQLite3. Use it to set PRAGMA synchronous = OFF. This
1107      makes SQLit3 run 30 times faster, though a bit less safe.
1108 kes  Implement --with-batch-insert in configure and detection of thread
1109      safe libraries.  It is on by default, but turned off if no thread
1110      safe library (e.g. SQLite 2) is available.
1111 02Jun07
1112 kes  Fix Bacula PostgreSQL buffer overruns.
1113 kes  Do better checking for NULL results returned from PostgreSQL;
1114      implement retry for failed queries; clear results buffer after
1115      failed query. Hopefully this will correct the PostgreSQL failures.
1116 01Jun07
1117 kes  Implement algorithm to handle only one appendable volume with
1118      Prefer Mounted Volumes = no.
1119 kes  Fix a Bacula PostgreSQL bug dereferencing a NULL pointer      
1120      returned from a query.
1121 kes  Make volume lock recursive.
1122 kes  Implement an additional volume reservation algorithm that
1123      starts by considering all reserved volumes then uses the
1124      old brute force algorithm of searching the resources to
1125      find a suitable device.
1126 kes  Add new reservations debug code and refine the old code.
1127 kes  Update the win32/dll/bacula.defs file.
1128 29May07
1129 kes  Tweak reservations algorithm to permit a few more cases, i.e.
1130      volume reserved, but on different drive, ...
1131 kes  Enhance SD status to include Pool and Media Type for drive in a
1132      more readable format (a bit longer). 
1133 kes  Fix PostgreSQL double free.
1134 28May07
1135 kes  Minor refactoring of restore decryption code.
1136 kes  Add code to smartall.c to detect double free of a buffer.
1137 27May07
1138 kes  Add < > around %r in from field on mail command of bacula-dir.conf.in
1139      so that bsmtp will create a correct email address (mailbox only).
1140 kes  Modify 'memory' command so that the buffers are listed as 'In use'
1141      to avoid confusion with Orphaned buffers.
1142 kes  I reworked the OpenSSL include/lib flags to be handled in     
1143      the standard Bacula way, which should fix bug #863 concerning
1144      non-standard OpenSSL libraries.
1145 26May07
1146 kes  Implement Help Browser window for bat.
1147 kes  Fix reload bug that reset StorageId to zero.
1148 25May07
1149 kes  Fix TLS #ifdefing when TLS turned off.
1150 kes  Ensure that when labelling a tape with Slot=0 that InChanger
1151      is not set.
1152 kes  Use DISTINCT to make MySQL and PostgreSQL uar_list_temp query        
1153      the same.
1154 kes  Add StartTime to final uar_sel_jobid_temp query so that we can
1155      add DISTINCT (required by PostgreSQL).
1156 kes  Implement BSOCK authenticate_director() method. Eventually will
1157      authenicate all daemons.
1158 kes  Move several more functions into the BSOCK class.
1159 24May07
1160 kes  Add code to tell the OS that we no longer need a cached
1161      file that we were reading. In findlib/bfile.c.  Also,
1162      only cache files that we are reading. Thanks to
1163      Tobias Oetiker <tobi@oetiker.ch> for the idea.
1164 kes  Tweak to bsmtp to eliminate compiler warnings on Win32.
1165 kes  Implement script to automatically generate cats and dll .def
1166      files for Win32 dll.
1167 kes  Update README.mingw32 to include new .def file generation.
1168 kes  Correct typo in UTF-8 error message as reported by:
1169      jhernandez <julianhernandez@gmail.com>
1170 kes  Add additional sm_check() code on debug level 1.
1171 kes  Set default debug level to 1.
1172 kes  Trap SIGABRT in attempt to get traceback.
1173 23May07
1174 kes  Reduce bat connect timeout from 30 to 15 seconds.
1175 kes  More restructuring and implementing BSOCK class in place of
1176      old bnet.c code.
1177 kes  Remove a few unnecessary malloc() tests in crypto code.
1178 kes  Turn off crypto calls for > 128 bits in crypto.c if HAVE_SHA2
1179      not defined. Bug reported by Allan Black <Allan.Black@btconnect.com>
1180 kes  Remove duplicate HAVE_CRYPTO definition in config.h.in
1181 22May07
1182 kes  Fix Verify InitCatalog mysql_escape_string() trashing memory.
1183      Make buffer bigger.
1184 kes  Fix Verify InitCatalog. The attributes were not pointing to the
1185      correct saved location.
1186 kes  Implement message callback so that GUI is sure to get all
1187      daemon messages. Currently displayed in a dialog in bat.
1188 kes  Ignore SIGUSR2 (Bacula timer) in bat.
1189 kes  Apply regress patch from bug #859 to allow regress to work 
1190      with Solaris compiler.
1191 21May07
1192 kes  Begin adding TLS support to bat.
1193 kes  Apply UTF-8/16 patch from Yves Orton <demerphq@gmail.com> to
1194      clean up lex.c and make it more readable.
1195 20May07
1196 kes  Move more bnet functions into the BSOCK class.
1197 kes  Fix tray-monitor by not requiring a timer interval in bnet_connect()
1198 kes  Complete change of berrno strerror() method to bstrerror() 
1199
1200 Release: 2.1.10 beta
1201 18May07
1202 kes  Cleanup incorrect email addresses in bsmtp.
1203 kes  Make bat display initial messages rather than discard them.
1204 16May07
1205 kes  First cut of adding .mod to the run command.    
1206 kes  Implement auto display of messages in bat.
1207 kes  Enhanced preferences to allow all Bacula output to be
1208      displayed in bat.
1209 15May07
1210 kes  Try to make bsmtp date routines more generic.
1211 kes  Fixed bug #856 autochanger documentation.
1212 kes  Rework bsmtp date editing for Win32. This fixes bug #854.
1213 kes  Add new cats entry point so Win32 builds.
1214 14May07 
1215 kes  Attempt to fix bsmtp date editing on OSes without %z editing. 
1216      Fixes bug #854.
1217 kes  Do better checking for the MySQL 64 bit libraries looking for both
1218      .a and .so libraries.
1219 kes  Add a kludge for Ubuntu's non-standard locations for MySQL -- allow
1220      /usr/include/mysql/mysql.h AND /usr/lib/... rather than /usr/lib/mysql/...
1221 kes  Require the thread safe version of MySQL during configure. Thanks
1222      to Andre Noll for pointing this out.
1223 kes  Ensure that calls to find_jobids_from_mediaid_list() check count before
1224      continuing in migration code.
1225 kes  Apply implementation of tray-monitor font derived from gnome-console
1226      submitted by Andreas Piesk <a.piesk@gmx.net>
1227 13May07
1228 kes  Eliminate important memory loss in SQLite
1229 kes  Fixed the batch insert MySQL thread specific data that was not
1230      being freed. See cats/mysql.c:db_thread_cleanup().
1231 kes  Fix restore before command.
1232 kes  Convert old hdr.name to name() in a few places.
1233 kes  Implement update jobid command.
1234 kes  Return all time_t dates in db_get_job_record()
1235 kes  Stop watchdog in SD earlier.
1236 kes  Put Pool just after Storage in please mount message.
1237 kes  Fix pointer usage bugs in Verify InitCatalog pointed out by
1238      Eric.
1239 12May07
1240 kes  Update the po files.
1241 kes  Fix Verify InitCatalog by making it cache attributes.
1242 11May07
1243 kes  Change name bacula-bat to bat for man 1 page to correspond to
1244      Makefile.
1245 kes  Check for client and store NULL pointers in status command.  This
1246      fixes bug #845.
1247 kes  Fix non-ssl build so that it works (add JCR *jcr to crypto structures).
1248 kes  Fix sign extended editing of %p.
1249 kes  Clean out a little old #ifdefing in cats/mysql.c
1250 10May07
1251 kes  If time diff between DIR and FD is more than 600 seconds convert
1252      INFO message to WARNING.
1253 kes  Implement heap size display in status for all daemons.
1254 kes  Attempt to fix MySQL db open memory loss (not successfull).
1255 kes  Don't set SIGKILL and SIGSTOP neither can be trapped.
1256 kes  Eliminate memory loss in MySQL (possibly other SQLs) during
1257      Query. This looks like a MySQL but but by doing extra releases,
1258      the memory goes away.  This should fix bug #847.
1259 09May07 
1260 kes  When backup fails, cancel SD before waiting for sd termination.
1261 kes  If SD is waiting for FD to connect during cancel, wake up the 
1262      thread.
1263 kes  Fix fsf code so that errno is correctly reported.
1264 kes  Apply migration patch (with changes) from Sergey Svishchev <svs@ropnet.ru>
1265 08May07
1266 kes  Make lack of Pool directive in Job an ERROR_TERM rather than FATAL
1267      so that Bacula doesn't later stumble into a seg fault.
1268 kes  Use the term Restore Client in the restore Job report.
1269 kes  Merge patch from Sergey Svishchev <svs@ropnet.ru> that preserves 
1270      the original job's FileSetId.
1271 kes  Merge patch from Sergey Svishchev <svs@ropnet.ru> that implements
1272      spooling in migration jobs.  Not yet tested.
1273 kes  Merge patch from Jorj Bauer <jorj@seas.upenn.edu> that implements
1274      reading conf file from a pipe.  However, do it with open_bpipe()
1275      rather than popen.  Not yet tested.
1276 07May07 
1277 kes  Fix an ugly bug where the VolCatBytes were getting updated
1278      during a restore.
1279 kes  Implement bconsole memory command that prints current memory
1280      usage, plus smartalloc dump.
1281 kes  Clarify some error messages in backup, admin, and migrate.
1282 kes  Shrink label dialog to smaller size.
1283 kes  Invert Cancel OK buttons on restore to be OK Cancel.
1284 kes  More strerror() to bstrerror() conversions.
1285 06May07 
1286 kes  Start implementing bstrerror() in place of strerror().
1287 kes  Stripping path -- seems to work.
1288 04May07
1289 kes  Prevent door and port files from being restored (mostly
1290      Solaris stuff).
1291 kes  Free an unreleased buffer in compat code.
1292 kes  Change console Job name from *Console* to -Console- to eliminate
1293      Win32 filename problems.  Put Win32 path separator when creating
1294      Console file.  This fixes bug #846.
1295 kes  Change berrno::strerror() to berrno::bstrerror().  Not yet full
1296      implemented.
1297 kes  Pass jcr to crypt_sign_decode because it creates a new SIGNATURE
1298      structure.
1299 kes  Define b_errno_win32 on Linux to be zero so that it can be or'ed in
1300      to force Win32 error message.
1301 03May07
1302 kes  First cut strip path. The data should be passed to the FD,
1303      but nothing is done with it yet.
1304 kes  Enhance the digest and signature routines in the crypto
1305      library to accept a JCR and to use it to print error messages
1306      so that they will go in the Job report rather than the daemon's
1307      messages.
1308 kes  Simplify some of the verify signature code.
1309 kes  Simplify a few of the alternative returns in the signature 
1310      code.
1311 02May07
1312 ebl  Use only POSIX regex instead of GNU regex in breg.c for
1313      File relocation. It fix broken freebsd compilation.
1314 kes  Convert all other Dir files to use new ua class message 
1315      routines for bat.
1316 kes  Tentative fix for missing digest signature in bug 807.
1317 kes  Correct handle problem in new win32_ftruncate routine.
1318 kes  Convert ua_purge.c and ua_update.c to use new ua class
1319      message routines for bat.
1320 29Apr07 
1321 kes  Correct incorrect installation of LICENSE in Win32 installer.
1322 kes  Display LICENSE at the beginning of the Win32 install.
1323 kes  Attempt to correct the need for the png files to be installed 
1324      for bat.
1325 kes  Reapply my bat.conf install script in qt-console. I think I 
1326      editted bat.pro instead of bat.pro.in and it was lost.
1327 kes  Apply CentOS patches someone sent me. Checks for /var/run/subsys,
1328      the /var/lock/subsys for subsysdir.  Also corrects typos in the
1329      doc.
1330 28Apr07
1331 kes  First cut update job.
1332 kes  Correct configure to include qmake of src/qt-console directory.
1333 26Apr07
1334 kes  Make restore job yes/mod/no print in one command so GUI works.
1335 kes  First cut implementing backup and restore client.
1336 kes  Correct editing in Verify output that caused a seg fault.
1337 25Apr07
1338 kes  Insure that bat.conf is not overwritten during installation.
1339 kes  Fix important bug in db_sql_query() in mysql.c.  It was introduced
1340      while I was implementing migration in March 2006 !
1341 24Apr07
1342 ebl  Cleanup file relocation, using char *RegexWhere instead of
1343      char *where + bool where_use_regexp
1344 kes  Update some manpages and add bat manpage.
1345 kes  Make a first cut at converting bacula.spec.in for bwx-console
1346      and bgnome-console.
1347 kes  Apply patch from John Goerzen to add hostname as fourth argument
1348      to make_catalog_backup script.
1349 kes  Fix typos I introduced into bsmtp.c
1350 kes  Make pm_strxxx() routines handle input of NULL pointer. This
1351      is to protect from NULL pointers returned from SQL databases.
1352 kes  Correct typo in bacula-sd manpage as pointed out by John Goerzen.
1353 kes  Add more debug to FIFO code -- fix fifo regression test.
1354 23Apr07
1355 kes  Implement posix_fadvise in FD, and for reading spool files in SD.
1356 kes  Add thread timer to bnet_connect() to break from OS if wait time
1357      expires.
1358 22Apr07
1359 kes  Update Win32 build to include new files, new symbols, and    
1360      renamed files.
1361 kes  Implement socket level heartbeat (tcp_keepidle)
1362 ebl  Commit File relocation patch
1363 kes  Make bat have 'make install' target.
1364 kes  Warn during install if old gnome-console binary found.
1365 kes  Warn during install if old wx-console binary found.
1366 kes  Add -8 option to bsmtp command line to add content type utf-8. 
1367      Fixes bug #809. (Character coding problem in bsmtp).
1368 kes  If < is found in target (from, to, cc) then do not enclose the
1369      target in < >  in bsmtp. Fixes bug #772  (malformed address).
1370 kes  When printing certain items in dbcheck, stop after 300000.
1371      Fixes bug #822. (dbcheck loops).
1372 kes  Incorrect status in Dir after waiting for mount with poll set.
1373      Fixes bug #825.
1374 21Apr07 
1375 kes  Extend idea of Prefer Mounted Volumes to mean a volume about
1376      to be mounted.
1377 kes  Print waiting to reserve a device every 5 mins.           
1378 20Apr07
1379 kes  Don't call close_part in label.c if tape and relabel.
1380 kes  Don't free volume if busy in close() -- should help with
1381      bug 801.
1382 ebl  Fix #824 RunScript bug (After script could be execute twice)
1383      Now, Before Script can use RunsOnSuccess and RunsOnFailure options
1384      By default (like before) RunsOnSuccess=true and RunsOnFailure=false
1385      Add a regression script to test RunScript
1386 19Apr07
1387 kes  Correct usage of MTIOCLRERR ioctl for clearing persistant errors
1388      on Solaris.
1389 18Apr07
1390 kes  The bgnome-console (gnome-console) and bwx-console (wx-console) are
1391      deprecated. No additional bugs will be fixed, and they will be dropped
1392      in a future release (probably 2.4.0).
1393 kes  Change name of wx-console to bwx-console to make it more Bacula
1394      unique.
1395 kes  Change the name of gnome-console to bgnome-console to make it
1396      more Bacula unique.
1397 14Apr07
1398 kes  Some time in March, a Feature Request with patch from Jorj Bauer
1399      <jorj@seas.upenn.edu> was committed by Landon (with my approval).
1400      It implements:
1401      The ability for the director to validate a Client (FD) CN against
1402      an arbitrary set of patterns rather than the hostname, with
1403      A new 'TLS Allowed CN' set of directives which are implemented
1404      in the Client resource.  Then pattern matching is used in place
1405      of hostname matching against the Certificate's CN. As an example, we
1406      have certificates which (a) use a local CA, and (b) have a CN of the
1407      form client_123.
1408 kes  Add new/changed entry points to Win32 build
1409 kes  Create unaccepted-projects for projects that are not accepted.
1410 kes  Simplify locking in the reservations system.
1411 kes  Add more debug code in reservations.
1412 kes  Make sure error condition on reserving a volume is handled correctly.
1413 kes  Correct handling of volume_in_use.
1414 kes  Correct handling of initializing a device.
1415 kes  Move handling of broadcasting releasing a device into release_device().
1416 kes  Correct attaching dcr to dev so that it is only done if device
1417      is properly initiated.
1418 12Apr07
1419 kes  Locking debug level tweaks in SD.
1420 kes  Tweak new Volume code.
1421 11Apr07
1422 kes  Add exec external-command [wait-seconds] to bconsole. This
1423      executes the external-command.  Note! normally external-command
1424      should be enclosed in double quotes.
1425 kes  Turn the .die command on only if DEVELOPER is defined -- i.e.
1426      it should normally be off in a production system.
1427 10Apr07
1428 kes  Implement die command for SD so that we can force it to dump.
1429 kes  Implement SD lock debug code.
1430 kes  Implement new algorithm for keeping Volume list in SD.  It
1431      is now owned by the device.
1432 04Apr07
1433 kes  Implement new code for freeing in use volumes that should 
1434      resolve if not all, some of the problems of multiple drive
1435      tape conflicts described in bug 801.
1436 03Apr07
1437 kes  Fix gui/bacula-web/images files in svn.
1438 kes  Turn on FreeBSD/OpenBSD code to set EOT model on tape.
1439 02Apr07
1440 ebl  Fix a bug in batch mode (in string escape)
1441 kes  Correct migration prune SQL typo that crept in in a    
1442      recent 2.1.x change.
1443 01Apr07
1444 kes  Move bnet_despool() into class in bsock.c
1445 kes  Modify job report to include director name and Build OS.
1446 kes  Move drop root privilege and check_catalog() before fork.
1447 kes  Add update database scripts (version 9 to 10) to updatedb directory.
1448 31Mar07
1449 ebl  Check size and age of each file after its backup to see if
1450      it has changed during backup, if 'checkfilechanges' is set.
1451      The FD will do an extra check (stat(2)) after
1452      each file backup. mtime, ctime and size are compared with
1453      'before backup' information. If time or size mismatch, an
1454      error message will be generated. You must upgrade FD to use it.
1455 30Mar07
1456 kes  Make database name and user configurable
1457      --with-db-name=xxx --with-db-user=xxx
1458 kes  Add back database type to message.c for debugging.
1459 29Mar07
1460 kes  Implement dir_sql() which issues an SQL query.
1461 kes  Modify bat medialist to use dir_sql() and do some minor C++
1462      formatting as well as eliminating a number of pointers, simplifing
1463      the code.
1464 28Mar07
1465 kes  Fix some of the mtx-changer grep commands for tape label readers.
1466 kes  Convert a number of bsendmsg into the appropriate send/warning/error
1467      message class calls.
1468 kes  Suppress the using database message in the .sql command.
1469 kes  Correct an incorrect bnet_tls_client prototype -- patch from Martin.
1470 27Mar07
1471 kes  Add context menu for floating a window.
1472 kes  Some minor cleanup and name changes in qt-console
1473 kes  Add doing mt setblk 0 in Win32 mtx-changer.
1474 kes  Apply Martin's bug fix to move definition of ENODATA for 
1475      FreeBSD to bsock.c
1476 ebl  Add a BUSY handler to sqlite to be able to use multi_db = 1 with
1477      sqlite2 and sqlite3.
1478 26Mar07
1479 kes  More pruning cleanup.
1480 kes  Turn on wait_for_drive by default in mtx-changer.
1481 kes  Turn on Batch insert code by default as it now passes regression.
1482 kes  Add ./configure --enable-bat to enable building of Bat.   
1483      No install yet though.
1484 25Mar07
1485 kes  Implement a new .sql command for bat.
1486 kes  Implement code to turn off pruning in obtaining the next volume.
1487      Pruning is turned off for the status dir command, but turned on
1488      for SD requests and for the list nextvolume command.
1489 24Mar07
1490 kes  Correct Qmsg() that was not updated correctly when committing a
1491      previous change (probably the recent TLS patch).
1492 23Mar07
1493 kes  Write new subroutine is_volume_purged() that explicitly checks
1494      if the Volume is purged, and if so marks it as such. This should
1495      resolve problems reported about needing to mount twice to recycle
1496      volumes.
1497 kes  Rewrite pruning algorithm to do more work in the SQL engine, and
1498      to pass a list of JobIds to be deleted to SQL.  Also, minimize the
1499      amount of duplicated code.     
1500 kes  Do volume pruning only for the Media Type desired (reduces pruning time
1501      if multiple Media Types are in the same pool).
1502 kes  Implement more detailed info in the Job report for the Bacula version
1503      and architecture.
1504 kes  Switch from POOLMEM to POOL_MEM (a real class) in ua_prune.c and
1505      ua_purge.c.
1506 ebl  Add bbatch tool to bench database and insert mode.
1507      Fix sql quote stuff in batch mode
1508      Fix sql stuff for mysql
1509 22Mar07
1510 kes  Correct problems with am/pm scheduling. Fixes bug #808.
1511 kes  Implement new prunning code that prunes up to 1000 jobs at
1512      the same time.  The same technique can be applied to a number
1513      of other prune/purge subroutines.
1514 kes  Add an insanity check when starting a new tape job to ensure
1515      that the tape position has not been changed. If so fail the
1516      job.
1517 kes  Fix Win32 build for dlls to add the folllowing:
1518      src/lib/bsock.c -- new file with new entry points
1519      src/lib/dlist.c  -- new entry points
1520      src/cats/sql_create.c -- new entry point
1521      src/cats/sql_cmds.c -- new DATA item exported
1522 21Mar07
1523 ebl  batch mode cleanup bscan-test is ok now.
1524 kes  Implement SD code to check length of disk volume before appending.
1525 18Mar07
1526 kes  Correct return status on db_batch... routines.
1527 kes  Add call to db_write_batch_file_records() to migration code.
1528 ebl  Fix AfterJob timing
1529 kes  Move the checking of the database in initializion of the Director
1530      to after we drop privileges.  This avoids the need for both root
1531      and bacula access to the DB.
1532 kes  Correct a misplaced variable definition in src/filed/backup.c
1533 kes  Correct how the new batch insert db_create_attributes_record()
1534      uses the arguments.  Caused a seg fault in bscan.
1535 kes  Implement lock() and unlock() methods in DEVICE class.
1536      Implement block() and set_block(xx) methods in DEVICE class.
1537 kes  Modify bnet_connect() so that it uses time() to check for the
1538      wait time expiring (on some OSes, some system calls may not
1539      return immediately).
1540 kes  Modify Verify to obtain the previous JobId when it is actually
1541      running rather than at schedule time (as it was in 1.38.x).     
1542 kes  Fix src/job.c to handle MaxWaitTime correctly.  This should
1543      fix bug #802.
1544 kes  When checking pid in pid file, continue running if the pid is
1545      the same as ours. This occurs on IRIX after a system crash.
1546      Fixes bug #797.
1547 10Mar07
1548 kes  Extend new GUI API.
1549 kes  Make the ua structure a class, and implement send_msg(),
1550      error_msg(), warning_msg(), and info_msg().
1551 08Mar07
1552 kes  Apply fix from for building wx-console on the Mac from
1553      bug #798.
1554 kes  Implement new select mechanism for GUI programs.
1555 kes  Reorganize initialization of stackedWidgets in bat.
1556 07Mar07
1557 kes  Add updated nagios plugin supplied by Christian Masopust.
1558 05Mar07
1559 kes  More bat implementation.
1560 kes  File migrate bug with Pool Occupancy using mediaid instead
1561      of jobids.  Fixes bug #795.
1562 kes  Fix orphaned buffers in filed backup and verify due to
1563      crypto buffers not freed during errors.  Fixes bug #789.
1564 kes  Extend new GUI api code to tree commands.
1565 kes  Ensure that tree and dot commands check console ACLs.
1566 kes  Permit marking directory with trailing slash.
1567 kes  Allow 20 console connections (instead of only 10).
1568 04Mar07
1569 kes  Add smartctl call to bacula-sd.conf as an example of getting
1570      tape alert info.
1571 02Mar07
1572 kes  Modify jobq.c to let simultaneous restore jobs run. This may 
1573      cause them to fail if they cannot get a drive.
1574 kes  Add Client Connect Wait to Storage daemon to permit users to
1575      modify the time the SD waits for a FD connection.
1576 29Feb07
1577 kes  Correct virtual changer check which was backwards. This caused
1578      volumes to be unloaded into slots already occupied.
1579 28Feb07
1580 kes  Apply Command ACL filter to JobId list in restore command.
1581 kes  Correct typeo in var.c patch.
1582 27Feb07
1583 kes  Don't let Bacula prune File or Job records for the current Job.
1584 kes  Fix variable substitution pad + inc bug reported (with patch)
1585      in bug #791.
1586 26Feb07
1587 kes  Correct SQLite log table index as reported by Luca Berra.
1588 24Feb07
1589 ebl  fix fifo stuff, bacula tries to rewind the fifo... Thanks to Andreas
1590 22Feb07
1591 kes  Begin implementing new comm signals for API.
1592 kes  Fix a few places in lib/message.c where the open fd may 
1593      not be zeroed.
1594 kes  Continue implementing lib/bsock.c (real class).  Make jcr,
1595      who, host, and port private. There are new methods to access
1596      them for non-class use. This required touching a number of files.
1597 21Feb07
1598 kes  Add LANG=C to autoconf/randpass so it works with languages other
1599      than English.  Fixes bug #788.
1600 20Feb07
1601 ebl  Revert ClientRunBeforeJob to old position as in 1.38.X.
1602      This fixes bug #780
1603      You will not be able to generate Include/Exclude list any more.
1604      It will be fixed soon.
1605      If you want to use this, you can apply
1606      trunk/bacula/patches/testing/clientrunbeforejob_can_generate_include_exclude_list.patch
1607 19Feb07
1608 kes  Restore of sockets created false error messages because Bacula
1609      no longer restores sockets, but the code was still trying to
1610      set the attributes on a non-existent file. Reported by a user.
1611 ebl  finish RecyclePool feature
1612      Media will takes Pool.RecyclePool
1613      when moving from Scratch to a Pool or when user will do
1614      update volume=xxx frompool
1615      To use it, add RecyclePool = aPool to your Pool resource
1616         Pool {
1617                 Name = Default
1618                 RecyclePool = Scratch
1619                 ...
1620         }
1621      TODO: update manual
1622 kes  Expand new BSOCK class adding signal() and new BNET signals.
1623 kes  Begin enhancing the dot commands adding a new API function
1624      that returns more information and will make it easier
1625      to interface to the Director from a program.
1626 18Feb07
1627 kes  Make DEVICE fd private. Its new name is m_fd, and can be
1628      obtained with dev->fd() outside the class.  This is the
1629      first of many DEVICE members to be made private.
1630 kes  Implement Michael Renner's idea on having a virtual disk
1631      changer. I made some minor modifications (e.g. I did not
1632      implement the Virtual Changer directive, but simply set
1633      the Changer Command to an empty string.
1634 17Feb07
1635 kes  Implement a BSOCK send() method that writes the whole record
1636      in a single write() request rather than in two.
1637 ebl  add update volume=xxx recyclepool=yyyy
1638      volume takes recyclepool from pool when using update volume=xxx from pool
1639 16Feb07
1640 kes  Fix encryption deblocking bug, which caused some restored files
1641      to be truncated. This fixes bug #763.
1642 kes  Add FD event sequence order prepared by Eric -- for RunScripts.
1643 kes  Fix 12am/pm bug as reported in bug #782 -- scheduler problem.
1644 13Feb07
1645 kes  Apply Eric's ClientRunScriptAfter patch to 2.0 and 2.1.
1646 ebl  Use btime_t instead of uint64_t in media patch.
1647 11Feb07
1648 kes  Optimize the use of the database a bit in the Status dir command.
1649      Only open it when needed, ensure that if any previous database
1650      was opened, it is closed.
1651 10Feb07
1652 kes  Correct VolCatBytes bug from media patch.
1653 kes  Apply patch from bug #612 by Rudolf Cejka to speedup pruning
1654      in the case of orphaned records.
1655 kes  Modify dbcheck to handle orphaned JobMedia, Path, Filename,
1656      and File records in 300K chunks to be more efficient. This
1657      idea came from Juan Luis Frances (if I remember right).
1658 kes  Apply Eric's scratch patch that moves a purged Volume to
1659      the RecyclePool.  Question: how is RecyclePool set? what
1660      happens to the ScratchPool?
1661 kes  Apply Eric's media patch that collects read/write media
1662      times as well as byte counts.  This patch requires a
1663      simultaneous upgrade of the DIR and SD.  Note, there
1664      should be some way to turn off timing. I'm not sure
1665      times are in Bacula units.
1666 kes  Apply Eric's batch-insert patch.
1667 09Feb07
1668 kes  Update projects list.
1669 08Feb07
1670 kes  Implement Include/Exclude file lists in FD as dlists using
1671      the new dlistString class. This permits efficiently having
1672      large include/exclude lists and completes project Item 25.
1673 kes  Fix dird/ua_cmds.c so that a cancel command checks if the
1674      console is authorized to cancel the job.  This fixes bug 
1675      #767.
1676 kes  Modify SD so that the VolCatJobs medium record is updated
1677      at the beginning of a Job rather than the end.  This
1678      fixes bug #775 where exceeding MaxVolJobs caused jobs
1679      to fail.
1680 kes  Added a mutex around getting and setting Volume information
1681      so that multiple simultaneous jobs will single thread.
1682 07Feb07
1683      Switch to using Subversion
1684 kes  Remove src/pygtk-console/ from configure
1685 06Feb07
1686 kes  Delete src/lib/btree.c from win32 build, then add rblist.c
1687      plus the entrypoints.
1688 kes  Apply patch supplied that corrects debug print
1689      in canceling jobs for max run time.  Supplied as
1690      part of bug #621, which was previously fixed.
1691 05Feb07
1692 kes  Test on job_canceled() and sd_msg_thread_done inside
1693      loop starting the message thread to avoid a race condition.
1694      Fixes bug #771.
1695 kes  Remove rl_catch_signal from console.c as it conflicted
1696      with the header definition. Fixes bug #765.
1697 ebl  Fixes bug #766 about RunsOnClient = Yes (case sensitive)
1698 04Feb07
1699 kes  Clarify some stored/acquire messages to indicate if the
1700      problem is with read or append.
1701 02Feb07
1702 kes  Fix memory leak with storage ids in cats/sql_get.c
1703 kes  Terminate watchdog earlier to avoid reference to released
1704      memory -- reported by Jason Austin.
1705 kes  Move closing the database from jobq.c to the director daemon
1706      termination routine. This fixes memory leaks for shadow jobs
1707      (i.e. migration jobs).
1708 kes  Free up the unique jobid chain items in migrate.c.  This fixes
1709      a memory leak problem.
1710 kes  Convert some ugly looking for statements to use foreach_alist
1711      in findlib/find.c.  This will facilitate converting the structures
1712      to use dlist (for large include/exclude lists).
1713 kes  Fix a bug in the btree.c and btree.h routines, then rename them
1714      rblist and add them to be built in src/lib.  Include some new
1715      methods written by Rudolf Cejka that make the code more readable
1716      (hides some of the ugly casting).
1717 kes  Add set_next() and set_prev() methods which make the code much more 
1718      readable. Also add a new dlistString class that facilitates storing
1719      strings in dlists.  To be used in the large include/exclude lists.
1720 kes  Make some trivial modifications to lib/tree.h that use rblist
1721      rather than dlist for storing the tree links. This was suggested
1722      by Rudolf Cejka.  The result of this is that the restore tree now
1723      uses red-black binary trees rather than simple linked lists. This
1724      should give rather dramatic speed improvements for directories
1725      contining large numbers of directories/files (more than 10000).
1726 28Jan07 
1727 kes  Fix maxruntime bug #621.
1728 26Jan07
1729 ebl  Implement the include JobID in spool file name project.
1730 kes  Reorder projects file in order determined by Jan 2007 vote.
1731 kes  Implement item #12 on project list -- quick release of FD by
1732      the SD.
1733 kes  Fix open of SQLite3 db where user does not have write permission
1734      so that DIR does not crash. Fixes bug #761.
1735 25Jan07
1736 kes  Add back missing @ in Win32 Makefile.
1737 kes  Change 'Device not configured to autolabel' from INFO
1738      to WARNING.
1739 kes  Fix jobq.c to restart failed jobs when Reschedule Times = 0 
1740      which should restart an indefinite # of times.
1741 kes  Fix configure --help to print --with-mysql[=DIR]. Same for
1742      other DIR specifications.
1743 23Jan07
1744 rn   Fix msvc build problems. Fix bacula.dll exports for msvc build.
1745      Fix path quoting in SQLite scripts.
1746      Fix problems with SHGetFolderPath.
1747 19Jan07
1748 kes  Create patches/2.0.1-restart.patch. Fixes bug #755.
1749 18Jan07
1750 kes  Fix Job restart on error bug that promotes an Inc to a Full
1751      backup.  This should fix bug #755.
1752 kes  Add qt-console and first cut of code.
1753
1754 Version 2.0.1
1755 12Jan07
1756 kes  Fix Bacula->Documentation link on Win32 to point to index.html
1757      instead of bacula.html. Fixed bug #750.
1758 kes  Return JobId in db_get_job_record() when JobId==0. This should
1759      fix bug #741.
1760 kes  Do not release source pointers when restarting a failed job.
1761 11Jan07
1762 kes  Add dynamic dll entry point for SHGetFolderPath to Win32 code.
1763      This *should* fix bug #747.
1764 kes  Modify winbacula.nsi to substitute with g bin_dir_cmd. Should fix
1765      bug #742.
1766 09Jan07
1767 kes  Modify USTORE constructor to set an empty store_source string, 
1768      and don't copy the store_source string in a cancel.  Hopefully
1769      this will fix Arno's seg fault, bug #744.
1770 kes  Add back code to disable conio in configure. Fixes bug #743.
1771 kes  Correct the Options scanner in the FD to correctly handle  
1772      SHA1 option, which was eating the next option.  Reported by    
1773      Sebastien Guilbaud.
1774 kes  Add code to indicate when the SD is spooling, spool wait, and 
1775      despooling as requested by Alan Brown.
1776
1777 Version 2.0.0 released: 4 January 2007