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