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