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