]> git.sur5r.net Git - bacula/bacula/blob - bacula/technotes-2.1
kes Fix creating first JobMedia record during Migration to include
[bacula/bacula] / bacula / technotes-2.1
1               Technical notes on version 2.2
2
3 General:
4 14Feb08
5 kes  Fix creating first JobMedia record during Migration to include
6      proper index. This caused slow restores of migrated jobs.
7 10Feb08
8 kes  Fix bug #1047, which had a heap overrun when stripping certain paths,
9      and do not strip paths on symbolic links.
10 kes  Set catalog backup database and user name from values specified on 
11      the ./configure line.
12 ebl  Apply patch to corrent bug #1031, about wrong pool source information
13      in job report.
14
15 Release Version 2.2.8
16 25Jan08
17 kes  Apply patch from Martin to correct bug #1040, bscan sets existing
18      ClientId to zero.
19 kes  Fixed important spelling error in doc -- bug #1045.
20 23Jan08
21 kes  Move initialization of read/write res lock earlier in the code.
22      This fixes the crash with a null conf file. This fixes bug
23      #1030.
24 kes  Redefine CURES in lib/parse_conf to be URES and move it all
25      into lib/parse_conf.c -- this responds to bug #1042, but does
26      not fix it. The fix is not to compile with FORTIFY_SOURCE.
27 kes  Backport fix de-referencing a NULL pointer in the scanner from
28      the trunk SVN. I don't think this was reported as a bug.
29
30 Beta release Version 2.2.8
31 09Jan08
32 kes  Re-enable the new job code editing (%f).
33 08Jan08
34 kes  Fix bsnprintf for float point numbers. I broke recently when
35      parameterizing some variables. This fixes bug #1036.
36 03Jan08
37 kes  Move Heartbeat documentation from Job to Director resource.
38      This fixes bug #1033.
39 02Jan08
40 kes  Fix existing switch drive SD code to call autochanger to release
41      any old volume. This must be done to keep the autochanger from
42      releasing subsequently newly reserved volumes in doing a close().
43      This should possibly fix bugs #1032 and #1018.
44 kes  Apply big backport of current SVN SD code that corrects a number
45      of race conditions. This is a first step in fixing bug #1018.
46 29Dec07
47 ebl  Fixes bug #1028 where "Selection Type" option was not usable 
48      with JobDefs.
49
50
51 Release Version 2.2.7
52 24Dec07
53 kes  Partial back out (disabled) %f job code editing because it
54      does not build on Win32.
55 kes  Fix seg fault Frank Sweetser reports in regression testing
56      on his systems. The problem was that the original author of
57      bsnprintf.c did not take into account the side effects of
58      using ++x in the argument to a #define.
59 14Dec07
60 kes  Apply patch from  Michael Stapelberg <michael@stapelberg.de>
61      that implements double quoting include names in conf files,
62      and also allows piping input by having the first character 
63      be a vertical bar (|). 
64 kes  Apply patch from Bastian Friedrich <bastian.friedrich@collax.com>
65      that implement %f in RunScripts to pass the FileSet name.
66 kes  Skip leading | when lex input comes from a pipe as suggested
67      by Michael Stapelberg <michael@stapelberg.de>.
68 13Dec07
69 kes  Apply patch for bsmtp Win32 daylight savings time fix supplied by
70      Nerijus Baliunas <nerijus@users.sourceforge.net>
71 10Dec07
72 kes  This patch corrects a problem where the maximum concurrent storage
73      jobs counter gets out of sync during restore jobs causing jobs to
74      'wait on max Storage jobs'.  This patch fixes bug #1009.
75 08Dec07
76 kes  Add new include to postgresql.c suggested by Marc Cousins so
77      that it compiles correctly with pgre version 8.3.  Also fix
78      misuse of %x with pointer (should be %p).
79 03Dec07
80 kes  This patch fixes bcopy so that it produces correct Volumes.
81      It fixes bug #1022.
82 kes  This patch eliminates spurious output to the console during a VerifyVolume
83      job that contains encrypted data. It fixes bug #1024.
84 02Dec07
85 kes  This patch prevents the 'status dir' command from trying to use a scratch
86      volume and possibly moving it from one pool to another.  This patch fixes
87      bug #1019.
88 30Nov07
89 kes  Fix --archivedir addition to configure. Replace it with
90      --with-archivedir in configure.in  This fixes the regression
91      test builds.
92 kes  This patch fixes bug #1012 where the job is canceled because
93      of Max Run Time exceeded when the job has not yet started.
94 29Nov07
95 ebl  Apply Richard Mortimer patch that fixes #1016 when there are more than
96      one 'part' to write.  Instead of each part being stored on disk,
97      written to DVD, then deleted from disk, all parts are written to disk,
98      and only the last is written and deleted from disk.
99 27Nov07
100 kes  Correct typos in disk-changer.in
101 25Nov07
102 kes  This patch fixes the status command to include the formating string for
103      JS_AttrInserting.  It fixes bug #1021.
104 kes  This patch should fix the Mac OS X build problem on the latest
105      Darwin, where sys/types.h was not included correctly (apparently
106      due to a change in the Mac headers).  The solution was to explicitly
107      ensure that it is defined for the ./configure.
108      This patch also has a rebuild of configure that includes the Debian
109      qt4 patch to check for qmake-qt4. This patch fixes bug #1020.
110 kes  This patch should ensure that queued messages to the console are
111      displayed as soon as possible.  It should fix bug #1007, but has been
112      reported not to work.
113 14Nov07
114 kes  This patch fixes the infinite loop when trying to increase the
115      maximum number of volumes in a Pool during the add command.
116      This patch fixes bug #1008. 
117           
118 Release Version 2.2.6
119 09Nov07
120 kes  Get fix for joblist bug in bat from trunk.
121 04Nov07
122 kes  This patch fixes bug #1003 where putting the message output from
123      a Verify job into the catalog results in a recursive loop.  The problem
124      seems to show up only with postgresql (to be verified).
125 02Nov07
126 kes  Fix bug #942 where lots of emails where generated when the heartbeat
127      interval was low and Bacula wanted a different tape from the one in
128      the drive.
129 26Oct07
130 ebl  Apply 2.2.5-lastwritten.patch to fix the LastWritten field 
131      which was updated during a restore (or a reading migration) bug #982
132 24Oct07
133 ebl  Use qmake-qt4 instead of qmake when available (debian system). 
134 22Oct07
135 kes  Add a security warning to src/cats/make_catalog_backup.in indicating
136      that passing the password via the command line (arg 3) is insecure.
137      This responds to bug #990 (it doesn't fix it).
138 kes  Apply 2.2.5-postgresql-errors.patch
139 kes  Remove unneeded File table index on JobId, which is already
140      present as the first index of another multi-index.
141 19Oct07
142 kes  Set default debug_level to zero. This corrects bugs #991 and #993. 
143 kes  Fix a crash in bat when it cannot connect to the Director for example
144      if the Director is not running.
145 16Oct07
146 kes  Activate Close button on tray-monitor window. This fixes
147      bug #986.
148 12Oct07
149 kes  Fix spurious warning message printed when creating a volume with
150      a LabelFormat. This fixes bug #976.
151
152 Release Version 2.2.5
153 09Oct07
154 kes  Add JobId in place of Job name in all the Jmsg() output.  
155 kes  Correct the APP_DESC for the Win32 storage service (remove an e).
156 06Oct07
157 kes  Add new SD despooling attributes and Dir inserting attributes 
158      job status codes.  This fixes bug #961.
159 kes  Fix Win32 drive display in bat version browser. Fixes bug #962.
160 05Oct07
161 kes  Fix doc issue. This fixes bug #963.
162 kes  Fix listing performance problems in bat. Pointed out by 
163      Chris Howells.
164 ebl  Fix replace on restore. This fixes bug #969
165 kes  Fix bat code that tests for Win32. This should fix bug #968
166 kes  Query 5 list wrong Vol after migration. This fixes bug #960
167 04Oct07 
168 kes  Correct lib/Makefile.in to include enh_fnmatch.o that was removed
169      in back porting from 2.3.x
170 03Oct07
171 kes  Backport almost 4000 lines of 2.3 code that fixes a number of bugs.
172      The details are included in the notes in this file.
173 28Sep07
174 kes  Backport 2.3 code that fixes: it fixes incorrect or incomplete error
175      messages; it fixes a problem opening the SQLite3 database when multiple
176      simultaneous jobs were running; it fixes a bug with certain versions of
177      MySQL where batch inserts failed because of table name character case
178      (upper/lower) differences.
179 kes  Fix race condition that drops final block written to volume.
180      This happens in rare cases with multiple simultaneous jobs 
181      when the Volume fills.  This fixes bug #964.  May be related
182      to bug #935 and possibly #903.
183 27Sep07 
184 kes  Fix FD->SD authorization failure, which was due to spurious
185      wakeups from a pthread_cond_timedwait().  Simply check the
186      predicate before continuing.  This fixes bug #953
187 dvl  Add new configuration item --archivedir
188 dvl  Adjust regression tests to use tmp not /tmp.  This will allow
189      multiple concurrent runs of the regression tests.
190 28Sep07
191 kes  Eliminate more strerror() and replace with bstrerror().
192 kes  Remove BSD getopt and replace with unrestricted IBM version.
193 kes  Fix Win32 build for changed calling sequences.
194 27Sep07 
195 kes  Fix FD->SD authorization failure, which was due to spurious
196      wakeups from a pthread_cond_timedwait().  Simply check the
197      predicate before continuing.  This fixes bug #953.
198 kes  Add const char where needed (more to do).
199 26Sep07
200 kes  Setup SQLite busy handler before doing queries. Fixes bug #967.
201 kes  Don't overwrite error message in check_tables_version.
202      Fixes bug #966.
203 kes  Unlock batch insert tables with same calls used elsewhere.
204 kes  Allow starting 59 jobs a second.
205 kes  Make SD session key more random.
206 kes  Add retry for SQLite opening db if it fails. Probably helps
207      for bug #967.
208 kes  Suppress extra error messages during batch insert failure.
209      Fixes bug #966.
210 kes  Put some FD auth code on dbglvl rather than fixed.
211 kes  Return insert attributes error message in db msg buffer to avoid
212      false error messages. Helps fix bug #966.
213 kes  Separate batch init error messages. Probably helps fix bug #966.
214 kes  If Dir gets an error during inserting attributes, cancel SD.  
215      This reduces unnecessary error messages.
216 24Sep07 
217 ebl  Cleanup batch insert code. Probably fixes bug #965.
218 23Sep07 
219 kes  Turn off some code when batch insert not enabled.
220 kes  Edit FD name in connect error messages.
221 22Sep07
222 kes  Add code to handle tray monitor separated from Win32 FD.
223 kes  Fix display of Win32 tray monitor after reboot. Fixes bug #952.
224 20Sep07
225 kes  Fix ANSI tape labeling.  This fixes bug #954.
226 kes  Increase the max block size to 4MB fixes bug #957.
227 kes  Apply 2.2.4-poll-mount fix, that resolves bug #908 where a tape 
228      is not properly mounted (recognized) during a poll.
229 kes  Apply 2.2.4-verify patch that resolves bug #958.  A Verify catalog 
230      Job that has differences reports Verify OK.
231 ebl  Fixes #955 bug seg fault in Dir introduced  with regexwhere relocation.
232
233 Release Version 2.2.4
234 14Sep07
235 kes  Increase size of name string when FD making connection to SD.
236      May fix bug #953.
237 13Sep07
238 kes  Add waits to multiple exit detection code to try to force pid
239      file to always be deleted.
240 kes  Restore good dev.tar.gz to rescue set appropriate binary property.
241      This fixes bug #950.
242 kes  Fix seg fault in error exit of acquire_for_read after unsuccessfully
243      trying to switch drives by checking for blocking before unblocking.
244      Fixes bug #906.
245 kes  Cancel storage daemon in all cases where FD reports error. This
246      should fix virtually all cases of bug #920.
247 12Sep07
248 kes  Fix error message that was clobbered when Dir tells SD it does not
249      have write permission on Volume.  This should fix a minor point
250      in bug #942, but not the main problem.
251 kes  Add code to cancel job in SD if FD connection fails. This should
252      fix bug #920.
253 kes  Add code in FD exit to prevent loops and a crash on FreeBSD.
254 kes  Fix migration code to get correct Volume name with multiple volumes 
255      by skipping |.  Fixes bug #936.
256 kes  Implement patch supplied by Landon to fix bug #944 where using
257      TLS with bconsole uses 99+% of the CPU.
258 kes  Note, you need GTK >= 2.10 to be able to link the Tray Monitor
259      program.
260 kes  Move patches into patches directory.
261 11Sep07 
262 ebl  Fix bug #946 about 'bacula-dir -t' which doesn't works
263      as expected.
264 09Sep07 
265 ebl  Using 'm' in bconsole will show messages like before,
266      and not memory usage.
267
268 Release Version 2.2.3
269 kes  Note, you need GTK >= 2.10 to be able to link the Tray Monitor
270      program.
271 09Sep07
272 kes  Fix bug #935, and probably also bug #903 where files were not
273      restored. MediaId was not properly set in JobMedia record after 
274      a Volume change.
275 07Sep07
276 kes  Add ./configure search in qwt-qt4 for qwt package
277 kes  Apply Martin Simmons patch that should turn off the new API usage
278      when batch insert is turned off allowing building on older
279      PostgreSQLs.
280
281 Release Version 2.2.2
282 04Sep07
283 ebl  Detect if new PosgreSQL batch insert API is present.
284 kes  Correct incorrect mempool call causing Director crash.
285 sb   Update spec files for 2.2.1 release
286
287 Release Version 2.2.1
288 30Aug07
289 kes  Update POTFILES.in
290 kes  Cleanup a few underquoted AC_DEFUNs in configure   
291 kes  Apply patch from Martin Simmons that adds a test for va_copy to
292      ./configure
293 29Aug07
294 kes  Fix bug #921 by increasing the number of tries to create a new volume
295      from 11 to 100.
296 kes  Rework bmsg in ua_output to use va_copy() so that bvsnprintf()
297      can be called multiple times.  Implement a version for machines
298      without va_copy() that gets a big buffer.
299 25Aug07
300 kes  Integrate more portable zone offset code into bsmtp.c
301      Submitted by Attila Fülöp.
302 24Aug07
303 kes  Fix bad SD->FD return status reported by 
304      (James Harper) <james.harper@bendigoit.com.au>
305 ebl  Fix a bug in read_close_session which return random status
306      thanks to James Harper
307 23Aug07
308 kes  Fix (hopefully) bug #930 by doing a db_escape_string() on file  
309      and directory names during restore of single file/directories.
310 kes  Add sanity checks to .sql command when string is empty. Hopefully
311      that will resolve Dirks Director crash.
312 22Aug07 
313 kes  Apply patch submitted by Martin Simmons that corrects a seg fault
314      in the bsmtp chat subroutine when debug is >= 10.
315 21Aug07
316 kes  Fix Director crash when running bat SQL queries.
317 kes  Add David's notes on Item 8: Copy pools.
318 18Aug07
319 kes  Rework projects file to be current and ready for a vote.
320 kes  Enhance lex scanner error message.
321 17Aug07
322 kes  Tweak LICENSE file to mention BSD code.
323 kes  Fix bat.pro.in so that it includes the OpenSSL libraries only
324      if specified on the ./configure.
325 kes  Add first (not yet tested) cut of bcomm to the qt-console directory.
326      This class is intended to allow us to open a second bsock to the
327      Director while in the restore subdialog.  
328 16Aug07
329 kes  Fix configure to create bat Makefile before creating dependencies.
330 kes  Eliminate the egg files from the tray-monitor. Use gtk calls.
331 kes  Add a tooltip to the tray monitor.
332 dvl  Set the Director's PID file before dropping privs. This fixes
333      bug #923.
334 15Aug07
335 kes  Update AUTHORs file
336 kes  Increase the default max concurrent jobs to 20 in FD and SD to
337      correspond with the default .conf files.
338 kes  Rewrite the Win32 service routines.  This eliminates the 3 copies
339      some different, of the same file created by RN when porting the 
340      Win32 SD and Dir.
341 kes  Rearrange some of the Win32 directories and the placement of the files
342      in them.
343 kes  Set DEVELOPER flag in version.h
344
345 ========================================================================
346 Release Version 2.2.0
347 09Aug07
348 kes  Apply a second doc patch from Marc.
349 kes  Apply a doc patch from Marc Schiffbauer <marc@schiffbauer.net> that
350      improves the tips section that discusses how to setup multiple
351      simultaneous jobs.
352 08Aug07
353 kes  Update bat README file.
354 kes  Apply patch from Allan Black <Allan.Black@btconnect.com> that     
355      corrects a typo in the Recycle status check in db_find_next_volume().
356      This will probably fix a number of annoying problems with multiple
357      Recycled volumes.
358 kes  Modify most of dird/msgchan.c to use bsock class calls rather than
359      bnet calls -- no functionality change.
360 07Aug07 
361 kes  Modify the Verify output to specify if files are missing on    
362      the Volume(s) or disk.  Fixes confusion in bug #916.
363 kes  When more than one Volume is read in a migration job, the last
364      Volume bytes reported are from the last read volume rather than
365      the last written volume. Fixed. This fixes bug #910.
366 kes  Fix display of Recycle flag after update volume=foo recycle=yes.
367      It previously printed New Recyle flag is: no. This fixes bug
368      #917.
369 06Aug07
370 kes  Correct seg fault when switching tape drives during restore.
371 kes  Commit uid_gid_name.c (replacement for idcache.c), but will not
372      be used until after 2.2.0 release.
373 04Aug07
374 kes  Remove fnmatch() in SD that permitted wild card specifications.
375      This fixes bug #914.
376 31Jul07
377 kes  Fix %g in filename returned by SQL for browse tree reported by
378      Dirk.
379 kes  Fix configure so that it puts config.out in the cwd rather than
380      in src/qt-console
381 kes  Attempt to fix the locking problem reported by Eric in bug #906.
382 kes  Make berrno class to leave errno unchanged after constructor call.
383 kes  Make bnet_server use the heap rather than the stack to allocate
384      its socket fd pointers to avoid a crash at termination. Problem
385      reported by Ryan Novosielski and bugs pointed out by Martin Simmons.
386 30Jul07 
387 kes  Create new depkgs and depkgs-qt separating the qwt out of depkgs
388      and putting it in depkgs-qt along with Qt4.3.
389 29Jul07
390 kes  Rework code in acquire.c that switches drives for reading when
391      the Media Type does not match. This should fix bug #906
392 28Jul07
393 ebl  Fix a director segfault during job setup #907
394 kes  Correct seg fault in postgresql when first operation returns no
395      rows.  Fixes Dirks File browser problem seg fault with bat.
396 25Jul07
397 kes  Apply patch from Felix Schwarz <Felix.Schwarz@web.de> that allows
398      building wxconsole on Fedora 7 with wxWidgets 2.8 (it works with
399      2.6 as well).
400 24Jul07 
401 kes  Implement PopUp YES/NO dialog for bat.
402 23Jul07
403 ebl  Fix a compilation bug when using #define BACL_WANT_NUMERIC_IDS
404 22Jul07
405 kes  Correct RunScript to terminate job in FD on failure.
406 kes  Change abort_on_error and AbortJobOnError to fail_on_error
407      and FailJobOnError in RunScripts.
408 kes  Minor tweaks of code formating in RunScripts, principally to
409      avoid depassing 80 columns.
410 21Jul07
411 kes  Eliminate one #ifdef Win32 in bsmtp
412 kes  Implement grow tool to grow a file for testing very large databases.
413 kes  Add big-vol-test to test Bacula seeking with > 5GB.
414 Release 2.1.28 beta
415 19Jul07
416 kes  Modify find_next_volume() to return all values in Media record.
417 kes  Ensure that we keep Recycle Pool when moving Scratch volumes.
418
419 Release 2.1.28 beta
420 18Jul07
421 kes  Update Release notes 
422 17Jul07
423 ebl  fix a bug in get_scratch_volume() report by Andreas Helmcke
424      Warning, in previous beta version, all media get from scratch keep their
425      old retention.
426 16Jul07
427 kes  Tweaked Win32 installer to remove temp conf files at uninstall time.
428      This should fix bug #842. Made a note to look at removing the temp
429      files at the end of the install.
430 kes  Add ability to mount and unmount a file device providing it is
431      marked as being removable and has the appropriate mount and unmount
432      commands defined in the Device resource. This fixes bug #830.
433 kes  When applying a storage override, release all previous storage
434      definitions rather than just prepending the new storage.
435      This should prevent a good deal of confusion.
436 14Jul07
437 kes  Implement ./configure search for qwt libraries.
438 13Jul07
439 kes  Disable posting the WM_CLOSE message in KillRunningCopy of the 
440      Win32 FD.  This should fix bug #893.
441 kes  Remove an unnecessary beep in Win32 init code.
442 kes  Update copyright dates in Win32 executable about boxes.
443 kes  Replace the FSF copyrighted getopt.c and getopt.h in the Win32
444      code with a BSD getopt.c and getopt.h.
445 kes  Remove sched.h from the Win32 compat directory -- not used.
446 kes  Remove the Exit menu item from the Win32 tray monitor. If you really
447      need to shut it down, do it through the services panel or the command
448      line.
449 kes  Remove some inappropriate Bacula FSFE copyrights.
450 ebl  Tweak status client=xxx to be more easy to parse (more like in 2.0.x)
451 kes  Fix regress config non-portable test as pointed out by
452      Florian Heigl <florian.heigl@gmail.com>
453 kes  Fix PSCMD for HP-UX in configure.in to have proper syntax.
454      as pointed out by Florian Heigl <florian.heigl@gmail.com>
455 12Jul07
456 kes  Fix missing rctx. prefixes on the Darwin code in src/filed/restore.c
457      Reported by Frank Sweetser.
458
459 Release 2.1.26 beta
460 12Jul07
461 kes  Fix client-only build.
462 kes  Integrate client-only fixes for bsys (initgroups) and conio from
463      Sergey Svishchev <svs@ropnet.ru> for the AIX platform.
464 kes  Make arguments to get_scratch_volume() in same order as other
465      such calls.
466 kes  Rework the prune_volumes() subroutine so that after purging and
467      no volume found in desired pool, it will check for a scratch 
468      volume. This prevents recycling the whole scratch pool.
469 kes  Add code to status storage to print boffset_t (largefile support).
470 11Jul07
471 kes  Move qwt (Graphics libarary for Qt4) to depkgs.
472 kes  You now need a --with-qwt=<dir> to be able to build bat.
473 kes  Update src/win32/cats/bacula_cats.def to include the new       
474      db_get_query_dbids() call on Win32.
475 07Jul07
476 kes  Correct a problem when selecting a scratch volume and moving
477      it to another pool that lost some columns.
478 kes  Tweak some code in ua_update.c to use POOL_MEM instead of POOLMEM.
479 kes  Enhance Autochanger error messages to include Volume and device name.
480 kes  Rework prune_volumes() code to take account of InChanger flag,
481      and to handle recycling volumes going to the Scratch pool and
482      current pool because the RecyclePool directive.
483 kes  Implement a better and more efficient db_get_query_dbids() to
484      handle creating and passing back a list of DBIds.
485
486 Release 2.1.24 beta
487 03Jul07
488 kes  Start work on new more efficient DBId subroutine. First use
489      will be for recycling volume to Scratch inchanger.
490 kes  Increase number of JobIds in pruning from 1000 to 10000. 
491      This to be replaced by above routine.
492 kes  Begin implementation of building Qt4 on Win32.
493 kes  Correct typo in fix I added for bad TLS shutdown.
494 kes  Pull 2.0.3 patches into patches directory.
495 kes  Update Release notes.  Include qt-console in line count.
496 kes  Update Projects file.
497 30Jun07
498 kes  Integrate patch from Sergey Svishchev <svs@ropnet.ru> that fixes 
499      bug in migration code where a job that spanned two volumes
500      was migrated twice.
501 29Jun07
502 kes  Implement new BST_DESPOOLING blocked state. Change from locking
503      during despooling in SD to blocking. This means that other threads
504      can work with the device structure, in particular the reservations
505      system while despooling.
506 28Jun07
507 kes  Fix return in reservation message queue that missed clearing
508      the jcr lock (implemented 26Jun07 below).
509 kes  Rename a number of dev methods to make locking function names
510      a bit clearer.
511 kes  Document locking in lock.c. Move lock structures to new file
512      lock.h.
513 26Jun07
514 kes  Move reservations message lock to lock jcr only this
515      fixes bug #861.
516 kes  Move main SD locking code into lock.c (new file).
517 kes  Update Win32 build to include lock.c
518
519 Release 2.1.22 beta
520 26Jun07
521 kes  Dirk committed the qwt library code for drawing graphs in bat.
522 kes  Tweak install of qwt so that it is integrated with ./configure.
523 25Jun07
524 kes  Fix HAVE_BATCH_INSERT to be HAVE_BATCH_FILE_INSERT, pointed
525      out by Eric (my typo).
526 ebl  Fix configure.in to get batch mode enable
527 kes  Return correct string from authenticate.cpp in bat when connecting
528      to Dir.
529 kes  Apply patch suggested by Frank Sweetser to fix bug #888 --     
530      spurious line drops when using TLS.  
531 kes  Do not file reparse points when restoring a file that already
532      exists -- Win32.
533 24Jun07
534 kes  Implement Windows reparse points -- similar to directories, but
535      we do not descend into it. This is a first cut. They seem to 
536      be backed up, but restore is not yet tested.
537 kes  Remove restore_blocking in tls code when shutting a socket to leave
538      it in blocking mode. Hopefully this will fix the encryption bug  
539      reported by Frank Sweetser.
540 kes  When opening a file for backup, tell the OS that we are going to
541      read it sequentially -- optimization.
542 kes  Change variable names in authenticate_director() to not conflict
543      with member names in bat. Caused great confusion with compiler,
544      but no warnings.
545 23Jun07
546 kes  Queue openssl error messages in case of comm problem.
547 kes  Do shutdown() call if socket terminated.
548 kes  Remove some duplicated code in tls.c
549 kes  Move more of the bsock member variables into private and access
550      them with methods.
551 kes  Add Frank Sweetser's tls-test to the regression suite.
552 22Jun07
553 kes  Add Swedish sv.po file
554 21Jun07
555 kes  Don't print clock skew message in FD if less than 3 seconds diff.
556 kes  Add a bit of VSS info to status client.
557 kes  Implement a first cut of Vista VSS, using Win2003 code.
558
559 Release: 2.1.20 beta
560 20Jun07
561 kes  Fixed bug #886 (multidrive autochanger: SD doesn't use drive with
562      loaded tape but uses first drive).
563 kes  Fixed bug #807 Restore encrypted backup failed on Windows 2003
564      This was indeed a Win32 issue.
565 19Jun07 
566 kes  Simplify search of autochanger for in-use Volume.  
567 kes  Fix exit condition of check for in-use volume.  kes Remove
568      inappropriate my_postgresql_free_result() in db_close()
569      routine.
570 kes  Fix bad return in FD when encryption signature not found.
571      Probably caused a crash.
572 kes  Inhibit missing encryption signature error messages for 
573      file types where no signature computed.
574 kes  Correct inverted check on autochanger in reservation system.
575 kes  Tweak debug code in autochanger reservation.
576 18Jun07
577 kes  Add some additional locking in the cats directory in subroutines
578      that modify packet variables called from batch insert.
579 kes  Rework how dcrs are allocated. new_dcr() can now be called
580      with an existing pointer, and it will simply clean it up.
581      This allows the reservation system to test various different
582      devices, and will permit easy device changes.
583 kes  A bunch of changes all over to handle new new_dcr() calling
584      sequence.
585 kes  Work more on the Volume management in the SD. Remember Volumes
586      for tape drives and for autochangers (even virtual disk changers).
587 kes  When looking at the Volume list to reserve a drive, handle 
588      autochanger names correctly by interating through the changer 
589      devices.  Also call the Director to see if a Volume is suitable
590      for the current job.
591 kes  Fix some bugs in bscan. Make sure all media records are written.
592      Make sure that valid JobMedia records are written for disk files.
593      Previously they were completely wrong.
594 kes  Move source tar files for depkgs-mingw32 to www.bacula.org so
595      that the URLs don't change and so that the developers will all
596      work off the same copy. Rebuild from scrach.
597 kes  Upgrade Win32 SQLite3 from 3.3.8 to 3.3.17.
598
599 Release: 2.1.18 beta
600 16Jun07
601 kes  Fix seg fault in FD from incorrect digest size. 
602 kes  Fix argument to non-OpenSSL crypto.c subroutine.      
603
604 Release: 2.1.16 beta
605 16Jun07
606 kes  Remove a few malloc()s from the encryption code.
607 kes  Use the class calls to bsock in filed/backup.c and restore.c in
608      place of the old bnet_xxx code.
609 kes  Implement code that does an on the fly calculation of the  
610      signing digest during restore of encrypted files.  It makes
611      a best guess at the algorithm, and if it is not correct, will
612      then revert to the old code which reads the file after it is
613      restored.
614 kes  Implement at least one missing crypto stream in stream_to_ascii()
615 kes  Apply patch from William <chowmeined@gmail.com> that fixes bug
616      #877 where a reload with bad syntax causes Dir to exit.
617
618 Cut: 2.1.14 beta (not released)
619 14Jun07
620 kes  Do not free a volume on a tape drive until another volume is
621      mounted and read, or the autochanger unloads the volume.
622      This should help the SD re-use volumes that are already mounted,
623      and should fix bug #886.
624 kes  Apply patch from user brettedgar that allows gnome2-console include
625      the OpenSSL libraries, and hence work with SSL.  Fixes bug #885.
626 kes  Apply patch from Lucien Weller that fixes day of week calculation
627      because of DST flag problem. Fixes bug #887.
628 10Jun07
629 kes  Move find_next_appendable_volume() to after acquiring a valid device
630      in reserve.c.  This fixes bug #864 -- confirmed by reporter.
631 09Jun07
632 kes  Unable to reproduce bug 872. However added additional testing for
633      integer.
634 kes  Bug #874 resolved by documenting SQLite limitations.
635 kes  Bug #882 resolved by documenting mtx-changer script for new drive code.
636 kes  Bug #881 resolved by removing typo in mtx-changer script.
637 kes  Made Frank Sweetser's wiki the official Bacula wiki with his
638      approval. Added a link to the wiki on the web page, and implemented
639      a backup from http://paramount.ind.wpi.edu                                          
640 08Jun07
641 kes  Fix update allfrompool to pass pool name.
642 07Jun07
643 kes  Convert to pure GPL v2 license.
644 kes  Fix sscanf problems reported by Peter Buschman that caused
645      a bus error on Solaris.
646 kes  Rework (simplify) the select prompt in bat.
647 kes  Move get_jobid_from_tid() into lib and create a 
648      get_jcr_from_tid().
649 kes  Use get_jcr_from_tid() to conver all tls Emsg() to Jmsg().  This
650      should definitely fix the problem of lost error messages in the
651      encryption code.
652 kes  Remove over zellous addition of FSFE copyright in a few eggxxx files.
653 kes  Eliminate tcpd.h from the project. Enclose the #include from the
654      library with extern C ...
655 kes  Add print of signal name when a signal is trapped.
656
657 Release: 2.1.12 beta
658 04Jun07
659 kes  Fix a seg fault in the PostgreSQL driver dereferencing a NULL pointer.
660 03Jun07
661 kes  Implement SQLITE3_INIT_QUERY in version.h that can do an initial
662      query for SQLite3. Use it to set PRAGMA synchronous = OFF. This
663      makes SQLit3 run 30 times faster, though a bit less safe.
664 kes  Implement --with-batch-insert in configure and detection of thread
665      safe libraries.  It is on by default, but turned off if no thread
666      safe library (e.g. SQLite 2) is available.
667 02Jun07
668 kes  Fix Bacula PostgreSQL buffer overruns.
669 kes  Do better checking for NULL results returned from PostgreSQL;
670      implement retry for failed queries; clear results buffer after
671      failed query. Hopefully this will correct the PostgreSQL failures.
672 01Jun07
673 kes  Implement algorithm to handle only one appendable volume with
674      Prefer Mounted Volumes = no.
675 kes  Fix a Bacula PostgreSQL bug dereferencing a NULL pointer      
676      returned from a query.
677 kes  Make volume lock recursive.
678 kes  Implement an additional volume reservation algorithm that
679      starts by considering all reserved volumes then uses the
680      old brute force algorithm of searching the resources to
681      find a suitable device.
682 kes  Add new reservations debug code and refine the old code.
683 kes  Update the win32/dll/bacula.defs file.
684 29May07
685 kes  Tweak reservations algorithm to permit a few more cases, i.e.
686      volume reserved, but on different drive, ...
687 kes  Enhance SD status to include Pool and Media Type for drive in a
688      more readable format (a bit longer). 
689 kes  Fix PostgreSQL double free.
690 28May07
691 kes  Minor refactoring of restore decryption code.
692 kes  Add code to smartall.c to detect double free of a buffer.
693 27May07
694 kes  Add < > around %r in from field on mail command of bacula-dir.conf.in
695      so that bsmtp will create a correct email address (mailbox only).
696 kes  Modify 'memory' command so that the buffers are listed as 'In use'
697      to avoid confusion with Orphaned buffers.
698 kes  I reworked the OpenSSL include/lib flags to be handled in     
699      the standard Bacula way, which should fix bug #863 concerning
700      non-standard OpenSSL libraries.
701 26May07
702 kes  Implement Help Browser window for bat.
703 kes  Fix reload bug that reset StorageId to zero.
704 25May07
705 kes  Fix TLS #ifdefing when TLS turned off.
706 kes  Ensure that when labelling a tape with Slot=0 that InChanger
707      is not set.
708 kes  Use DISTINCT to make MySQL and PostgreSQL uar_list_temp query        
709      the same.
710 kes  Add StartTime to final uar_sel_jobid_temp query so that we can
711      add DISTINCT (required by PostgreSQL).
712 kes  Implement BSOCK authenticate_director() method. Eventually will
713      authenicate all daemons.
714 kes  Move several more functions into the BSOCK class.
715 24May07
716 kes  Add code to tell the OS that we no longer need a cached
717      file that we were reading. In findlib/bfile.c.  Also,
718      only cache files that we are reading. Thanks to
719      Tobias Oetiker <tobi@oetiker.ch> for the idea.
720 kes  Tweak to bsmtp to eliminate compiler warnings on Win32.
721 kes  Implement script to automatically generate cats and dll .def
722      files for Win32 dll.
723 kes  Update README.mingw32 to include new .def file generation.
724 kes  Correct typo in UTF-8 error message as reported by:
725      jhernandez <julianhernandez@gmail.com>
726 kes  Add additional sm_check() code on debug level 1.
727 kes  Set default debug level to 1.
728 kes  Trap SIGABRT in attempt to get traceback.
729 23May07
730 kes  Reduce bat connect timeout from 30 to 15 seconds.
731 kes  More restructuring and implementing BSOCK class in place of
732      old bnet.c code.
733 kes  Remove a few unnecessary malloc() tests in crypto code.
734 kes  Turn off crypto calls for > 128 bits in crypto.c if HAVE_SHA2
735      not defined. Bug reported by Allan Black <Allan.Black@btconnect.com>
736 kes  Remove duplicate HAVE_CRYPTO definition in config.h.in
737 22May07
738 kes  Fix Verify InitCatalog mysql_escape_string() trashing memory.
739      Make buffer bigger.
740 kes  Fix Verify InitCatalog. The attributes were not pointing to the
741      correct saved location.
742 kes  Implement message callback so that GUI is sure to get all
743      daemon messages. Currently displayed in a dialog in bat.
744 kes  Ignore SIGUSR2 (Bacula timer) in bat.
745 kes  Apply regress patch from bug #859 to allow regress to work 
746      with Solaris compiler.
747 21May07
748 kes  Begin adding TLS support to bat.
749 kes  Apply UTF-8/16 patch from Yves Orton <demerphq@gmail.com> to
750      clean up lex.c and make it more readable.
751 20May07
752 kes  Move more bnet functions into the BSOCK class.
753 kes  Fix tray-monitor by not requiring a timer interval in bnet_connect()
754 kes  Complete change of berrno strerror() method to bstrerror() 
755
756 Release: 2.1.10 beta
757 18May07
758 kes  Cleanup incorrect email addresses in bsmtp.
759 kes  Make bat display initial messages rather than discard them.
760 16May07
761 kes  First cut of adding .mod to the run command.    
762 kes  Implement auto display of messages in bat.
763 kes  Enhanced preferences to allow all Bacula output to be
764      displayed in bat.
765 15May07
766 kes  Try to make bsmtp date routines more generic.
767 kes  Fixed bug #856 autochanger documentation.
768 kes  Rework bsmtp date editing for Win32. This fixes bug #854.
769 kes  Add new cats entry point so Win32 builds.
770 14May07 
771 kes  Attempt to fix bsmtp date editing on OSes without %z editing. 
772      Fixes bug #854.
773 kes  Do better checking for the MySQL 64 bit libraries looking for both
774      .a and .so libraries.
775 kes  Add a kludge for Ubuntu's non-standard locations for MySQL -- allow
776      /usr/include/mysql/mysql.h AND /usr/lib/... rather than /usr/lib/mysql/...
777 kes  Require the thread safe version of MySQL during configure. Thanks
778      to Andre Noll for pointing this out.
779 kes  Ensure that calls to find_jobids_from_mediaid_list() check count before
780      continuing in migration code.
781 kes  Apply implementation of tray-monitor font derived from gnome-console
782      submitted by Andreas Piesk <a.piesk@gmx.net>
783 13May07
784 kes  Eliminate important memory loss in SQLite
785 kes  Fixed the batch insert MySQL thread specific data that was not
786      being freed. See cats/mysql.c:db_thread_cleanup().
787 kes  Fix restore before command.
788 kes  Convert old hdr.name to name() in a few places.
789 kes  Implement update jobid command.
790 kes  Return all time_t dates in db_get_job_record()
791 kes  Stop watchdog in SD earlier.
792 kes  Put Pool just after Storage in please mount message.
793 kes  Fix pointer usage bugs in Verify InitCatalog pointed out by
794      Eric.
795 12May07
796 kes  Update the po files.
797 kes  Fix Verify InitCatalog by making it cache attributes.
798 11May07
799 kes  Change name bacula-bat to bat for man 1 page to correspond to
800      Makefile.
801 kes  Check for client and store NULL pointers in status command.  This
802      fixes bug #845.
803 kes  Fix non-ssl build so that it works (add JCR *jcr to crypto structures).
804 kes  Fix sign extended editing of %p.
805 kes  Clean out a little old #ifdefing in cats/mysql.c
806 10May07
807 kes  If time diff between DIR and FD is more than 600 seconds convert
808      INFO message to WARNING.
809 kes  Implement heap size display in status for all daemons.
810 kes  Attempt to fix MySQL db open memory loss (not successfull).
811 kes  Don't set SIGKILL and SIGSTOP neither can be trapped.
812 kes  Eliminate memory loss in MySQL (possibly other SQLs) during
813      Query. This looks like a MySQL but but by doing extra releases,
814      the memory goes away.  This should fix bug #847.
815 09May07 
816 kes  When backup fails, cancel SD before waiting for sd termination.
817 kes  If SD is waiting for FD to connect during cancel, wake up the 
818      thread.
819 kes  Fix fsf code so that errno is correctly reported.
820 kes  Apply migration patch (with changes) from Sergey Svishchev <svs@ropnet.ru>
821 08May07
822 kes  Make lack of Pool directive in Job an ERROR_TERM rather than FATAL
823      so that Bacula doesn't later stumble into a seg fault.
824 kes  Use the term Restore Client in the restore Job report.
825 kes  Merge patch from Sergey Svishchev <svs@ropnet.ru> that preserves 
826      the original job's FileSetId.
827 kes  Merge patch from Sergey Svishchev <svs@ropnet.ru> that implements
828      spooling in migration jobs.  Not yet tested.
829 kes  Merge patch from Jorj Bauer <jorj@seas.upenn.edu> that implements
830      reading conf file from a pipe.  However, do it with open_bpipe()
831      rather than popen.  Not yet tested.
832 07May07 
833 kes  Fix an ugly bug where the VolCatBytes were getting updated
834      during a restore.
835 kes  Implement bconsole memory command that prints current memory
836      usage, plus smartalloc dump.
837 kes  Clarify some error messages in backup, admin, and migrate.
838 kes  Shrink label dialog to smaller size.
839 kes  Invert Cancel OK buttons on restore to be OK Cancel.
840 kes  More strerror() to bstrerror() conversions.
841 06May07 
842 kes  Start implementing bstrerror() in place of strerror().
843 kes  Stripping path -- seems to work.
844 04May07
845 kes  Prevent door and port files from being restored (mostly
846      Solaris stuff).
847 kes  Free an unreleased buffer in compat code.
848 kes  Change console Job name from *Console* to -Console- to eliminate
849      Win32 filename problems.  Put Win32 path separator when creating
850      Console file.  This fixes bug #846.
851 kes  Change berrno::strerror() to berrno::bstrerror().  Not yet full
852      implemented.
853 kes  Pass jcr to crypt_sign_decode because it creates a new SIGNATURE
854      structure.
855 kes  Define b_errno_win32 on Linux to be zero so that it can be or'ed in
856      to force Win32 error message.
857 03May07
858 kes  First cut strip path. The data should be passed to the FD,
859      but nothing is done with it yet.
860 kes  Enhance the digest and signature routines in the crypto
861      library to accept a JCR and to use it to print error messages
862      so that they will go in the Job report rather than the daemon's
863      messages.
864 kes  Simplify some of the verify signature code.
865 kes  Simplify a few of the alternative returns in the signature 
866      code.
867 02May07
868 ebl  Use only POSIX regex instead of GNU regex in breg.c for
869      File relocation. It fix broken freebsd compilation.
870 kes  Convert all other Dir files to use new ua class message 
871      routines for bat.
872 kes  Tentative fix for missing digest signature in bug 807.
873 kes  Correct handle problem in new win32_ftruncate routine.
874 kes  Convert ua_purge.c and ua_update.c to use new ua class
875      message routines for bat.
876 29Apr07 
877 kes  Correct incorrect installation of LICENSE in Win32 installer.
878 kes  Display LICENSE at the beginning of the Win32 install.
879 kes  Attempt to correct the need for the png files to be installed 
880      for bat.
881 kes  Reapply my bat.conf install script in qt-console. I think I 
882      editted bat.pro instead of bat.pro.in and it was lost.
883 kes  Apply CentOS patches someone sent me. Checks for /var/run/subsys,
884      the /var/lock/subsys for subsysdir.  Also corrects typos in the
885      doc.
886 28Apr07
887 kes  First cut update job.
888 kes  Correct configure to include qmake of src/qt-console directory.
889 26Apr07
890 kes  Make restore job yes/mod/no print in one command so GUI works.
891 kes  First cut implementing backup and restore client.
892 kes  Correct editing in Verify output that caused a seg fault.
893 25Apr07
894 kes  Insure that bat.conf is not overwritten during installation.
895 kes  Fix important bug in db_sql_query() in mysql.c.  It was introduced
896      while I was implementing migration in March 2006 !
897 24Apr07
898 ebl  Cleanup file relocation, using char *RegexWhere instead of
899      char *where + bool where_use_regexp
900 kes  Update some manpages and add bat manpage.
901 kes  Make a first cut at converting bacula.spec.in for bwx-console
902      and bgnome-console.
903 kes  Apply patch from John Goerzen to add hostname as fourth argument
904      to make_catalog_backup script.
905 kes  Fix typos I introduced into bsmtp.c
906 kes  Make pm_strxxx() routines handle input of NULL pointer. This
907      is to protect from NULL pointers returned from SQL databases.
908 kes  Correct typo in bacula-sd manpage as pointed out by John Goerzen.
909 kes  Add more debug to FIFO code -- fix fifo regression test.
910 23Apr07
911 kes  Implement posix_fadvise in FD, and for reading spool files in SD.
912 kes  Add thread timer to bnet_connect() to break from OS if wait time
913      expires.
914 22Apr07
915 kes  Update Win32 build to include new files, new symbols, and    
916      renamed files.
917 kes  Implement socket level heartbeat (tcp_keepidle)
918 ebl  Commit File relocation patch
919 kes  Make bat have 'make install' target.
920 kes  Warn during install if old gnome-console binary found.
921 kes  Warn during install if old wx-console binary found.
922 kes  Add -8 option to bsmtp command line to add content type utf-8. 
923      Fixes bug #809. (Character coding problem in bsmtp).
924 kes  If < is found in target (from, to, cc) then do not enclose the
925      target in < >  in bsmtp. Fixes bug #772  (malformed address).
926 kes  When printing certain items in dbcheck, stop after 300000.
927      Fixes bug #822. (dbcheck loops).
928 kes  Incorrect status in Dir after waiting for mount with poll set.
929      Fixes bug #825.
930 21Apr07 
931 kes  Extend idea of Prefer Mounted Volumes to mean a volume about
932      to be mounted.
933 kes  Print waiting to reserve a device every 5 mins.           
934 20Apr07
935 kes  Don't call close_part in label.c if tape and relabel.
936 kes  Don't free volume if busy in close() -- should help with
937      bug 801.
938 ebl  Fix #824 RunScript bug (After script could be execute twice)
939      Now, Before Script can use RunsOnSuccess and RunsOnFailure options
940      By default (like before) RunsOnSuccess=true and RunsOnFailure=false
941      Add a regression script to test RunScript
942 19Apr07
943 kes  Correct usage of MTIOCLRERR ioctl for clearing persistant errors
944      on Solaris.
945 18Apr07
946 kes  The bgnome-console (gnome-console) and bwx-console (wx-console) are
947      deprecated. No additional bugs will be fixed, and they will be dropped
948      in a future release (probably 2.4.0).
949 kes  Change name of wx-console to bwx-console to make it more Bacula
950      unique.
951 kes  Change the name of gnome-console to bgnome-console to make it
952      more Bacula unique.
953 14Apr07
954 kes  Some time in March, a Feature Request with patch from Jorj Bauer
955      <jorj@seas.upenn.edu> was committed by Landon (with my approval).
956      It implements:
957      The ability for the director to validate a Client (FD) CN against
958      an arbitrary set of patterns rather than the hostname, with
959      A new 'TLS Allowed CN' set of directives which are implemented
960      in the Client resource.  Then pattern matching is used in place
961      of hostname matching against the Certificate's CN. As an example, we
962      have certificates which (a) use a local CA, and (b) have a CN of the
963      form client_123.
964 kes  Add new/changed entry points to Win32 build
965 kes  Create unaccepted-projects for projects that are not accepted.
966 kes  Simplify locking in the reservations system.
967 kes  Add more debug code in reservations.
968 kes  Make sure error condition on reserving a volume is handled correctly.
969 kes  Correct handling of volume_in_use.
970 kes  Correct handling of initializing a device.
971 kes  Move handling of broadcasting releasing a device into release_device().
972 kes  Correct attaching dcr to dev so that it is only done if device
973      is properly initiated.
974 12Apr07
975 kes  Locking debug level tweaks in SD.
976 kes  Tweak new Volume code.
977 11Apr07
978 kes  Add exec external-command [wait-seconds] to bconsole. This
979      executes the external-command.  Note! normally external-command
980      should be enclosed in double quotes.
981 kes  Turn the .die command on only if DEVELOPER is defined -- i.e.
982      it should normally be off in a production system.
983 10Apr07
984 kes  Implement die command for SD so that we can force it to dump.
985 kes  Implement SD lock debug code.
986 kes  Implement new algorithm for keeping Volume list in SD.  It
987      is now owned by the device.
988 04Apr07
989 kes  Implement new code for freeing in use volumes that should 
990      resolve if not all, some of the problems of multiple drive
991      tape conflicts described in bug 801.
992 03Apr07
993 kes  Fix gui/bacula-web/images files in svn.
994 kes  Turn on FreeBSD/OpenBSD code to set EOT model on tape.
995 02Apr07
996 ebl  Fix a bug in batch mode (in string escape)
997 kes  Correct migration prune SQL typo that crept in in a    
998      recent 2.1.x change.
999 01Apr07
1000 kes  Move bnet_despool() into class in bsock.c
1001 kes  Modify job report to include director name and Build OS.
1002 kes  Move drop root privilege and check_catalog() before fork.
1003 kes  Add update database scripts (version 9 to 10) to updatedb directory.
1004 31Mar07
1005 ebl  Check size and age of each file after its backup to see if
1006      it has changed during backup, if 'checkfilechanges' is set.
1007      The FD will do an extra check (stat(2)) after
1008      each file backup. mtime, ctime and size are compared with
1009      'before backup' information. If time or size mismatch, an
1010      error message will be generated. You must upgrade FD to use it.
1011 30Mar07
1012 kes  Make database name and user configurable
1013      --with-db-name=xxx --with-db-user=xxx
1014 kes  Add back database type to message.c for debugging.
1015 29Mar07
1016 kes  Implement dir_sql() which issues an SQL query.
1017 kes  Modify bat medialist to use dir_sql() and do some minor C++
1018      formatting as well as eliminating a number of pointers, simplifing
1019      the code.
1020 28Mar07
1021 kes  Fix some of the mtx-changer grep commands for tape label readers.
1022 kes  Convert a number of bsendmsg into the appropriate send/warning/error
1023      message class calls.
1024 kes  Suppress the using database message in the .sql command.
1025 kes  Correct an incorrect bnet_tls_client prototype -- patch from Martin.
1026 27Mar07
1027 kes  Add context menu for floating a window.
1028 kes  Some minor cleanup and name changes in qt-console
1029 kes  Add doing mt setblk 0 in Win32 mtx-changer.
1030 kes  Apply Martin's bug fix to move definition of ENODATA for 
1031      FreeBSD to bsock.c
1032 ebl  Add a BUSY handler to sqlite to be able to use multi_db = 1 with
1033      sqlite2 and sqlite3.
1034 26Mar07
1035 kes  More pruning cleanup.
1036 kes  Turn on wait_for_drive by default in mtx-changer.
1037 kes  Turn on Batch insert code by default as it now passes regression.
1038 kes  Add ./configure --enable-bat to enable building of Bat.   
1039      No install yet though.
1040 25Mar07
1041 kes  Implement a new .sql command for bat.
1042 kes  Implement code to turn off pruning in obtaining the next volume.
1043      Pruning is turned off for the status dir command, but turned on
1044      for SD requests and for the list nextvolume command.
1045 24Mar07
1046 kes  Correct Qmsg() that was not updated correctly when committing a
1047      previous change (probably the recent TLS patch).
1048 23Mar07
1049 kes  Write new subroutine is_volume_purged() that explicitly checks
1050      if the Volume is purged, and if so marks it as such. This should
1051      resolve problems reported about needing to mount twice to recycle
1052      volumes.
1053 kes  Rewrite pruning algorithm to do more work in the SQL engine, and
1054      to pass a list of JobIds to be deleted to SQL.  Also, minimize the
1055      amount of duplicated code.     
1056 kes  Do volume pruning only for the Media Type desired (reduces pruning time
1057      if multiple Media Types are in the same pool).
1058 kes  Implement more detailed info in the Job report for the Bacula version
1059      and architecture.
1060 kes  Switch from POOLMEM to POOL_MEM (a real class) in ua_prune.c and
1061      ua_purge.c.
1062 ebl  Add bbatch tool to bench database and insert mode.
1063      Fix sql quote stuff in batch mode
1064      Fix sql stuff for mysql
1065 22Mar07
1066 kes  Correct problems with am/pm scheduling. Fixes bug #808.
1067 kes  Implement new prunning code that prunes up to 1000 jobs at
1068      the same time.  The same technique can be applied to a number
1069      of other prune/purge subroutines.
1070 kes  Add an insanity check when starting a new tape job to ensure
1071      that the tape position has not been changed. If so fail the
1072      job.
1073 kes  Fix Win32 build for dlls to add the folllowing:
1074      src/lib/bsock.c -- new file with new entry points
1075      src/lib/dlist.c  -- new entry points
1076      src/cats/sql_create.c -- new entry point
1077      src/cats/sql_cmds.c -- new DATA item exported
1078 21Mar07
1079 ebl  batch mode cleanup bscan-test is ok now.
1080 kes  Implement SD code to check length of disk volume before appending.
1081 18Mar07
1082 kes  Correct return status on db_batch... routines.
1083 kes  Add call to db_write_batch_file_records() to migration code.
1084 ebl  Fix AfterJob timing
1085 kes  Move the checking of the database in initializion of the Director
1086      to after we drop privileges.  This avoids the need for both root
1087      and bacula access to the DB.
1088 kes  Correct a misplaced variable definition in src/filed/backup.c
1089 kes  Correct how the new batch insert db_create_attributes_record()
1090      uses the arguments.  Caused a seg fault in bscan.
1091 kes  Implement lock() and unlock() methods in DEVICE class.
1092      Implement block() and set_block(xx) methods in DEVICE class.
1093 kes  Modify bnet_connect() so that it uses time() to check for the
1094      wait time expiring (on some OSes, some system calls may not
1095      return immediately).
1096 kes  Modify Verify to obtain the previous JobId when it is actually
1097      running rather than at schedule time (as it was in 1.38.x).     
1098 kes  Fix src/job.c to handle MaxWaitTime correctly.  This should
1099      fix bug #802.
1100 kes  When checking pid in pid file, continue running if the pid is
1101      the same as ours. This occurs on IRIX after a system crash.
1102      Fixes bug #797.
1103 10Mar07
1104 kes  Extend new GUI API.
1105 kes  Make the ua structure a class, and implement send_msg(),
1106      error_msg(), warning_msg(), and info_msg().
1107 08Mar07
1108 kes  Apply fix from for building wx-console on the Mac from
1109      bug #798.
1110 kes  Implement new select mechanism for GUI programs.
1111 kes  Reorganize initialization of stackedWidgets in bat.
1112 07Mar07
1113 kes  Add updated nagios plugin supplied by Christian Masopust.
1114 05Mar07
1115 kes  More bat implementation.
1116 kes  File migrate bug with Pool Occupancy using mediaid instead
1117      of jobids.  Fixes bug #795.
1118 kes  Fix orphaned buffers in filed backup and verify due to
1119      crypto buffers not freed during errors.  Fixes bug #789.
1120 kes  Extend new GUI api code to tree commands.
1121 kes  Ensure that tree and dot commands check console ACLs.
1122 kes  Permit marking directory with trailing slash.
1123 kes  Allow 20 console connections (instead of only 10).
1124 04Mar07
1125 kes  Add smartctl call to bacula-sd.conf as an example of getting
1126      tape alert info.
1127 02Mar07
1128 kes  Modify jobq.c to let simultaneous restore jobs run. This may 
1129      cause them to fail if they cannot get a drive.
1130 kes  Add Client Connect Wait to Storage daemon to permit users to
1131      modify the time the SD waits for a FD connection.
1132 29Feb07
1133 kes  Correct virtual changer check which was backwards. This caused
1134      volumes to be unloaded into slots already occupied.
1135 28Feb07
1136 kes  Apply Command ACL filter to JobId list in restore command.
1137 kes  Correct typeo in var.c patch.
1138 27Feb07
1139 kes  Don't let Bacula prune File or Job records for the current Job.
1140 kes  Fix variable substitution pad + inc bug reported (with patch)
1141      in bug #791.
1142 26Feb07
1143 kes  Correct SQLite log table index as reported by Luca Berra.
1144 24Feb07
1145 ebl  fix fifo stuff, bacula tries to rewind the fifo... Thanks to Andreas
1146 22Feb07
1147 kes  Begin implementing new comm signals for API.
1148 kes  Fix a few places in lib/message.c where the open fd may 
1149      not be zeroed.
1150 kes  Continue implementing lib/bsock.c (real class).  Make jcr,
1151      who, host, and port private. There are new methods to access
1152      them for non-class use. This required touching a number of files.
1153 21Feb07
1154 kes  Add LANG=C to autoconf/randpass so it works with languages other
1155      than English.  Fixes bug #788.
1156 20Feb07
1157 ebl  Revert ClientRunBeforeJob to old position as in 1.38.X.
1158      This fixes bug #780
1159      You will not be able to generate Include/Exclude list any more.
1160      It will be fixed soon.
1161      If you want to use this, you can apply
1162      trunk/bacula/patches/testing/clientrunbeforejob_can_generate_include_exclude_list.patch
1163 19Feb07
1164 kes  Restore of sockets created false error messages because Bacula
1165      no longer restores sockets, but the code was still trying to
1166      set the attributes on a non-existent file. Reported by a user.
1167 ebl  finish RecyclePool feature
1168      Media will takes Pool.RecyclePool
1169      when moving from Scratch to a Pool or when user will do
1170      update volume=xxx frompool
1171      To use it, add RecyclePool = aPool to your Pool resource
1172         Pool {
1173                 Name = Default
1174                 RecyclePool = Scratch
1175                 ...
1176         }
1177      TODO: update manual
1178 kes  Expand new BSOCK class adding signal() and new BNET signals.
1179 kes  Begin enhancing the dot commands adding a new API function
1180      that returns more information and will make it easier
1181      to interface to the Director from a program.
1182 18Feb07
1183 kes  Make DEVICE fd private. Its new name is m_fd, and can be
1184      obtained with dev->fd() outside the class.  This is the
1185      first of many DEVICE members to be made private.
1186 kes  Implement Michael Renner's idea on having a virtual disk
1187      changer. I made some minor modifications (e.g. I did not
1188      implement the Virtual Changer directive, but simply set
1189      the Changer Command to an empty string.
1190 17Feb07
1191 kes  Implement a BSOCK send() method that writes the whole record
1192      in a single write() request rather than in two.
1193 ebl  add update volume=xxx recyclepool=yyyy
1194      volume takes recyclepool from pool when using update volume=xxx from pool
1195 16Feb07
1196 kes  Fix encryption deblocking bug, which caused some restored files
1197      to be truncated. This fixes bug #763.
1198 kes  Add FD event sequence order prepared by Eric -- for RunScripts.
1199 kes  Fix 12am/pm bug as reported in bug #782 -- scheduler problem.
1200 13Feb07
1201 kes  Apply Eric's ClientRunScriptAfter patch to 2.0 and 2.1.
1202 ebl  Use btime_t instead of uint64_t in media patch.
1203 11Feb07
1204 kes  Optimize the use of the database a bit in the Status dir command.
1205      Only open it when needed, ensure that if any previous database
1206      was opened, it is closed.
1207 10Feb07
1208 kes  Correct VolCatBytes bug from media patch.
1209 kes  Apply patch from bug #612 by Rudolf Cejka to speedup pruning
1210      in the case of orphaned records.
1211 kes  Modify dbcheck to handle orphaned JobMedia, Path, Filename,
1212      and File records in 300K chunks to be more efficient. This
1213      idea came from Juan Luis Frances (if I remember right).
1214 kes  Apply Eric's scratch patch that moves a purged Volume to
1215      the RecyclePool.  Question: how is RecyclePool set? what
1216      happens to the ScratchPool?
1217 kes  Apply Eric's media patch that collects read/write media
1218      times as well as byte counts.  This patch requires a
1219      simultaneous upgrade of the DIR and SD.  Note, there
1220      should be some way to turn off timing. I'm not sure
1221      times are in Bacula units.
1222 kes  Apply Eric's batch-insert patch.
1223 09Feb07
1224 kes  Update projects list.
1225 08Feb07
1226 kes  Implement Include/Exclude file lists in FD as dlists using
1227      the new dlistString class. This permits efficiently having
1228      large include/exclude lists and completes project Item 25.
1229 kes  Fix dird/ua_cmds.c so that a cancel command checks if the
1230      console is authorized to cancel the job.  This fixes bug 
1231      #767.
1232 kes  Modify SD so that the VolCatJobs medium record is updated
1233      at the beginning of a Job rather than the end.  This
1234      fixes bug #775 where exceeding MaxVolJobs caused jobs
1235      to fail.
1236 kes  Added a mutex around getting and setting Volume information
1237      so that multiple simultaneous jobs will single thread.
1238 07Feb07
1239      Switch to using Subversion
1240 kes  Remove src/pygtk-console/ from configure
1241 06Feb07
1242 kes  Delete src/lib/btree.c from win32 build, then add rblist.c
1243      plus the entrypoints.
1244 kes  Apply patch supplied that corrects debug print
1245      in canceling jobs for max run time.  Supplied as
1246      part of bug #621, which was previously fixed.
1247 05Feb07
1248 kes  Test on job_canceled() and sd_msg_thread_done inside
1249      loop starting the message thread to avoid a race condition.
1250      Fixes bug #771.
1251 kes  Remove rl_catch_signal from console.c as it conflicted
1252      with the header definition. Fixes bug #765.
1253 ebl  Fixes bug #766 about RunsOnClient = Yes (case sensitive)
1254 04Feb07
1255 kes  Clarify some stored/acquire messages to indicate if the
1256      problem is with read or append.
1257 02Feb07
1258 kes  Fix memory leak with storage ids in cats/sql_get.c
1259 kes  Terminate watchdog earlier to avoid reference to released
1260      memory -- reported by Jason Austin.
1261 kes  Move closing the database from jobq.c to the director daemon
1262      termination routine. This fixes memory leaks for shadow jobs
1263      (i.e. migration jobs).
1264 kes  Free up the unique jobid chain items in migrate.c.  This fixes
1265      a memory leak problem.
1266 kes  Convert some ugly looking for statements to use foreach_alist
1267      in findlib/find.c.  This will facilitate converting the structures
1268      to use dlist (for large include/exclude lists).
1269 kes  Fix a bug in the btree.c and btree.h routines, then rename them
1270      rblist and add them to be built in src/lib.  Include some new
1271      methods written by Rudolf Cejka that make the code more readable
1272      (hides some of the ugly casting).
1273 kes  Add set_next() and set_prev() methods which make the code much more 
1274      readable. Also add a new dlistString class that facilitates storing
1275      strings in dlists.  To be used in the large include/exclude lists.
1276 kes  Make some trivial modifications to lib/tree.h that use rblist
1277      rather than dlist for storing the tree links. This was suggested
1278      by Rudolf Cejka.  The result of this is that the restore tree now
1279      uses red-black binary trees rather than simple linked lists. This
1280      should give rather dramatic speed improvements for directories
1281      contining large numbers of directories/files (more than 10000).
1282 28Jan07 
1283 kes  Fix maxruntime bug #621.
1284 26Jan07
1285 ebl  Implement the include JobID in spool file name project.
1286 kes  Reorder projects file in order determined by Jan 2007 vote.
1287 kes  Implement item #12 on project list -- quick release of FD by
1288      the SD.
1289 kes  Fix open of SQLite3 db where user does not have write permission
1290      so that DIR does not crash. Fixes bug #761.
1291 25Jan07
1292 kes  Add back missing @ in Win32 Makefile.
1293 kes  Change 'Device not configured to autolabel' from INFO
1294      to WARNING.
1295 kes  Fix jobq.c to restart failed jobs when Reschedule Times = 0 
1296      which should restart an indefinite # of times.
1297 kes  Fix configure --help to print --with-mysql[=DIR]. Same for
1298      other DIR specifications.
1299 23Jan07
1300 rn   Fix msvc build problems. Fix bacula.dll exports for msvc build.
1301      Fix path quoting in SQLite scripts.
1302      Fix problems with SHGetFolderPath.
1303 19Jan07
1304 kes  Create patches/2.0.1-restart.patch. Fixes bug #755.
1305 18Jan07
1306 kes  Fix Job restart on error bug that promotes an Inc to a Full
1307      backup.  This should fix bug #755.
1308 kes  Add qt-console and first cut of code.
1309
1310 Version 2.0.1
1311 12Jan07
1312 kes  Fix Bacula->Documentation link on Win32 to point to index.html
1313      instead of bacula.html. Fixed bug #750.
1314 kes  Return JobId in db_get_job_record() when JobId==0. This should
1315      fix bug #741.
1316 kes  Do not release source pointers when restarting a failed job.
1317 11Jan07
1318 kes  Add dynamic dll entry point for SHGetFolderPath to Win32 code.
1319      This *should* fix bug #747.
1320 kes  Modify winbacula.nsi to substitute with g bin_dir_cmd. Should fix
1321      bug #742.
1322 09Jan07
1323 kes  Modify USTORE constructor to set an empty store_source string, 
1324      and don't copy the store_source string in a cancel.  Hopefully
1325      this will fix Arno's seg fault, bug #744.
1326 kes  Add back code to disable conio in configure. Fixes bug #743.
1327 kes  Correct the Options scanner in the FD to correctly handle  
1328      SHA1 option, which was eating the next option.  Reported by    
1329      Sebastien Guilbaud.
1330 kes  Add code to indicate when the SD is spooling, spool wait, and 
1331      despooling as requested by Alan Brown.
1332
1333 Version 2.0.0 released: 4 January 2007