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