]> git.sur5r.net Git - bacula/bacula/blob - bacula/ChangeLog
Phil's code + rework status command
[bacula/bacula] / bacula / ChangeLog
1
2 13Mar04
3 - Added two tar files that Phil sent for adding slackware support.
4   Thanks Phil and Matt Howard.
5 - Fix relabel command -- || should have been &&.
6 - Correct once more the scheduling algorithm -- this time it should
7   be much better.
8 12Mar04
9 - Implement simple spool statistics printed by "status sd".
10 - Cleanup/add spool error messages.
11 - On multiple ctl-c, exit from console quickly.
12 - Implement code to select a different Volume in the SD if the
13   current Volume is busy -- requested by Patrick Cole.
14 - Change postgreSQL make tables to use bigint instead of integer 
15   for StartBlock and EndBlock because
16   there is no unsigned integer in postgreSQL and these fields use 32 bits.
17 - Implement multiple drive autochanger support -- prompted by email of
18   Patrick Cole.
19 11Mar04
20 - Update version and date in Win32 build.
21 - Fix bug in run_conf with month range zapping wday and wom.
22 - Correct editing of port for PQsetdbLogin in postgresql.c as reported
23   by J. Conroy, and do a second try.
24 10Mar04
25 - Integrate Phil's Makefile patch.
26 - Add SpoolDirectory to SD Device resource.
27 - Add MaximumJobSpoolSize to SD Device resource.
28 - Add MaximumSpoolSize to SD Device resource.
29 - Implement the above.
30 - Make despooling lock the device so only it writes
31   to the device during despooling.
32 09Mar04
33 - Data spooling now passes the regression tests.
34 - Added "Files Expected" to the restore job report.
35 - Implemented SpoolData = yes/no in the Job resource
36 - Implemented SpoolData = yes/no in the Run overrides.
37 - Note, you must have a 1.33.4-09Mar05 SD or later with the Director since
38   the DIR->SD protocol has changed to support data spooling.
39 - Remove the confusing "Which DBMS do you want to use (please select only one):"
40   messages from ./configure.
41 - Fix broken Jmsg with missing argument in find_one.c
42 08Mar04
43 - Second cut data spooling code.
44 - Fix missing piece of yesterday's patch.
45 07Mar04
46 - Integrate patches supplied by Jason Conroy that fix Slot numbers 
47   getting lost.
48 06Mar04
49 - This version contains a *major* addition to the SD structures.
50   Many variables have been moved out of the JCR into a new DCR
51   (Device Context Record). This required quite a few changes, and 
52   introduced a bit of instability. In the end, after a few more
53   rounds of changes, the DCR will replace virtually all arguments
54   to the low level SD read/write routines. This change permits
55   (with a bit more code) the SD to write to multiple devices at
56   the same time for a single Job. It also facilitates adding the
57   data spooling code.
58 - Added a patch that fixed the port specification for postgresql.
59 - Fixed findlib/find_one.c so that it will complain about backing
60   up a hard linked file twice, which makes a restore impossible.
61 - Tighten up permissions on pid file.  
62 - Attempt to avoid warnings when casting 64 bit pointers to an
63   integer.
64 - Added skeleton code for data spooling.
65 - Make sure spooled attributes are discarded on error.
66 03Mar04
67 - Updated getdiskinfo in rescue/linux to handle the fact that the
68   sfdisk -s option now includes info on partitions. Also, before 
69   creating the diskinfo files, clean out the old ones.
70 02Mar04
71 - Add debug and error output to jobq.c
72 - Fix some minor errors in debug output of scheduler.c
73 - Add "trace on/off" command and modify trace code in message.c
74   to work off trace flag rather than #defines.
75 01Mar04
76 - If console is found during install warn user (new name is bconsole).
77 - On install copy console.conf to bconsole.conf if it exists.
78 - Make RunAfterJob error non-fatal.
79 - Rework minor details in status output.
80 - Attempt to define all values for "consoles" in JCR to avoid
81   confusion.
82 28Feb04
83 - Use net start bacula to start Bacula on WinXP/NT/2K 
84   systems after installation. 
85 - Change a few strcpy()s to bstrncpy()s in signal.
86 - Add "gui on/off" command to console to turn on gui mode,
87   which will adapt Bacula better to batch or gui programs.
88   Currently, it prevents commas from being inserted into
89   numbers in the list command.
90 - Tweak some of the Makefiles so that the install is done with
91   the right program (nothing really changed).
92 - Install logrotate in the "make autostart" of Bacula on RedHat.
93 - Implement SIGHUP while jobs are running. It *seems* to work but is
94   a bit fragile and still crashes if you push it. More work needed.
95 - Applied Phil's GNOME 1.4 patch. Very clean. Thanks Phil.
96 - Major updates to the native Win32 installer.
97 27Feb04
98 - Restructure free of conf resources to handle job_end_push()
99   and SIGHUP.  Lots of changes little substance.
100 26Feb04
101 - Add mtimeonly=yes/no and keepatime=yes/no to Include list           
102   1.33 style.
103 - Allow no modifier in time and size specifications.
104 - Attempt to implement disk seeking. More work needed.
105 - Implement more in win32 installer and test it.
106 25Feb04
107 - Implement kb, mb, and gb modifiers for size, which mean
108   1,000 bytes, 1,000,000, ... bytes.
109 - Add Makefile to src/win32 to allow building the full 
110   release -- it calls nmake where appropriate.
111 - Remove the rsi directory from win32 as suggested by Christopher
112 - Add Michel Meyers' nsi file to win32 and integrate it with
113   the build.
114 24Feb04
115 - Add the frigging _O_BINARY to the right variable. Win32 works!
116 - Add debug code to state file. There is a problem with Win32 read
117   returning one byte less than it should.
118 - Implement a number of new functions for alist so that it has
119   equivalent functionality to dlist.  It will be used for
120   job_end_push().
121 - More work on state file. 
122 - Added a popup message box on Windows if Bacula Aborts.
123 - Attempt to shutdown the FD server, but doesn't work on Windows. This
124   would have given a cleaner shutdown, no problem.
125 23Feb04
126 - Update projects
127 - Attempt to fix state file on Win32 -- no luck.
128 - Add HPUX tweaks to configure.in 
129 - Update quickstart and install.wml of doc.
130 - Eliminate extern int h_errno from bnet.c by including netdb.h
131 - Eliminate NumJobs from last_job structure so that FD and SD
132   correctly report what is in the state file.
133 22Feb04
134 - Implement daemon state file, and save/restore last_jobs list.
135 - Fix time routines in win32 compat.cpp
136 - Fix a bug of not checking the bpipe_open() status in do_shell_expansion().
137 21Feb04
138 - Add Volker's bacula script to the SuSE directory and convert it
139   to bacula.in
140 - Make LockRes() and UnlockRes() use read/write locks and have
141   debug info to trace locking and unlocking.
142 - Begin work of implementing SIGHUP. It is now enabled for
143   the Director and works only if there are no jobs running,
144   in addition, if the new conf file is incorrect, it will
145   terminate Bacula. Much more work to be done.  I've figured
146   out a scheme to implement it with running jobs without
147   adding individual semaphores or use counts.  
148 - Sort "list jobs" by StartTime rather than JobId, which can
149   be random.
150 16Feb04
151 - Add a lot of "const" to char * arguments to keep the native
152   Sun compiler happy.
153 - Added first cut of message queuing to prevent recursion in
154   low level routines. This code is not yet working.
155 - Spent a *huge* amount of time looking at the tape driver
156   code in the wake of several reports of tape labels getting
157   trashed. The code looks fine.
158 - Created a tape with an error (by writing a block at the
159   beginning of a tape that had valid data), and found that
160   Under Linux there is no way to read past an I/O error.
161   I tried mt; I tried my own program (btape); and I tried
162   using scsitape, which talks directly to the scsi driver.
163   This is *VERY BAD* news.
164 - I spent an *enormous* amount of time enhancing the btape
165   test program as well as making the fill command work with
166   both one and two tapes and the autochanger if configured.
167   The multiple tape fill test is now quite comprehensive.
168   It checks the last block on the first tape, the first block
169   on the second tape, and the last block (11) on the second
170   tape.
171 - Teaked the tape driver for several functions to use the 
172   OS driver's notion of mt_file if there is an error.
173 13Feb04
174 - Add DB update scripts retrieved by Scott to a new updatedb
175   directory at the top level.
176 - Add -p option to bcopy to allow ignoring errors on input.
177 - COALESCE(xx,0) does not work on PostgreSQL because the 0 is not a 
178   correct time. Replaced by adding LastWritten IS NULL to the sort
179   line as was first suggested by JML.
180 12Feb04
181 - Use COALESCE(LastWritten, 0) in sql_find.c to get NULLs to sort last.
182   See note above.
183 - Add write/read and positioning test to btape "test" program.
184 10Feb04
185 - Fix bad printf of InChanger flag reported by Pascal Pederiva.
186 - Fix bad indexing off stack in authenticate.c reported by
187   Pascal Pederiva.
188 09Feb04
189 - Add \n to hosts.access reject message.
190 - Implement security message class and make hosts.access message use
191   that class.
192 08Feb04
193 - Fix check_memory bug in ua_query.c, which gives a bus error on Solaris.
194   This affected only the query command.
195 07Feb04
196 - Added backup to cdwriter script to examples provided by Johan Decock.
197 - Fixed a bug where ls really did lsmark (just invert command table
198   entries).
199 - Fix bug where a soft linked file and a directory had the same name
200   by treating the soft link as a directory and putting the entries under
201   it. This fixes the bug reported by Alexander Mueller.
202 - Fix a deadlock situation in the new watchdog code where the 
203   watchdog locks its semaphore, and attempts to lock the jcr_chain,
204   but another thread has locked the jcr_chain and wants to free a
205   watchdog, which tries to lock the watchdog semaphore -- deadlock!
206   Used read/write locks to solve the problem. 
207 - Improved the error messages when I/O errors or buffer id errors
208   are detected, and prevent non-sense errors from being printed.
209 - Fix some incorrect messages in restore if no name is supplied
210   on the command line (e.g. pool= ).
211 - Add the third digit to the release version number.
212 04Feb04
213 - Add -l option to bls that causes it to ignore tape label errors.
214 03Feb04
215 - Correct problems with jobs scheduled at a later time by hand.
216   Missing unlock(), backward test on pthread_create status.
217 - Fix setip crash reported by Alan Brown.
218 - Create bacula.spec.in in SuSE directory from Scott.
219 - Fix missing unlock() in ua_status on access denial.
220 - Lots of little cleanups, improving jcr use_count debug printing.
221 - Add EMSG to mem_pool utilization statistics.
222 01Feb04
223 - New bacula.spec.in file from Scott
224 - Add Scott's spec file to the platforms/suse directory
225 - Modify configure.in to make platforms/suse/bacula.spec
226 - Do not allow a resource name to be specified twice.
227
228 2004-01-30 Version 1.33-30Jan04 Release
229 30Jan04
230 - Apply Jess Guardiani's second fix to list autochanger volumes without
231   opening the drive (necessary on FreeBSD if no tape is in the drive).
232 - Added Postgresql configure search libraries recommended by Alan Brown.
233 29Jan04
234 - Reworked the command line handler in restore to walk through the
235   arguments one at a time. This makes the file= entries work correctly.
236   Also reworked the code that takes the MediaType and finds a 
237   storage device.
238 26Jan04
239 - I've noticed that the backups of Rufus, my development machine, can be
240   "stuck" for about 12 hours, then suddenly they run. In running the 
241   debugger, I see that it was stuck on the select() statement waiting
242   for the Hello.  Why this happens I am not sure. I re-organized the code
243   a bit because it didn't seem to be as robust as it could, but I cannot
244   explain the problem. 
245 - As a consequence of the above, I have implemented a new bsock timer that
246   can be started and stopped. This is based on Nic Bellamy's new watchdog 
247   code. The timer is set with start_bsock_timer(bsock, timeout); If the
248   timeout expires, the bsock will be marked as timed_out and interrupted
249   with a pthread_kill() on the current thread.
250 - Added 5 minute bsock timers to all the opening Hello/authentication 
251   exchanges between the various daemons.               
252 24Jan04
253 - New spec file from Scott.
254 - New patch file from Scott for create_sqlite_database
255 - Fix crash in run command if invalid pool specified on the command line
256   and then the user cancels the Pool prompt.
257 - Separate Console and ConsoleFont resources in gnome2 conf files.
258 - Remove possibly bad ASSERTs from bnet.c
259 - Remove open() of device in dircmd.c, which fails on FreeBSD with
260   an autoloader -- thanks to Jesse Guardiani for this fix.
261 20Jan04
262 - Remove all "hostname -s" from configure except for RedHat. Use uname -n instead.
263 - Implement SetIP command.
264 - Implement Close On Poll in Device resource on SD.
265 - Implement Full, Inc, and Diff Pools.
266 - Implement Access control lists for Consoles.
267 18Jan04
268 - Define default working_dir as /var/bacula/working.
269 - Implement setip console command to set new IP address for a Client.
270 17Jan04
271 - Implement maximum network buffer size directives.
272 - Good first cut at access control lists for the console.
273 - Optimize restore to select only latest Differential backup after
274   the Full, and then all following Incremental backups. Previously
275   everything after Full was selected.
276 16Jan04
277 - Organize kernstodo a bit (more to be done).
278 - Add client IP address to BSOCK structure.
279 - Use bit fields where appropriate in BSOCK structure.
280 - Pass UAContext to ua authenticate in Director, and make it
281   set the appropriate console (or NULL for none).
282 - Tweak restore "run" argument handling and add "files" keyword.
283 - Add device name or Volume name to some SD messages.
284 15Jan04
285 - First cut multiple consoles.
286 14Jan04
287 - Update kernstodo
288 - Add quit command to restore tree handler.
289 - Make restore tree handler remember if a hard link is present, and
290   in doing a mark, only get database entry if there is a hard link.
291   mark commands thus run at least 2 orders of magnitude faster.
292 - Add files=xxx field to run command submitted for restore.   
293 - Add yes to restore run command if either yes or run is command line
294   argument.
295 - Make "yes" on command line argument skip prompt for modification of
296   run job.
297 - Add markdir and unmarkdir -- both affect only the directory in
298   question and do not do a recursive descent.
299 - Make tree command automatically mark all higher level directories to
300   be restored when a directory or a file is selected.  Such directories
301   are indicated by preceding the name with a + to indicate that only
302   the directory entry is selected and not the whole directory tree.
303 - Modify a few tree commands to walk through all arguments rather than
304   just taking the first one.
305 13Jan04
306 - Update copyright date on changed files.
307 - Make mark command in restore tree run *much* faster by accessing database only
308   if the file actually is hard linked -- determined at time tree it built by
309   keeping a has_link bit in the tree entry.
310 12Jan04 
311 - Modify findlib/makepath.c to create all parent directories with full permissions.
312   This should solve the access problems on restoring files on Win32 systems.
313 - Modify restore to report **** Restore Error **** if any error are found.
314   I.e. a file could not be created.
315 - Change a few errors into warnings -- e.g. if permissions could not be set, but
316   the file is actually restored.
317 11Jan04
318 - Replace bsd_queue with dlist in lib/watchdog.c
319 - Add Date: header to bsmtp.  Thanks to Meno Abels (abels) on SourceForge
320   for reporting this.
321 - Remove ap==NULL check in src/lib/var.c as suggested by Christoph Barbian
322   because ap (va_list) is a struct on the Alpha, so the code does not
323   compile.
324 10Jan04
325 - Implement first cut of polling for a Volume.  New Device directive
326    "Volume Poll Interval = xxx" where xxx is a time specification      
327    (e.g. 5min). Default is off.
328 - Call pthread_cancel on SD msgchan only if the threadid is non-zero.
329 07Jan04
330 - Change RH autostart scripts to start in Dan's order.
331
332 2004-01-06 Version 1.33-06Jan04 Release
333 06Jan04
334 - Correct calculation of week of month in scheduler and in scheduled
335   listing.
336 04Jan04
337 - Fix cancel of job waiting on mount to be a bit cleaner.
338 03Jan04
339 - Fix seg fault -- don't close db in db_open_database(). It must explicitly
340   be called.
341 - Doc updates
342 - Allow purge of a single JobId from a Volume (code untested)
343 - Implement fix to keep SD from looping complaining about the wrong volume
344   at the end of a tape -- reported by Phil, and fix confirmed by him. I cannot
345   seem to reproduce the bug here.
346 - Clean up a few more strcpy()s.
347 01Jan04
348 - Fix configure.in FD User print per Lars.
349 - Doc update.
350 - New bacula.spec.in from Scott. Nice!
351 - Make RunAfterJob non-fatal if it errs since the Job has really  
352   already completed the save.
353 - Replace sprintf with bsnprintf in message.c
354 31Dec03
355 - Note, this change affects only the Win32 FD.
356 - Fixed Win32 FD crash due to missing argument in status command. It
357   always crashed if there was a job that had previously run.  Thanks to
358   Christopher Hull for finding and diagnosing this problem.
359 29Dec03
360 - Fix SELECT as indicated by Dan in sql_get.c for returning Volume names.
361 - Fix last_jobs list crash for utility programs (btape, ...).
362 - Correct editing of FileSet name into SQL command.
363 - Allow calling watchdog stop without initialization for utility programs.
364 - Enhance btape test by attempting to forward space past the end of the tape.
365 - Detect CAP_FASTFSF in btape test as possible reason for failure.
366 - Attempt to prevent infinite loops in fsf_dev() if device not properly
367   configured.
368 - Attempt to get correct file number on tape after backspacing at EOM. The    
369   correction should resolve differences in OS tape driver implementations.
370 - Add ctl-c detection to bconsole. When reading from tty, interrupts any
371   output from Bacula, when reading from a file, it terminates the reading
372   and returns possibly exiting if it is a batch job.
373 - Create devel_bacula.in script and make it configure itself. Very similar
374   to the new bacula.in.  
375 - Modify bacula.in to have separate file locations for each daemon -- makes
376   it easier to make a new devel_bacula.in when there are changes.
377 - Remove old config files when rebuilding configure to avoid error msgs.
378 - Fix btape "test" to respect TWO EOF.
379 - Fix fsf_dev() to use system notion of file if it is valid after bsf_dev().
380 - Move btraceback.gdb to scripts directory on installl.
381 - Add new mandrake bacula.spec.in
382 28Dec03
383 - Find commonset of c_iflags that work with FreeBSD tcsetattr on terminals.
384 - Remove comments from string concatenation -- doesn't work on FreeBSD
385   compiler.
386 - Moderately improve bpipe_close() errors. Must rethink status return.
387 - Eliminate some Emsgs in favor of Jmsgs.
388 27Dec03
389 - Add optional Pool keyword on restore command line. If specified, the pool
390   used will be restricted to the specified pool.
391 - "Finish" implementation of JobDefs.
392 - Fix directory for chmod of cats scripts.
393 26Dec03
394 - Implement foreach_res() #define and start replacing old code.
395 - Work some more on jobdefs -- more to be done.
396 - Implement bstrftime_nc() bstrftime with no century.
397 - Fix static console problem in gnome2 and gnome directories reported by Alan 
398   Brown.
399 - Add code to test for valid Resource Names. Permitted characters are now
400   alpha, numeric, colon, period, minus, underscore, space.
401 - Turnoff some unused code in timers.c
402 - Start adding code to dev.c to prevent infinite loops if fast forward space
403   file (MTFSF) is configured on but not properly supported by OS.
404 24Nov03
405 - Sort FileSet selection list by CreateTime.
406 - Add "lsmark", and "estimate" to tree routines.
407 - Doing a mark or unmark now prints how many entries were changed.
408 - Add command argument parsing to btape.c
409 - Enhance EOT to print file:block on message.
410 - Add repeat counts on btape bsf, fsf, bsr, fsr, and weof commands.
411 - Enhance btape's fill command to be much clearer and more reliable.
412 - Add state file to btape so that unfill command can be done any time
413   after a fill command.
414 - Use reposition_dev() to position for read back of last block.
415 22Nov03
416 - Zap InChanger flag only if setting Slot to non-zero.
417 - Added new SD directive TwoEOF, default off, that tells Bacula whether
418   to write one or two EOFs for EOM.  For the OnStream driver it must
419   be off, otherwise an empty file will be created.
420 - Cleaned up the btape "fill" command to compare the last block written
421   and read rather than just printing them.
422 21Nov03
423 - Implement btape test for autochanger.
424 - Implement btape test for Fast Forward Space File.
425 - Moved up to cygwin 1.5.5-1
426 - Implemented Fast Forward Space File
427 20Nov03
428 - Add support for selecting volumes from InChanger list first, then
429   selecting from all available volumes.
430 - Ensure that Volumes are selected from oldest LastWritten data/time.
431 - A couple of bug fixes ensuring the proper ordering of volumes.
432 19Nov03
433 - Return oldest LastWritten for find_next_volume.
434 - Remove ASSERT from stored/acquire.c that could trip when it shouldn't.
435 - Enhance SD status if debug_level > 1 to show details of dev status.
436 18Nov03
437 - Create update_bacula_tables, ... scripts and modify configure and Makefiles
438 - Eliminate is_num() and use is_an_integer().
439 - Add user slot selection code "slots=1,2-3,5,10, ..."
440 - Start daemons at level 90 rather than 20 so that MySQL will already
441   be started.
442 - Write alter_mysql_tables.in and alter_sqlite_tables.in
443 - Add Drive and InChanger to Media record.
444 - Update database level to 7.
445 - Add db_make_inchanger_unique() and call it when creating and updating
446   the Media record.
447 - Add Drive and InChanger to database code for Media record.
448 - Allow changing InChanger flag in update command.
449 - First cut at allowing the user to specify slots for updating autochanger.
450 - Add scan to "update slots scan".
451 - Add command in SD to readlabel.
452 15Nov03
453 - In the bacula start/stop script, ordered the stop: FD SD Dir to
454   give the SD the best chances of updating the catalog before dying.
455 - Add Drive and InChanger to MEDIA_DBR record and to Volume update
456   from the SD.
457 - Reorganize the Volume info update from SD so that the Dir sends back the
458   current information in case the Volume status has changed by expiring.
459   The DIR-SD protocol is not backward compatible (must update).
460 - Fixed the signal handler to pass the signal to the exit_handler() 
461   previously it passed 1.
462 - Modified SD so that on normal shutdown, it walks through all jcrs and
463   cancels them so that the Volume status will be updated in the catalog.
464 - Found and fixed a bug where ST_LABEL was not set in append mode
465   (when a different tape was accepted other than the original one
466   proposed by the DIR.
467 - Update the catalog Volume info after dev->file is incremented rather
468   than waiting for end of job.
469 12Nov03
470 - Change getdomainname() prototype for Darwin.
471 - Add gethost_strerror() to create correct error message for
472   gethostbyname().
473 - After doing a kill() of a stalled connection in watchdog, turn off
474   the timer to prevent an infinite loop.
475 - Allow Bacula to rewrite the label on a disk volume.
476 - Correct usage report printed by bsmtp.
477 11Nov03
478 - Complete changing references to bsmtp from smtp.
479 - Add L_NONE for Admin and Restore jobs and update level_to_str()
480 - Fix segfault from double free of RestoreBootstrap in job.c
481 10Nov03
482 - Change console to bconsole
483 - Change console.conf to bconsole.conf
484 - Change smtp to bsmtp
485 - Implement .bconsolerc
486 - Check if volume has expired when doing an update media for the SD
487 09Nov03
488 - Implement new code that assures that a non-zero Slot is unique within
489   a given Pool. When setting a non-zero Slot, the Slot of all other
490   Volumes with the same Slot is set to zero.  Redone later to add
491   InChanger flag
492 07Nov03
493 - Fix bug reported by Lars where an incorrect Volume name was printed
494   by the "status dir" command.
495 06Nov03
496 - Pretty up a few error messages printed by smtp.
497 - Make btime_t int64_t so that one can do arithmetic.
498 - Implement since as utime (64 bit UTC). 
499 - Compute clock diff between Dir and FD, and adjust since time.
500 - Apply SQL fix from Nic Bellamy (thanks).
501 - Apply John's zlib #ifdefing fix.
502 05Nov03
503 - Add Dan's with-sd-user, ... to configure.in.
504 - Add Dan's userid and group modifications to bacula.in
505 - Lots of documentation updates.
506 - Make console print "Enter a period to cancel a command" when starting.
507 - Fix the "list nextvol" command so that it doesn't try to close the
508   database twice, giving a segfault.
509 - Fix (hopefully) to dircmd.c so that a mount request does a pthread_cond_signal.
510   There was one path were the signal was not sent. This should fix the bug
511   that requires you to do two "mount" commands to free a job waiting on a mount.
512 - Make dir_ask_sysop_to_mount_next_volume() return immediately if a slot is
513   specified.
514 - Correct some of the messages in testfind.c (pointed out by Dan -- thanks).
515 - Alias fd to client, sd to storage.
516 - Changed order of Console commands so that short commands such as q (quit) 
517   are more logical.
518
519 2003-11-03 Version 1.32d 02Nov03 Release
520 02Nov03
521 - Mainly a bug fix release.
522 - Do a clean of both Gnome directories.
523 - Require that FileSet id match when finding an Incremental
524   previous job. This was already the case for a Full.
525 - Print message if no status returned from FD.
526 - Correct "Do not forget to mount the drive" message. Test was
527   backward.
528 - "status dir" stopped scanning the run records on the first
529   one that matched giving an incomplete listing.
530 - Edit commas in Bytes on "estimate" command output.
531
532 2003-10-30 Version 1.32c 30Oct03 Release
533 29Oct03
534 - Add %v to job edit codes. It edits in the VolumeName(s).
535 - Add code to ensure that fds 0,1, and 2 are defined by dup'ing them
536   to /dev/null if necessary.  Mostly for Windows that does not have them.
537 - Error check dir_create_jobmedia_record() 2 places in acquire.c
538 26Oct03
539 - More doc fixes.
540 - Make message buffer longer for a status message that was    
541   truncated.        
542 - Put termination on varargs calls in gnome2-console.
543 - Scroll only if text sent and not for status update.
544 - Add all possible Status codes the jobstatus_to_ascii()
545 25Oct03
546 - Add new spec file and cats patch from Scott.
547 - Optimize tree.c a bit -- turn off debug code, keep node fname
548   length for fast rejection, add some statistics, allocate
549   in 100K and 1Meg chunks, use bool, uint16_t and uint8_t to
550   reduce node packet size.
551 24Oct03
552 - Eliminate ua_retention.c that was not used.
553 - Improve error message when closing brace missing in conf file.
554 - More doc updates.
555 - Eliminate Don't forget to mount if it is a disk file.
556 - Fix Gnome2 scrolling and blank screen problems.
557 - Eliminate multiple JobIds in restore selection list.
558 - Fix non-portable varargs code in var.c
559 - Make doc fixes/changes suggested by Dan Languille
560 23Oct03
561 - Document new features.
562 - Implement mod of Verify Job at the run prompt.
563 - Correct SQL table definitions so that MySQL and SQLite
564   have all the values in the same position.
565 - Correct a typo in configure.in when configuring GNOME.
566 - In doing a "status dir" make it loop over all the run
567   commands in the Schedule rather than doing on the first one.
568 - Close all unused file descriptors in bpipe.c otherwise if
569   a daemon is started, it will keep our TCP/IP port open.
570 22Oct03
571 - Print block read error (checksum, I/O, BB01, ...) once then
572   the number found at the end of the reading.
573 - Implement RunAfterFailedJob
574 - Change db_find_job_start_time() to require a Full save before
575   running an Incremental or Differential job.
576 - Remove has_volume_expired from code that updates vol info
577 21Oct03
578 - Implement "delete job"
579 20Oct03
580 - More documentation, add Marc Brueckner's tips to manual.
581 - Tweak gnome2-console scroll window.
582 - Turn off some debug info.
583 18Oct03
584 - Modify Verify to accept VerifyJob = xx, where the last backup job
585   of job xxx will be verified.
586 - Add changing the Pool name for a Volume to "update volume"
587 - Write most of the code for Verify Disk to Catalog.
588 - Recreate the src/gnome2-console directory.
589 - Change all the text handling code to the Gnome 2.0 way.
590 - Correct the way verify filenames are returned to the Director so
591   that directories are in canonical form (i.e. trailing /).
592 - Handle casting bug in glade-2 by sed'ing support.c in gnome2-console.
593
594 2003-10-15 Version 1.32b 14Oct03 Release
595 14Oct03
596 - Modify configure so that if threaded MySQL client library
597   is not present, Bacula will link with the non-threaded 
598   version.
599 - Updates to the Web pages and to the manual.
600 - Remove trademark symbol from title. Phil pointed out that it
601   does not display correctly in a title.
602 11Oct03
603 - Implement restore by file before date. 
604 - Change restore arguments a bit so that you can feed it
605   multiple jobid= specifications or multiple file= specifications.
606 - Pass restore with run option on to run_cmd.
607 - Make run-cmd not prompt if it has a "run" on the command line.
608 10Oct03
609 - When pruning, select only old orphanned jobs to delete so that
610   the current job is not pruned too.
611 09Oct03
612 - Corrected return status for bsf_dev and bsr_dev in block.c and btape.c
613 - dev.c used incorrect ruturn status for bsf_dev in the BSF at EOM
614   code. This caused all appends on FreeBSD to fail.
615 - Turn on fast block rejection code.
616 08Oct03
617 - Optimize file index searches by adding a count to the bootstrap.
618 - Write single files/blocks to bootstrap without the second part.
619 - Add current Volume status to the cannot use this Volume message.
620 - Zero the rx->bsr in ua_restore when freeing so it doesn't get
621   freed twice.
622 - Lots of testing on the restore
623 - I noticed that SD and FD bootstrap files were not always
624   deleted, so delete them as soon as possible.
625 - Restore by file (or by selecting files) created some
626   horrible looking bsr files that defeated the forward
627   spacing code, so fix write_findex to work right.
628 - Add zlib_strerror() routine in filed/restore in case
629   of zlib errors.
630 - In filed/restore.c make sure all error returns cleanup
631   and close the open file descriptor.
632 - Make sure to set *non* over filename in attr packet
633   after file is found, so error messages that print the
634   filename don't print an old, incorrect name.
635 - Allow bclose() to be called after closing the file.
636 - Fix a number of unclear help messages, ... reported by
637   Phil in btape.
638 - Retweak stored/read_record.c so that it does forward
639   spacing at the beginning of every tape, not just the
640   first one.
641 - Print repositioning message if verbose is set.
642
643 2003-10-01 Version 1.32a 03Oct03 Release
644 04Oct03
645 - Combine the code in ua_output and ua_status that searches
646   the run records.
647 03Oct03
648 - Fixed "list nextvol" to search for the correct pool in the
649   Schedule Run records.
650 - Correct an error in is_block_zero. It found a false
651   match if the first 1016 bytes of a 32K buffer and     
652   the last 248 bytes are zero.  Broke the sparse option.
653 01Oct03
654 - More documentation.
655 - Test if multiple mail addresses works. Yes.
656 - Add debug Jmsg() to trigger if the file I/O packet is
657   not closed in the FD, i.e file descriptor leaks.
658 - When error occurs reading label in mount.c, start from
659   the very top so that the retry count is in effect.
660 - Zap the mode in soft links in testls.c for regression
661   testing.
662
663 2003-10-01 Version 1.32 30Sep03 Release
664 28Sep03
665 - Enhance manual faq, regression ...
666 - Make FreeBSD read sizes always be a multiple of 512. Needed
667   to read raw disks.
668 - Make FreeBSD accept block AND character devices for raw
669   disk reads.  On FreeBSD there are no block devices.
670 27Sep03
671 - Fix printing of EndTime on job report after rescheduling.
672 - Fix jobq.c error returns to clean up before returning.
673 - Make Cleaning tape aware of "unlabeled" volumes.
674 - If a job is rescheduled, ensure that old job is
675   removed from SD's jcr queue -- i.e. it is still waiting
676   for FD connection.
677 - Test rescheduling code.
678 - Change ./configure to detect Cygwin enviornments.
679
680 2003-09-26 Version 1.32 26Sep03 Beta
681 - Add regression and GUI-interface chapters to the manual.
682 - Fix "label" of a volume that is already in the catalog,
683   but not yet labeled.
684 - Correct the test for spooling attributes which was backward.
685   This caused the creation of a spool file in the working
686   directory for every job run.
687 - Print to the job output stream when block checksum errors
688   occur, but continue processing. If more than one occurs,
689   print number at end of job.
690 - Remove a few unneeded tests from configure.in
691 - Modify configure to use -pthread on FreeBSD 4.8,
692   but nothing on FreeBSD 5.1
693 - Clarify that bmicrosleep() takes sec and microsecs
694 - Apply Franc Carter's code to specify a DB host in 
695   bscan.
696 - Fix sanity login length test in stored/dircmd.c
697 - remove old code fro stored/job.c
698 - Lots of work on regress so that it works on FreeBSD
699   and Solaris.
700 - Make the default gnome-console wider (console.c)
701 - Add \r to the items that terminate a token.
702
703 2003-09-20 Version 1.32 20Sep03 Beta
704 - Replace a number strcpy() calls with bstrncpy().
705 - Added code to ensure that the names for each resource
706   type are unique. Two resources of different types can
707   have the same name.
708 - More documentation
709 - Added new full length modifiers for time intervals.
710   Compatible with previous method EXCEPT a modifier is now
711   manditory.
712 - Completely restructured recycling. It should work now, but
713   in any case, the logic is much cleaner. A lot of new
714   code in next_vol.c
715 - Added a few pthread_xx_destroy() for items inited.
716 - Nic Bellamy pointed out that it wasn't necessary to do 
717   destroy() of static initialized pthread variables -- fixed
718   watchdog.
719 - update VolStatus asked for the media and volume twice.
720 - Changed a few more strcpy() to bstrncpy().
721 - Made VolBytes=1 as indicator that the Volume is labeled.
722 - Modified creation of Media record to include VolBytes,
723   same for sql_update - also set LabelDate if VolBytes = 1.
724 - Copy any statically linked programs to install directory.
725 - Change relabel flag to label in Update_media protocol Dir<->SD.
726 - Change a few strcpy to bstrncpy ...
727 - Update Media record after an automatic tape label.  
728 - Added more debug code to bnet_server and bnet.c to attempt to
729   track down Alex's SD segfault (BSOCK==0)
730 - Add additional debug cod for authentication errors in cram-md5.     
731 - Implement "list nextvol job=xx" and add Volume to Dir status.
732 - Retry waitpid if interrupted -- needed for FreeBSD!
733 - Move lex.c debug level to 900
734 - Add new aliases SDAddress, ...
735 - Final changes for variable expansion
736 - Possible fix to Alex's SD crashes
737 - Correct incrementing counters not in catalog -- reported by
738   Chris Allen.
739 - Correct memory leak in core var.c code -- reported by 
740   Chris Allen.
741 - Make documentation of variable substitution a bit clearer.
742 - Apply Nic Bellamy's patch to dbcheck.c to fix SQL to work
743   on both MySQL and SQLite.
744 - Finally fixed the .messages that was sent during prompts
745   in the console with no readline.
746 - Implement new Include/Exclude semantics.
747 - Fix a good number of segfaults reported by Chris Allen in
748   the variable expansion code. 
749 - Print warning message if a job is blocked by user unmount.
750 - Fix additional variable expansion problem reported by Chris Allen.
751 - Fix pathconf() error status bug that caused a segfault on
752   a FreeBSD system -- reported by Gernot Hueber.
753 - Make sure the console sends ".messages" only when at the
754   command line prompt.
755 - Apply a patch from Nic Bellamy that corrects a file descriptor
756   leak in the Storage deamon when a job is canceled. (Thanks)
757 - Implement < and | in File daemon.
758 - Implement ClientRunBeforeJob and ClientRunAfterJob.
759 - Corrected BSRatEOF to be BSFatEOF in btape --
760   reported by Lars Koller.
761 - Documented BSFatEof
762 - Eliminated save_level in FD replaced by JobLevel.
763 - Increased MAX_RES_ITEMS from 35 to 50 to handle
764   new ClientRunBeforeJob ...
765 - Add line number in error message for restore from file.
766 - Correct editing of jobids (misplaced comma).
767 - Implement restore files.
768 - Quickie patch to allow Purged Volumes to be mounted.   
769   Must review algorithm.
770 - Eliminate a duplicated query from query.sql
771 - Restructure ua_restore.c so that I can add restore files.
772 - Correct positioning problem at beginning of a second volume 
773   introduced with the new forward spacing code.
774 - Eliminated a sprintf() in the tree routines.
775 - Doc updates
776 - Added HOST_OS, DISTNAME, and DISTVER to the status output.
777 - Eliminated a few stray Dmsgn(000, messages making them either
778   debug_level 100, or Pmsg().
779 - Made the default "Maximum File Size" 1Gbyte in SD.
780 - Cache path in tree.c to reduce calls to make_tree_path 
781 - Documentation updates
782 - Implement forward space file and block when reading a bsr.
783 - Fixed a bug in db_find_next_volume() where the VolStatus was
784   not being returned.
785 - Rework some of the query.sql records that were incomplete.
786 - Fixed an ambigous SQL statement in restore.
787 - Fix proper sorting order in restore display last 20 jobs.
788 - Remove duplicate JobId's in feeding the directory tree.
789 - Fix an orphaned ua buffer due to a return that should have been 
790   break so that cleanup code executed.
791 - Changed some strcats and sprintfs int bstrncat() ... to prevent
792   possible buffer overflows.
793 - Fix max file size code on tape so that after writing EOF, 
794   an appropriate jobmedia record is created.
795 - Fix error messages in dev.c, which were copied into lots of
796   different subroutines without updating the text.
797 - Add reposition_dev(), and make more of the return statuses of
798   dev routine standard.
799 - Eliminate old semaphore and workq code. Keep only new jobq code.
800 - Try to get a better default size for the gnome-console
801 - Add code to avoid race conditions in starting/stoping the
802   heartbeat thread.
803 - Correct potential race condition in heartbeat_stop().
804 - Correct segmentation fault in mysql.c if no password given.
805 - make pm_strcat and pm_strcpy return the string length
806 - Use Phil's code to get the unadorned job name.
807 - Move the MTIOCERRSTAT from just after a write() failure to
808   after writing the EOF marks on FreeBSD systems.
809 - Enhance packet too big error in bnet.c and add some
810   ASSERTs in the send code.
811 - Set heartbeat interval to zero by default.
812 - Add Recycle to list of Update Volume parameters.
813 - Use bget_dirmsg() wherever possible in Director.
814 - Split next_volume code from catreq.c to next_vol.c
815 - Consolidate editing job codes into a single routine.
816 - Add Job resource name
817 - Remove check for Win32 attributes in bls.  It doesn't
818   need to read them, only print ls -l.
819 - Add SDConnectTimeout in FD.
820 - Add Scott's perlgui directory
821 - Upgrade from RH7.3 to RH9.  New autoconf.
822 - Eliminate gnome2-console directory.
823 - Correct English in status command.
824 - Eliminate old shell expansion code and use BPIPE to call shell      
825   with echo command.
826 - Documentation as usual.
827 - Add a new bacula.spec for Mandrake
828 - Add ownership to alist items. Default the list owns the items.
829 - Make record_cb return a status (preparation for internal use).
830 - Remove all clearing of remainder in read_record.c -- not necessary
831 - Write a tapetest program for FreeBSD end of tape testing.
832 - Modify read.c in Bacula to use read_record.c
833 - Implement multiple records in read_record.c. One for each session that
834   is open.  Free the record with the EOS_LABEL is found (or at the
835   end of the scan).
836
837 2003-08-02 Version 1.31a 02Aug03 Released
838 - Yifang Dai reported a case where he stress tested Bacula and
839   backed up to four volumes, but only two were selected for the
840   restore. This is because I forgot that the selection could
841   span a volume entirely.
842 - Added a missing CLIENT_FOUND_ROWS to the second attempt to open
843   the MySQL database -- this prevents UPDATE errors if nothing
844   actually changed.
845 - Applied corrections to the manual supplied by Bob Collins.  Many thanks!
846
847 2003-07-30 Version 1.31 Beta 30Jul03
848 - Integrated Robert Mathews improved description of Priorities into
849   the manual.
850 - Chased down the "The data is not valid" bug on WinMe/98/95.
851 - Found an orphaned buffer in the set_attributs part of WinMe/98/95.
852 - Add sleep(1) to console when it gets a SIGTSTP signal 
853   to prevent it from using 100% of the CPU.
854 - Improve description of Priorities.
855 - Add a bit more documentation to jobq.c
856 - Complete hash table routine htable.c htable.h
857 - Change M_INFO to M_ERROR in attribs.c for Windows errors.
858
859 2003-07-23 Version 1.31 Beta 22Jul03
860 - Apply a patch from Nic Bellamy that clarifies the error messages 
861   during recycling volumes.
862 - Documentation.
863 - Clear VolCatInfo in askdir.c so that readbytes is zeroed.
864 - Add SD statistics to backup report.
865 - Removed old workq code.
866 - Fixed rescheduling after error.
867 - Fixed delayed starts which were not working.
868 - Added priority to values that can change when starting
869   a job.
870 - Complete implementation of new job scheduler. jobq.h jobq.c
871   This code is turned off unless specifically enabled in src/version.h
872 - Integrate code from Nic Bellamy to check for recycled volume in
873   mount.c in SD.
874 - Fix a couple of bugs in dlist.c
875 - Begin implementation of new job scheduler.
876 - Take serial.h provided by David Craigon, which corrects differences in 
877   prototypes between serial.h and serial.c.
878 - Make db_get_media_ids() return Media Ids only for the current pool.
879 - Add new jobq.h and jobq.c drived from workq.
880 - Add JobPriority to jcr, and Priority to Job resource as well as
881   to the run line in a Schedule.
882 - Remove unused pool record from autoprune.c.
883 - Implement Nic Bellamy's RecycleCurrentVolume.     
884 - Implement RecycleOldestVolume.
885 - Begin adding new JOB_QUEUE code to the Director.
886 - Create a single routine recycle_volume().
887 - Retry accept(), bind() and socket() if EINTR occurs.
888 - Implement insert_before(), insert_after(), and empty() for dlist class.
889   Also require offset to be given by giving item and link address.
890 - Make error some messages in smtp.c a bit more explicit.
891
892 2003-07-12 Version 1.31 Beta 14Jul03
893 - Marc Brueckner reported a crash during restore (a missing tree->)
894 - Moved host.h.in file from filed to src.
895 - Update btraceback to include host os, distname, distver in output.
896 - Split list (in lib) into alist and dlist both with .h and .c.
897 - Update home page to include Project status page.
898
899 2003-07-12 Version 1.31 Beta 10Jul03
900 - Manual updates.
901 - Clean up some unused variables detected by the IRIX compiler.
902 - Test two directories on Win32 -- caused a crash. I forgot
903   to NULL the uid cache pointer after releasing it.
904 - Use bstrncpy() instead of strcpy() in find_files.
905 - Clear a few linked lists in the temp directory packed in find_one.c
906 - Eliminate an unnecessary variable in attr.c
907 - Clear the cache pointer after release in idcache.c
908 - Implement a new C++ doubly linked list class.
909
910 2003-07-08 Version 1.31 Beta 08Jul03
911 - Update document for Win32 stuff.
912 - Ensure VolStatus value for update is permitted.
913 - Fix cached_path so that it is local to the jcr, otherwise, there
914   are problems from job to job.
915 - Fixed idcache.c which was not thread safe and didn't release memory,
916   and didn't always edit the userid correctly.
917 - Correct missing pool memory allocation in update voluseduration.
918 - Release mutex in pool_mem.c before triggering ASSERT.
919 - Lock database while recycling.
920 - Fix a bug in editing since where I forgot to update to the new size.  
921 - Implement all the command line update arguments.
922 - Modify label to use volume=xxx for the new volume and oldvolume=yyy
923   if doing a relable.
924 - Added yes to run command line arguments.
925 - Clear errno in editing a string to utime.
926 - In restore print only volumes that will actually be used.
927 - Fix bextract -- add appropriate breaks in new case code.
928 - Add a new test -- bsr-opt-test for testing bsr optimization. As usual,
929   it pointed out a bug where the directory tree handling code destroyed
930   the restore arg list.
931 - Many updates to the manual.
932 - Pass prefix links flag to FD.
933 - Sort list of commands for Console
934 - Set default FD and SD concurrent jobs to 10.
935 - Rework the find next volume code in catreq.c to correct some minor
936   but subtle logic errors and to eliminate a goto.
937 - Did spell check on manual.
938 - Removed bindtextdomain() as it conflicted with RH8.0 headers
939 - Fixed parse_args to pass address of POOLMEM struct.
940 - Constrain FileIndexes written to BSR to be within range of Volume.
941 - Suppress writing volumes to BSR if they are not actually referenced.
942 - Make FOPTS use alist for match and base entries.
943 - Pass prefix_links to SD.
944 - Add command line interface to most items in "update volume=xxx"
945 - Add command line interface to restore "jobid", "current", "before", "all".
946 - Add command line "yes" to run command to supress prompt.
947 - In new alist code, free only if allocated.
948 - Overload [] with get() code for alist.
949 - Fixed the code that wrote FirstIndex and LastIndex to the database. It
950   was not correct at the end of a volume (basically included indexes in
951   the second volume).
952 - Fixed bscan to work with the new code and to properly build JobMedia
953   records.
954 - Added code to the read end of block.c to properly track Volume bytes,
955   blocks, and files. I thought this was not necessary, but it is critical
956   for bscan to work correctly.
957 - Modified read_record to properly track First/LastIndex -- needed by
958   bscan.
959 - Eliminated some old Volume write code.
960 - Changed RecycleOldestVolume to PurgeOldestVolume
961 - Added what I hope are the "final" touches for Win32 stuff.  There
962   are still a lot of annoying little problems.
963 - Added the "portable=yes/no" option to Include. If set, it disables
964   use of BackupRead/Write for Win32, so in principle, the data should
965   be portable.
966 - Pulled in more recent config.sub and config.guess from /usr/share/libtool
967 - Replaced the system fgets() by a Bacula version that ignores
968   interrupts (i.e. signals).  This truncated output from child processes.
969 - Make file_index int32_t everywhere.
970 - Moved LinkFI into ATTR structure.  Also integrated data_stream there too.
971 - Moved code that sets the stream for writing into create_file.
972 - Removed a signal(SIG_IGN, SIGCHLD) from dird.c that prevented getting
973   the status of child processes.  This allowed removing the FreeBSD 
974   kludge to bpipe.c -- the status is now obtained correctly.
975 - Hand scan the stream header that arrives in append.c to avoid machine
976   dependencies of sscanf().
977 - Implemented code to put Data stream in Attributes record. 
978 - Check if data stream is supported, if not, ignore.
979 - Fix crash when multiple Includes are given (missing parens).
980 - Clear WroteVol in askdir.c when JobMedia record is created.
981 - Implement simple array list class for use in Bacula.  New files
982   are lib/list.c lib/list.h. Probably will not use until version 1.32.
983
984 2003-06-24 Version 1.31 Beta 22Jun03
985 - Change Purging Oldest Volume message to Recycling Oldest Volume.
986 - Limit results from find_oldest_volume to one.
987 - Fix possible buffer overrun in the restore tree handling routines.
988 - Fixed a crash in VerifyToVolume because I moved the close_db()
989   down into the free_ua_context() and should not have done so.
990 - At a "var" command in the Console that does variable expansion and
991   prints it.
992 - Implement first cut of estimate command.
993 - Change find_next_volume() for oldest to use LastWritten instead of
994   FirstWritten -- also add Append to volumes slected.
995 - Do normal recycling before checking for RecycleOldestVolume.
996 - Implemented block rejection on read. This should make restores run
997   much faster. Next release will have block positioning -- even faster.
998 - Very preliminary support for Gnome-2.0.  Text does not yet work.
999 - Correct buffer corruption in find_one.c with long directory names (Win32).
1000 - Make setting owner on directories M_ERROR rather than M_WARNING.
1001 - Fix printing of JobId in run listing for restore job.
1002 - Reduce heartbeat read check interval to every 10 seconds on Cygwin because
1003   there is no working pthread_kill().
1004 - I finally designed a test for multiple simultaneous jobs,
1005   and sure enough it broke when the jobs are split over multiple
1006   volumes.  Now fixed and working!
1007 - Eliminated a few "duplicate" error messages by testing for canceled.
1008 - Add ASSERT for device use count going negative.
1009 - Fix BlockNumber checking in stored/read.c (got first one wrong).
1010 - If socket is timed out, do a shutdown(fd,2) instead of close().
1011 - Fixed return status from SD to FD by setting JobStatus in append_end() 
1012 - Add arrays to Environment variables. Elements separated by |.
1013 - Implement Reschedule On Error, Reschedule Interval, Reschedule Times.
1014 - Add a new pool PM_NAME -- gets a name length buffer.
1015 - Implement fast cancel of FD blocked on writing to SD by using
1016   pthread_cancel(). Turned off on Cygwin due to bug.
1017 - Add code to handle EAGAIN in writing (probably not necessary). Use
1018   select().
1019 - Eliminate size_t from pool control buffers.
1020 - Complete Counter resource.
1021 - Complete LabelFormat (except for WrapCounter) plus counter
1022   inrementation.
1023 - This needs a database change to eliminate PoolId from counters.
1024 - Made a more compact format for the document index.
1025 - Add Phil's checkhost to examples directory (thanks Phil).
1026 - Implement generalized LabelFormat (documentation to come).
1027 - Implement Counter resource.
1028 - Cleanup examples/kernsconfig
1029 - Implement restore to a specific date.
1030 - Fixed a but in automatic labeling (and use durations expiring) analysed
1031   and reported by Rob Proffitt (thanks!).
1032 - Cleaned up a few Cygwin compile problems.
1033 - Made a 10Jun03 release (it is in production here)
1034 - Finally took the big plunge and fixed restoration of links and other
1035   files that have been changed between the backup and restore. Basically
1036   if the file exists, it is deleted, then re-created.
1037 - Purge only Volumes marked Append, Full, Used, or Error.
1038 - Allow pruning of volumes marked Append, in addition to Full and Used.
1039
1040
1041 2003-06-10 Version 1.31 Beta 10Jun03
1042 - Eliminated all plain email addresses and replaced them with " at " in
1043   place of @ to reduce havesting by spammers.  Doc + Web Site.
1044 - Started working on making POOLMEM a struct rather than a char. Lots of
1045   work to do.
1046 - Fixed bscan to handle -V option.
1047 - Fixed bscan to handle two File volumes.
1048 - Corrected a misplaced comma it get_fileset() in cats pointed out by bscan.
1049 - Added two Volume bscan test to regression scripts -- write two volumes,
1050   purge and delete everything, bscan the tapes, and do a restore. It works!
1051 - Reorganized the backup/restore code to move the attribute information into
1052   an ATTR packet, which is passed in place of tons of arguments.  Moved some
1053   code into lib/attr.c and lib/attr.h.  Then eliminated all the duplicate
1054   attribute code.
1055 - Moved FT_ types into baconfig.h.
1056 - Defined FT_ types to use only 16 bits. The upper half of the word is
1057   reserved for adding optional fields in the attributes packet.
1058 - Moved jcr->where into common part of jcr and have it deleted in lib/jcr.c
1059 - Put all attribute reading code on switch() with cases instead of a big
1060   if (restore.c, bls.c, bextract.c, bscan.c, ...)
1061 - set_attributes() now takes ATTR packet, and thus has much fewer args.
1062 - moved print_ls_output() into lib/attr.c  
1063 - implemented is_stream_supported().
1064 - create_file() now takes ATTR packet so has many fewer args.
1065 - add mtime_only code.
1066 - Rewrote bnet.c read and write routines to quit if bsock->terminated is
1067   set.  This will allow setting non-blocking writes and then receiving
1068   a termination message and terminating the Job immediately rather than
1069   waiting 2 hours for the line to timeout.
1070 - Put catalog db name in some error messages.
1071 - Code for restore is now much cleaner, with much of it in lib/attr.c,
1072   and it is now common for all readers.
1073 - Add first cut of proper support for Win32 Backup code.
1074 - Fix bug in restore Win95/98/Me.
1075 - Pass mtime_only flag to FD. Needs config record.
1076
1077 2003-06-04 Version 1.31 Beta 04Jun03
1078 - Fix block.c to check errno only in case of return status -1 as 
1079   suggested by Justin Gibbs (FreeBSD).
1080 - Implemented qfill command in btape for quick testing write/read of a tape.
1081 - Discovered that FreeBSD pthreads re-use the same thread id, which causes
1082   the SD to fail when a user leaves a device unmounted (old pid is reused
1083   and lock_device() thinks the same thread is calling again leading to
1084   inconsistent state). Set id to zero after blocking the device during
1085   unmount.
1086 - A lot of clean up, moving subroutines around for TermCode.
1087 - Free ua->prompt when Job terminates.
1088 - Add AutoPrune and Recycle to values copied from Pool resource
1089   into Pool record on create/updated.
1090 - Implemented bsr for Verify VolumeToCatalog. 
1091 - Improved the Verify Job report using SD and FD term codes.
1092 - Split tree handling routines from ua_restore.c to ua_tree.c
1093 - Split bsr routines from ua_restore.c to bsr.c and bsr.h 
1094 - Fixed clash between FD and SD returned job values. Report now contains
1095   values from FD.  Maybe I should change? or give both.
1096 - Attempt to fix negative use_count for dev packet in SD by adding
1097   a couple of open_dev().   This may be cause of Dan's crash.
1098 - Clear no_wait_id when device is unblocked. This may be cause of Dan's crash.
1099 - Eliminate old "new lock code".
1100 - Add configure of mtx-changer for mtx path.
1101 - Always rewind tape before releasing it (for FreeBSD).
1102 - StartBlock was one too large for second volume.
1103 - Fixed restore to display status from both SD and FD.
1104 - Unified return status message for backup and restore.
1105 - Corrected segmentation fault reported by Dan when doing "label barcodes"
1106   on a File.
1107 - Corrected a segmentation fault when attempting to send a JobMedia record
1108   to the Console -- reported by Dan.
1109 - Added MySQL documentation for using the threaded libraries.
1110 - Added new columns and tables to Catalog database.
1111 - Wrote alter scripts and tested them (thanks to Dan for the help) on
1112   MySQL and SQLite.
1113 - Started using enums where ever possible when passing flags to 
1114   subroutines. This helps make the source much more readable.
1115 - Corrected a bug where a vertical database listing was being used in
1116   the query command.
1117 - Added new argument to parse_args() to prevent command arg overflow.
1118 - Renamed ua_db_query.c ua_query.c.
1119 - Split scan.c out of lib/util.c
1120 - Perhaps I have *finally* fixed the command line history in gnome-console.
1121 - Added support for smartalloc for any global new or delete command
1122   by overloading the global operators.
1123 - Made the default time with no qualifier day rather than seconds.
1124 - Fixed a bug in the store_size() routine that improperly converted from
1125   double to uint32_t.
1126 - Started using "bool" where possible.
1127 - Zap SD session key once it is used.
1128 - Added *lots* more checking for strcpy -- bstrncpy(), ... 
1129 - Added CreateTime field to FileSet record and print it to distinguish
1130   FileSets. 
1131 - Print an information message when a new FileSet is created.
1132 - Include the FileSet date/time in the Job report.
1133 - Indicate if a Job is upgraded in the Job report and from what previous level.
1134 - Incremented the database version.
1135 - Ensure that any DB error message is printed if the start_time of a previous
1136   save is not found.
1137 - Free orphaned buffer in ua_restore.c in case of database error.
1138 - Implement enum for response DISPLAY_ERROR and NO_DISPLAY
1139 - Implement enum for create_pool (POOL_OP_CREATE, POOL_OP_UPDATE).
1140 - Make sure FileSets printed in restore are in order.
1141 - Add a number of bstrncat, and other protected string operations.
1142 - Clean up old structs in dird_conf.h
1143 - Remove all Slot invalidation code.
1144 - Add Automatic choice message to all do_prompt() calls.
1145 - Eliminate JobId from restore if not used.
1146 - Clean up a few error messages.
1147 - Make fill/unfill commands work correctly in btape.
1148 - Enhance btape fill and unfill commands.
1149 - Implement real Pmsg() code so that negative levels work in Dmsg()
1150 - Implement block number check -- had to turn it off because it doesn't
1151   work.  Need to verify that it is the correct block and that block
1152   numbers are properly written.
1153 - Moved readline from depkgs1 to depkgs.
1154 - Reworked the configure code to handle readline correctly. This was broken
1155   mostly due to the fact that the readline routines are nested down one
1156   directory.  Also, I missed one header file that was needed (possibly added
1157   in a later version).
1158 - Put correct include on the dependencies make for Console readline.
1159 - Remove JobMediaId from VOL_PARAMS (no longer needed).
1160 - Sort VOL_PARAMS by JobMediaId using SQL in cats.
1161 - Add jcr as argument to block.c read_block... routines so that error
1162   messages are immediately displayed.
1163 - Make bsr_dev() edit an error message if it is turned off and return 0.
1164 - Add checking for the BlockNumber in the read routines -- lots of
1165   false matches are found -- much check writing end.
1166 - Now sort bsr volumes by JobMediaId -- produces better results.
1167 - It turns out that under certain circumstances, when doing a restore, the
1168   Volumes will not be written to the BSR in the correct order.  I don't
1169   know exactly why, but many thanks to Dan Langille for reporting this.
1170   The solution is to sort the Vol_Params within each bsr (done), and to
1171   sort the bsr chain (not yet implemented). Note, the bsr chain should
1172   always be in order unless the user explicitly specifies the JobIds in
1173   a different order.          
1174 - Began implementing C++ structs rather than typedef structs as in C.
1175 - Added volatile to a lot of variables that are used in two threads at
1176   the same time. This should prevent improper optimization.   
1177 - Fixed a missing space in the "run job=xxx where=" the where was
1178   glued to the end of the previous stuff (bootstrap filename). 
1179 - I *finally* found the cause of the mysterious failure of shell expansion.
1180   It was due to the read() getting interrupted!  That's what opening up
1181   SIGCHLD will do!
1182 - Remove unused default tape drive names.
1183 - Create a new status.c file in stored and split the status code out of dircmd.c
1184
1185 2003-05-22 Version 1.31 Beta 22May03
1186 - I discovered that C++ permits "prototyping" structures e.g. struct A; is
1187   a valid statement. This permitted me to eliminate all the void *jcr, in
1188   favor of JCR *jcr, which pointed out a number of bugs in block.c.
1189 - Change lib/bmisc.c to bsys.c (system routines).
1190 - Add set_working_directory() to lib/util.c
1191 - Remove some unneeded setjcr_job_status() since Jmsg(jcr, M_FATAL,...)
1192   already sets it.  
1193 - Do not increment jcr->Errors for Fatal errors -- they represent non-fatal
1194   errors.
1195 - Fix a few more places in FD where Errors was not incremented.
1196 - Print unexpected (or incorrect) termination message returned from FD.
1197 - Use switch() instead of giant if statement in verify_vol.c
1198 - Protect overrun from do_shell_expansion() by passing max length.
1199
1200 2003-05-20 Version 1.31 Beta 20May03
1201 - Add mandrake to platforms
1202 - Suppress error messages if no bytes written to tape.
1203 - Suck up bootstrap file even on error so that Dir sees our error message.
1204 - Pretty much finish off the Win32 backup code.
1205 - Add DESTDIR code to autostart for creating non-root rpms
1206 - Echo input read from a script in Console.
1207 - Clarify error message for VerifyToCatalog
1208 - Add error counts in restore for M_NOTSAVED.
1209 - Adapt bfile.c to handle both Win95 files as well as WinXP files.
1210 - Add MTIOCERRSTAT for FreeBSD (clear error status).
1211 - Correct double jobmedia record when cancel at EOM reported by Phil.
1212 - Correct possible write at beginning of tape during cancel at EOM
1213   as reported by Phil.
1214 - Document in detail how Incremental and Differential jobs work.
1215 - Add non-fatal error count on backup and restore Job reports.
1216 - Remove a couple uses of lld -- now prefer to edit and use %s.
1217 - Fix directory could not be accessed on Win32.
1218 - Improve message indicating that last Full backup not found. 
1219 - Fix free() too early in directory traversal code.
1220 - Prune Jobs with no JobFiles or that have JobStatus!='T'
1221 - Add a few more command line scans for prune/purge.
1222 - Restrict valid characters in a Volume name, and document it.
1223 - Make new Win32 save/restore work. Still a bit more to do.
1224 - Use reentrant version of mysqlclient library.
1225 - Use more machine independent way of finding gcc version.
1226 - Fix race condition in sql_list where messages edited before locking.
1227 - Lots of testing saving/restoring 6GB files.
1228 - Add where to restore where=/tmp
1229 - Complete implementation of Win32 streams in FD. Must test. Also,
1230   must implement new streams in SD.
1231 - Make termination of daemons more "error" tolerant.  
1232 - Make default "duration" days rather than seconds if there is no modifier.
1233 - Install bcopy.
1234 - Add detection of available Win API's so that a single binary will
1235   work on all Windows systems.  Reference those APIs through a pointer.
1236 - Remove use_win_backup_api and enable it in bfile.c if system supports it.
1237 - Modify dev.c so that it works if MTEOM is not defined (BSDI).
1238 - Change MT_xxx to BMT_xxx to prevent conflicts with BSDI.
1239 - Detect strtoll() in configure.
1240 - Implement replacement for strtoll() for BSDI.
1241 - Add platform files for BSDI.
1242 - Use Jmsg() instead of Jmsg1() in acquire because File:line prefixed in dev.c
1243 - Use Jmsg() in write_block_to_dev() so that no messages are lost.
1244 - Rework autochanger code in restore to handle case of cassette not in magazine.
1245 - Implement Windows BackupRead/Write(). I now have permissions right!!!!
1246 - Additions to the manual (Purging, Autopruning).
1247 - Add doc to code in autoprune.
1248 - Begin adding Level = Base.
1249 - Make Jmsg recognize console and direct messages directly back to it.
1250 - Hopefully fix mess in mount.c when a tape expires.  
1251 - Fix restore bug recently introduced due to Unix backwards status convention.
1252 - New bacula.spec from Scott
1253 - Add globals for database name and version and print them in traceback.
1254 - Eliminate SubSysDirectory in each daemon conf file.
1255 - Implement get_yesno() and get_pint() in UA.
1256 - Make Jmsg aware of console. Messages now sent directly to Console.
1257 - Created a single bacula.spec.in for by the MySQL and SQLite builds.
1258 - Added proper configuration to console.in and gconsole.in
1259 - Start adding textdomain() code for translating.
1260 - A number of minor code cleanups.
1261 - Rework shell expansion just a bit.
1262 - Add rewind() when releasing a tape before acquiring the next one.
1263 - Implement addition of Description in Service entry for Win32.
1264 - Update manual to eliminate unclear autochanger points as mentioned
1265   by Dan Langille.
1266 - Implement DESTDIR everywhere.
1267 - Rework spec files for 1.31 and combine the main spec and the client
1268   only spec making a client package. At the same time, rename the packages
1269   so it is a bit clearer to the user. Also fix the build to work
1270   as non-root (scriptdir was not prefixed with $RPM_BUILD_ROOT).
1271 - Correct Auto Changers and all other forms to Autochangers in the
1272   manual.
1273 - John reported needing to do two "mount" requests, and indeed that
1274   was the case. It turns out that pthread_cond_timedwait() does not
1275   always return zero when awaken by a pthread_cond_signal().
1276 - Include RunBeforeJob and RunAfterJob output in job output report.
1277 - Implement a "real" Admin job that prints a mini-job report.
1278 - Clean up a few error messages in findlib and filed.
1279 - Recent changes to gnome-console caused initial output to be
1280   lost -- now fixed.
1281 - The Win32 version crashed after each job. After hours, it turns out
1282   that when running with LocalSystem privilege (and not as a user), when
1283   Cygwin does pthread_kill(id, SIGUSR2), it gets a memory fault.
1284 - Moved stored/fdmsg.c to lib/bget_msg.c, and moved SD messages to
1285   stored.c.  So now bget_msg() can be used by both the SD and FD.
1286 - Changed Director's bget_msg() to be called bget_dirmsg() to avoid
1287   any possible confusion.
1288 - Implemented bget_msg() in general everywhere in the FD except for
1289   job.c where the Dir and FD are communicating.
1290 - Implemented a Director only heartbeat in the FD for the cases where
1291   there is either no connection to the SD or the FD is already reading
1292   from the SD.  start_dir_heartbeat() ...
1293 - Add heartbeat to restore and verify volume.
1294 - Add "Heartbeat Interval" to Storage resource, which sets interval the
1295   SD sends heartbeats to the FD and DIR, 0 disables heartbeats.
1296 - Add "Heartbeat Interval" to FileDaemon resource, which sets the interval
1297   the FD sends heartbeats to the DIR, 0 disables heartbeats. 
1298 - Added heartbeat from FD to Dir every HB_TIME rather than forwarding
1299   SD heartbeats.
1300 - First cut label dialog.
1301 - Turn on new semaphore code for simultaneous Jobs.
1302 - Fix cancel trying to release semaphore's not acquired.
1303 - Implement get_pint() and get_yesno() for UA.
1304 - Implement find_arg_with_value() for UA.
1305 - All command line "slot" to be specified for label command.
1306 - Rework heartbeat code in FD to correctly terminate.
1307 - Fix btraceback to use smtp and to eliminate double //
1308 - Fix "storage" command to include ssl for verify and restores.
1309 - Add Heartbeat code when SD is waiting on a tape -- heartbeat every 20 mins
1310   to keep stateful firewalls from timing out the connections.
1311 - Fix src/stored/Makefile.in typo causing problems in statically linking
1312   btape.  Thanks to Lutz for reporting this.
1313 - Create an is_client_alive script for checking if a client is alive.
1314   Using this script prevents generating error messages.
1315 - Added corrections and updates to manual provided by Phil -- thanks.
1316 - Added RequireSSL to each program/daemon configuration.
1317 - Added EnableSSL to each correspondent for each program.
1318 - Added the Console resource to the Director (need to
1319   implement individual Console authorization).
1320
1321 2003-04-28 Version 1.30 released
1322 - Fix command history for gnome-console (must malloc).
1323 - Add two cancel points in acquire_resources(). The job will not
1324   be immediately terminated in all cases.
1325 - The new AutoMount code broke File archives -- fixed.
1326 - Correct watchdog mutex race introduced yesterday.
1327 - Add JobLevel to Admin run started by UA.
1328 - Add -v to daemon startup scripts
1329 - Implement bmicrosleep(sec, msec);
1330 - Implement When for "run" command.
1331 - Remove unsigned from socklen_t definition in hopes it will work better
1332   with older systems.
1333 - Remove code that attempts to set PID dir and SUBSYS dir if they
1334   do not exist because it set them to sbindir!
1335 - Modify mount to initially attempt to read the volume if Bacula
1336   wants a tape, none is mounted, and "Automatic Mount = yes" is set.
1337 - Prohibit setting --sbindir and --with-subsys-dir the same.
1338 - Fix missing argument that cause Kaboom in update slots.
1339 - Fix orphaned bsock when UA gets error contacting FD or SD
1340 - Nearly full implementation of Win Backup API, but it does not
1341   work due to lack of permission! Arggg!
1342 - Implemented restoring directory permissions as they should be.
1343 - Implemented reasonable regression script.  It found a number of
1344   restore errors.
1345 - Implemented the following @ commands in the console that work directly
1346   in the console rather than in the Director.
1347     input - read input from a file
1348     output - write output to file
1349     tee    - tee output to file and terminal
1350     time   - print current time
1351     version - print current version
1352     exit    - quit
1353     quit    - quit
1354 - Implemented new bfile io routines that will permit implementation of
1355   Windows native APIs for reading/writing files.
1356 - By default always update hard links with the prefix, but do
1357   not update soft links.  It seems inconsistent, but it is what
1358   cp does.
1359 - Implement wait command in Console that waits until no jobs are running. 
1360 - Fixed the < code in Include/Excludes, which forgot to skip over the <.
1361 - Do NOT attempt to chmod() a soft link as it will change the file behind
1362   the link!
1363 - OOPS! Lutz ran into a problem. In attempting to prevent string overflows,
1364   I used bstrncpy() on a variable that was malloc'ed thus truncating 
1365   Volume names!  Arrrggggg!
1366 - Lots of documentation of new features.
1367 - Rework Volume name scanning in console, made much more logical
1368   and corrected a bug (confusion in calling sequence).
1369 - Cleaned up a few error messages in cats adding more info.
1370 - Add the IP address to error messages due to bad connects to servers.
1371 - Implement default File output in config files so user can start
1372   saving right away without a tape drive.
1373 - Protect inet_ntoa() with mutex in case it is not thread safe.
1374 - Eliminate termcap from use in gnome console.
1375 - Remove unused SD maximum volume files and maximum volume jobs. They
1376   are implemented in the Director.
1377 - Make the default for Incremental and Differential saves to compare
1378   against both st_mtime and st_ctime rather than just st_mtime.
1379   This includes files moved or copied.
1380   Thanks to Matthias Wamser for bringing this fix to our attention.
1381 - On Win32 clients, make a pass through the include/exclude patterns
1382   and change any back slashes to foward slashes. Prevents creating
1383   unusable directory names containing both conventions.
1384 - Move ls -l output on restored files to M_RESTORED class.
1385 - Make gnome-console compile correctly on RH8.0
1386 - label barcodes now works.
1387 - Implemented "update slots".
1388 - Tweak btape "test" to always print suggestion for re-read last block.
1389 - Implemented "Cleaning Prefix"
1390 - Update alter_mysql_tables.in
1391 - More work on barcodes.
1392 - Zap VolHdr in SD when attempting to label a tape that is not
1393   there.  Prevents false tape names the next label command.
1394 - First cut of bar code reading is implemented. It doesn't do
1395   anything but return the list to the Director.
1396 - Implemented relabel command that relabels "Purged" Volumes.
1397 - Check exit code in RunBeforeJob and err the job if it is non-zero.
1398 - Remove old testsuite -- too complicated
1399 - Print length when Authorization fails because of bad length.
1400 - Fix problem of NumVols in Pool getting reset on startup.
1401 - Implement full listing of DB records by listing them vertically
1402   instead of horizontally.
1403 - Make changes to mysql scripts as suggested by Lutz Kittler
1404 - Fixed code to write Uname to Client record.
1405 - Fixed a problem (in btape) where Pmsg() was not printing.
1406 - Moved re-read last block test to last in "test" command of btape.
1407 - Lots of new documentation.
1408 - Fixed newvol.c to handle retrying 10 times if the volume name already exists.
1409 - Removed int_least16_t from sha1.h because it does not exist on some systems.
1410 - Release job in SD if canceled and waiting on a mount (better cancellation).
1411 - Prompt for Client in restore if not specified.
1412 - Print "Selection is empty!" if no selection list found.
1413 - Add new spec files and bacula.desktop from Scott.
1414 - Update client every time a job is run.
1415 - Add verbose option to daemons for printing more user error info.
1416 - Test if console works with readline 4.3 (yes, it is OK).
1417 - Release new depkgs
1418 - Release new winbacula.
1419 - Add Uname info to Client DB record.
1420 - Improve error messages and make them more consistent when a non-existent
1421   Device is requested.
1422 - Separated the -mwindows option so that only Windows programs
1423   are built with it (bacula-fd, ...) the tty tools such as console
1424   dbcheck, smtp, testfind, ... are now able to be run in a standard
1425   Windows DOS box.
1426 - Add | and < options to Exclude the same as in Include.  
1427 - Add typed in input to the text window in the gnome-console.
1428 - Change function that gets the entry text (previously had orphaned buffer).
1429 - Fix multiple Director problem in gnome-console (thanks to Lutz Kittler).
1430 - Thanks to Renato, I was able to test Bacula on a FreeBSD tape drive.
1431   There are a number of significant differences: 1. reading less than
1432   the number of bytes in a record returns an I/O error.  2. ioctl(MTEOM)
1433   looses the file position. 3. Reading two two EOF marks (or ioctl(MTEOM))
1434   leave you positioned after the second EOF, so you must backspace file
1435   to be able to append.
1436 - Added BSF at EOM = yes/no to Device resource to allow proper positioning
1437   at the end of a FreeBSD tape.
1438 - Made btape "test" do much better testing of error conditions (i.e.
1439   it now ensures that the append went well). It will automatically
1440   detect problems and apply fixes and then retry the test, if it
1441   finally succeeds, it clearly says what directives need changing.
1442 - Add Scott Barninger's rpm changes to the build environment
1443 - Add changes to mtx-changer so users can add eject and sleep for
1444   certain autochangers.
1445 - Implemented FreeBSD chflags (user defined flags).
1446 - Turn restore errors during setting of owner and modes into
1447   warning messages -- for restoring files as non-root.
1448 - Fix how prefixes are handled in restoring soft links.
1449 - Modified btape "test" command to do only those things that
1450   Bacula actually does. There is much more explanation, ...
1451 - Update manual.
1452 - Finally had to back up to gcc version 2 from version 3 to avoid version
1453   3 nightmares.   
1454 - Final cygwin tweaks.
1455 - Move start time to *after* the resource locks are acquired.
1456 - Unable to duplicate Phil's disabling of Bacula with nmap, but
1457   did make the authentication code a bit more conservative for
1458   dealing with bad input.
1459 - Added code to the query command to escape all strings input
1460   before substitution and sending to the SQL engine.
1461 - Escape user entered filenames for restore command.              
1462 - Cleaned up the waiting code a bit -- using broadcast instead
1463   of signal and counting the waiters.
1464 - Implement new pthreads semaphore code.
1465 - #define new semaphore code rather than workq on USE_SEMAPHORE.
1466 - Lots of improvements to the document to address recent support requests.
1467 - Implement cycle through a set of tapes suggested by Eugeny
1468   Fisher with the "RecycleOldestVolume=yes" record in the
1469   Pool resource.  Basically this record causes Bacula to purge
1470   to oldest tape when no more tapes are found.
1471 - Correct a number of small incorrect interactions between limit
1472   variables during recycling.
1473 - Corrected a bug in db_create_media_record() where VolMaxFiles and
1474   VolMaxJobs was not written to the database.
1475 - When the Director starts, the Pool record is updated in the
1476   database with the current contents of the Pool resource.
1477 - Corrected bnet_connect() to immediately stop (rather than looping
1478   for the timeout period) if there is a fatal error (socket, or
1479   hostname to ip).
1480 - Reworked "purge" code to make purging Volumes easier.
1481 - Made "list volumes" list the volumes in all pools -- also
1482   "list volumes pool=Default" does not produce and error message.
1483 - List Pool record after doing "update pool".
1484 - Remove pid file code from Win32 -- not really necessary.
1485 - Make bnet handle null jcr during cancel rather than crash.
1486 - Add CygwinInstall.bat and CygwinUnInstall.bat
1487 - Add db_lock() around newvol.c code to prevent race condition if multiple
1488   callers want a new Volume name.
1489 - Lots of cleanup to Win32 code, with additional error messages.
1490 - Make Bacula work on Win95 (test for GetAttributesEx).
1491 - Add better error messages when end of media is reached or volume
1492   capacity execed.
1493 - Turned off signal catching in readline(), necessary to keep console
1494   from crashing on ctl-Z with RedHat 8.0.  Thanks to David Craigon for
1495   testing this.
1496 - Make the 3rd and hopefully final change to the Finclude structures.
1497   This new version permits multiple sets of options (more code to be
1498   written) to be applied against the same set of files. Thus one can
1499   have options that with match of *.gz and a different set of options
1500   for *.c, ...
1501 - Integrated GNOME Console font resource code supplied by Phil Stracchino.
1502 - Check for job_cancelled() in bnet_connect() code to stop wait loop if
1503   client not available.
1504 - Fix early end of file scanning conf file in lex.c, which previously
1505   caused ABORT -- now reports error.  This could happen with an unterminated
1506   string for example.
1507 - Move Maximum File Size code before write and detect error on writing EOF.
1508 - Additional fix for Solaris 2.6 and a bdb.c fix submitted by Armin Buehler.
1509 - Added detection for Solaris 2.6, which uses older setsockopt() calls.
1510 - Defined sockopt_val_t for setsockopt() calls.
1511 - Added fixes sent by Bevan Anderson that fix multiple connects to FD
1512   (I zap keys for security, so must put back dummy key).  Also a fix
1513   to the Internal database that wrote garbage after the filename in
1514   the database.
1515 - Back out the __SVR4 changes.
1516 - Add automatic configuration of socklen_t
1517 - Attempt to fix problems reported by Lutz with multiple simultaneous
1518   open file Volumes (experimental code). Serialized acquire. This may
1519   fix the problem, but more thought and testing is necessary.
1520 - Add table of "supported" autochanger models.
1521 - Add Solaris 2.6 (__SRV4) changes sent by Peter Schmitz.
1522 - Correct tape selection code in SD (|| => &&). Thanks to Chuck Hemker
1523   for the patch.
1524 - Eliminate FileOptions. Implement new Finclude and Fexclude that
1525   have file options contained in it.  New structure must be transmitted
1526   to FD.
1527 - Split Include/Exclude into new inc_conf.c file.
1528 - Cleanup new Include/Exclude and FileOptions.  Structures in Director
1529   now correct.  Must transmit FileOptions to FD.
1530 - WARNING:  With the adddress and port code in the Catalog you MUST
1531   remove old address= and dport= records!!!!!
1532 - Added code to remove cancelled jobs from the workq -- needs testing.
1533 - Added first cut AIX from output James MacLean sent me.
1534 - Second cut of FileOptions.
1535 - First cut of parsing FileOptions and Counters.
1536 - Added address:port for MySQL as well as socket for local access.
1537 - Fixed job.c in filed to properly handle excluded files. Apparently
1538   I changed the daemon protocol but forgot to update the code.
1539 - Enhance testfind to handle include and exclude files
1540 - Fix getdomainname() prototype for Darwin
1541 - Added new -u and -g options for specifying userid and groupid to
1542   use when running, so that Bacula can reduce its privileges.
1543 - When Bacula was hanging due to an NFS volume being down, I 
1544   fixed a few places in the File daemon where is should have immediately
1545   terminated the connection instead of waiting for the Director to do so.
1546 - Added first cut support for Darwin.
1547 - Temporarily comment out the O_NOFOLLOW to avoid possible subtle problems.
1548 - Implemented O_NOFOLLOW in creating files in create_file.c to prevent
1549   creating a file at the end of a symbolic link.
1550 - Use chown() if lchown() does not exist (e.g. Darwin).
1551 - Always close stdin on startup to avoid having /dev/console attached.
1552 - Change all DATE occurrences to BDATE because it is used by Cygwin headers.
1553 - Add printing of Volume names in SD status output.
1554 - Display all open devices in device chain in SD status output.
1555 - All changing Pool in console run command.
1556 - Thanks to Eric Bollengier for pointing out that the run_program()
1557   return status was not correctly generated. Now fixed (I hope).
1558 - Corrected crash in Internal Database getting Volumes.
1559 - Flush all daemon messages at the end of every job.
1560 - Fix Install.bat script so that Bacula restarts after reboot on WinNT/2K systems.
1561 - Minor changes in the gnome-console directory.
1562 - Integrated in my old Tcl/Tk code into src/tconsole and moved it up
1563   from C to C++.  Pretty crude, but it is a beginning.
1564 - Close syslog() %n exploit in message.c
1565 - Edit space before each line in gconsole.
1566 - Added INCEXE structure so we can have FileOptions.
1567 - Added support for multiple simultaneous open file volumes.
1568 - Fix hard linked files so that the one saved is always restored.
1569 - Add * to restore "dir" listing to indicate marked files.
1570 - Add ability to make md5sum and sha1sum in lib directory.
1571 - Work a bit more on the new daemon protocol.
1572 - Use unmask of 022 or more restive
1573 - Create File volumes with 0640 permissions
1574 - Added support for SHA1 signature. Need to modify DB to have type.
1575 - Document SHA1.
1576 - Work a bit on getting proper child status from bpipe calls.
1577 - Added Ludwig's mtx-changer to the examples/devices directory.
1578 - Added a Warning not to use the Internal Database when it is initialized.
1579 - Compiled and tested SHA1, and added it to the library.
1580 - Added code to print the "load slot" status after autoloading.
1581
1582 =============================================================================
1583 2003-01-24 Version 1.29 released
1584 23Jan03
1585 - Tightened up permissions on all .conf files to be 640 so they are not
1586   world readable.
1587 22Jan03
1588 - Added prefixlinks=yes/no Job record to specify applying the Where
1589   prefix to absolute soft links.  Code is not yet passed to FD, because
1590   FD would then be incompatible with version 1.28.
1591 - Added skeleton of installation for Gentoo release for Patrick Naubert.
1592 - Add timer on open() for reading or writing a FIFO file.
1593 - Put btraceback and btraceback.gdb in sysbin dir (a bit of polution,
1594   but at least dumps will work).
1595 20Jan03
1596 - Added "append" all messages to a log to default bacula-dir.conf
1597 - Added WriteBootstrap to default bacula-dir.conf
1598 - Made smartall.c print "Out of memory" if malloc() fails.
1599 - Added pthread btimer routines.
1600 - Added timer to FIFO open statement
1601 - George was still having problems with VolUseDuration failing.
1602   On looking into it, one line of code subtracting 1900 was
1603   mysteriously missing from the source -- bizarre.
1604 18Jan03
1605 - Yesterday's version corrects all the problems I was
1606   previously having, and my production jobs are now completing
1607   properly.
1608 - Added a #define dev_cap() to test the capabilities bits. I just
1609   makes the code a bit shorter and a bit simpler.
1610 - Added phase 1 support for an output fifo device. The big 
1611   difference here is that it is a STREAM device, which means that
1612   Bacula will only write to it and not read. Thus, Bacula assumes
1613   that the correct "Volume" is mounted and will construct a valid
1614   label (without needing the Volume to be prelabeled), and write
1615   to the device.
1616 - Added phase 1 support for input from fifo device (suppress re-read,
1617   add empty buffer flag).
1618 17Jan03
1619 - Improve printout of dbcheck with # files/path fixing.
1620 - Zap SD authorization code after use.
1621 - Added <> back to smtp (think about this some)
1622 - Doc
1623 16Jan03
1624 - Massive change to add jcr as the first argument to nearly
1625   every db_ call. This is because I was storing the jcr in the
1626   db structure, which will not work because everyone shares
1627   exactly the same structure.
1628 - More cleanups of error termination status in filed.
1629 - Found another bug in message.c where %s was missing in JmsgN. A lot
1630   of cleanup in message.c
1631 - Found places where filename listing was made (restore, verify
1632   vol) where the buffer could possibly overrun.
1633 - Chain include files on the end of the list so that the
1634   order will be correct.
1635 - Rewrote mtx-changer to output one slot per line terminated by
1636   a colon followed by an optional Volume Tag for the "list" command.
1637   Preparation for handling Volume Tags.
1638 - My production crash remains elusive. Adding debug code or running
1639   under the debugger eliminates the problem. I found a case in
1640   message.c where I was extending the message string by two 
1641   characters to send it to the console. VERY BAD. Rewritten.
1642 - Started implementing fifo and program handlers (i.e. streams)
1643   in the Storage daemon. Lots to do.
1644 - Added a trace capability where trace statements are written
1645   to a file. Tmsg(). Hopefully this won't be used much.
1646 - Running lots of "production" saved by scheduling a few minutes
1647   after the current time -- slow process ...
1648 15Jan03
1649 - Removed <> on From and To in smtp.c as suggested by James MacLean.
1650 - Added code to suppress spurious error messages during cancel,
1651   but I was unable to eliminate all errors -- to be worked
1652   on later.
1653 - Up size of print buffer from 2000 to 5000.
1654 - My production run failed again. I'm beginnig to suspect 
1655   hardware problems because running by hand or under the
1656   debugger always works -- we will see.
1657 - Added Update Volume VolFiles to reset correct tape files 
1658   a bit dangerous.
1659 - Use the mysql_escape_string() rather than internal version.
1660 14Jan03
1661 - Cleanup handling of JobStatus by creating a subroutine.
1662 - Fix a number of minor things with JobStatus.
1663 - Print FD and SD JobStatus on backup report.
1664 - Add JCR to findlib -- so now FD stops normally when cancelled.
1665 - My production Director segment faulted during the second Job.
1666   I haven't been able to track it down. After rebuilding, all
1667   jobs finished correctly.
1668 - In investigating the duplicated Paths, I found that there
1669   were 10,552 of them -- only Path records. After checking the
1670   code, I do not see the reason, but I've enhanced the code to
1671   print the full path name.
1672 - I made a few improvements to tools/dbcheck. Mostly it provides
1673   a bit more feedback with verbose mode on when eliminating
1674   duplicate filenames or paths.
1675 13Jan03
1676 - During four simultaneous backups, the File daemon started
1677   detecting buffer corruptions. It turns out to be due to the
1678   fact that the smartall.c routines were not thread safe. They
1679   are now.
1680 - Based on input from James MacLean and team, I eliminated a number
1681   of places where printf could be recursively called by using "%s".
1682 - It turns out that because of an error of my understanding of
1683   mysql_escape_string(), the last argument was taken as the length
1684   of the string to be escaped rather than the maximum length.  I've
1685   now corrected all my code -- Thanks James.
1686 12Jan03
1687 - George Motter reported problems with UseDurations, and it seems 
1688   that there were a number of inconsistencies and problems with
1689   FirstWritten and LastWritten.  Hopefully for the most part they
1690   are now corrected.  Also fixed LabelDate if done through Console.
1691 - Try to chase down reasons why there would be buffer overruns.
1692   Added P & V around referencing last_fname for status.
1693   Rewrote find_one.c with MEMPOOL, but not yet tested enough
1694   to commit.
1695 10Jan03
1696 - Give extra margin to converting filenames from Unix to Windows
1697   in attribs.c of findlib -- dumb cygwin API doesn't provide for
1698   a length.
1699 - Added file:line traceback to size_of_pool_memory, check... and 
1700   realloc  in an attept to get closer to the memory overrun reported
1701   by James MacLean.
1702 09Jan03
1703 - Made yet another fix to quoted string -- paths!  Thanks to
1704   Scott Medlock for reporting this.
1705 - Made | and < work.
1706 - Implemented FIFO reading/writing. To do so, simply explicitly mention
1707   the fifo file (named pipe) in the Include AND add the new option
1708   readfifo=yes
1709 08Jan03
1710 - Started implementing | and < on Include names.
1711 - Changed source to . in cats directory as requested by Andrew Kokarev.
1712
1713 =============================================================================
1714 2003-01-05 Version 1.28b released
1715 - Corrected a typo of working_directory in bacula-dir.conf
1716   reported by James MacLean.
1717 - Fixed the fact that path and filenames in some cases were not
1718   being quoted before going into the database. Many thanks to
1719   James MacLean for reporting this.
1720
1721 =============================================================================
1722 2003-01-05 Version 1.28a released
1723 - Corrected a missing quote in bacula-dir.conf reported by James MacLean
1724
1725 =============================================================================
1726 2003-01-05 Version 1.28 released
1727 General:
1728 - Implemented Bare Metal Recovery for Linux and manual procedures for Solaris
1729 - Now using only a single technotes file kes-1.28 and will add to
1730   it as the development goes on.
1731 - Wrote a general purpose bi-directional pipe command. This replaces
1732   previous use of pipes as well as the run_program previously used.
1733 - Make BSRs stop if no more matches are possible.
1734 - Allow unliminted number of devices in Storage daemon.
1735 - Allow connections to Storage daemon before all devices are initialized.
1736 - Better documentation (and btape test command) on using fixed block
1737   tape drivers.
1738
1739 Changes submitted this submission:
1740 04Jan03
1741 - Add cygreadline5.dll to Win32 release -- needed for console
1742 03Jan03
1743 - Add scripts make_catalog_backup and delete_catalog_backup that makes and
1744   deletes an ASCII copy of the catalog for backup. An example of how
1745   to use it is in the <bacula-src/src/dird/bacula-dir.conf file.
1746 - Made a nicer column oriented listing of scheduled jobs for "status dir".
1747 02Jan03
1748 - Added backup/restore of raw partitions.
1749 - Corrected restoration of files in root directory (problem with
1750   splitting path from file).
1751 01Jan03
1752 - Finally decided to cleanup handling of splitting path and filenames
1753   in the cats directory. Now the code is in one place sql.c and it
1754   is done using Pool memory, so there are no length restrictions.
1755 31Dec02
1756 - Add start of Solaris bare metal recovery
1757 - Add Site Visit usage statistics to Web page
1758 - Got Bacula listed on www.backupcentral.com
1759 30Dec02
1760 - Retest bare metal recovery on Linux 2 times with verify
1761 - Cleanup printout of verify differences using proper casting to
1762   handle shorts and long longs.
1763 29Dec02
1764 - Added --enable-client-only to ./configure
1765 - Modified --enable-static-sd to work better and documented it.
1766 - Fixed Restore options (never,ifnewer, ...). They now work.
1767 - Moved the stored.c Resource lock into the allocation thread so
1768   that the same thread sets/clears it. This created a problem on
1769   FreeBSD.
1770 28Dec02
1771 - Added more rescue documentation.
1772 - Did a spell check of the Bacula doc.
1773 - Modified bscan to use the working directory as specified in the
1774   configuration file as the default.
1775 25Dec02
1776 - Fixed an important bug reported by George Motter that caused only
1777   the last option on an Include record to be used (all previous options
1778   were lost).
1779 24Dec02
1780 - Chase down some inconsistencies in creating Media records from
1781   the Pool defaults, and in updating/creating the Pool from the
1782   resource. Also fixed the cats DB routines to include all
1783   fileds (VolUseDuration was missing for example).
1784 21Dec02
1785 - Added building static versions of daemon static-bacula-dir, ...
1786 - Fine tuned the rescue (bare metal) code including support for grub.
1787 - Added skeleton freebsd rescue
1788 - Corrected SQL syntax error in autoprune code (JobType => Type).
1789 - Added error messages for SQL errors in autopruning.
1790 19Dec02
1791 - Documented Bare Metal Recovery
1792 - Create new "rescue" directory containg the Bare Metal Recovery code.
1793 - Fiddle with SQL a bit for pruning as apparently the last InitCatalog
1794   was pruned after the expiration date eventhough it was the ONLY copy!
1795   I'm not sure this is fixed yet.
1796 18Dec02
1797 - Allow Director to pass a NUL where string to FD (fix in FD).
1798 - Fix installation mv of query.sql.
1799 - Make sure btraceback.gdb is not wiped on "make distclean"
1800 - Corrected a bug in mod of replace options pointed out by Dave Anderson.
1801 16Dec02
1802 - Started adding FileOptions ...
1803 - Fixed  and incorrect print out of the number of files restored (Jarif).
1804 - Finally fixed EndBlock (and file address for Files) in catalog!
1805 - Added hostname to tape header as always planned.
1806 - Removed Level code (will not implement unless strong demand exists).
1807 - Tweaked bscan to print number of errors ignored before first SOS.
1808 - Enhanced btape "fill" to permit using one tape and to dump last
1809   block before writing and upon read back.
1810 - Make fsf_dev() return 0 on fail and 1 on success.
1811 - Use new db_get_job_volume_parameters() to enhance Write Bootstrap to
1812   contain more info (start/end file/block, file indexes).
1813 - Added --enable-static-fd, sd, and dir to configuration to enable making
1814   static versions of the daemons.
1815 13Dec02
1816 - The btape test program was indicating errors on Adrian's machine
1817   using the ATAPI (ide-scsi) tape drive. It turns out that this
1818   is a fixed block driver as a consequence, Bacula must be setup
1819   to write fixed blocks. btape was not always using the fixed
1820   blocks defined in the Bacula config, so that has been updated.
1821   It now works fine. A lot of tips added to the Bacula test command 
1822   to help guide the user.
1823 - Documentation of the above significantly improved in the manual.
1824 12Dec02
1825 - Added code in watchdog to permit setting and clearing child timers. If
1826   the timer expires, the child process is killed.
1827 - Modified restore to handle differential jobs.
1828 - Added a new test to the btape "test" command
1829 09Dec02
1830 - More documentation of new features (week position in scheduler, bsr).
1831 - Re-read last block written on full tape to verify it.
1832 - Fix segmentation fault with btape fill command due to missing FileSet MD5.
1833 07Dec02
1834 - Created better SQL input editing routines str_to_int64 and str_to_uint64()
1835 - Pull Client from database in Console restore command.
1836 - Create a Unique list of Volumes to be mounted (previously had repeats).
1837 - Made many of the SQL searches better by using the ClientId rather than the name 
1838   in the restore Console command.
1839 - Modified reading of a tape to include the VolFile info. Once the
1840   tape is past the specified file, reading stops.  The BSR now includes
1841   both the VolFile and VolBlock. Currently VolBlock is not used.  
1842 - Handle multiple volumes better by creating a real volume list with all
1843   parameters in it.
1844 - Display "At prompt waiting for input" in gnome console when at subcommand   
1845   prompt.
1846 - Broke ascii to internal and internal to string editing routines out into
1847   new lib/edit.c file.
1848 02Dec02
1849 - Added a readme and an afs-bacula script to the examples directory
1850   that permits Bacula to backup an AFS filesystem. Thanks to
1851   Lucas Mingarro for the submission.
1852 - Added A Sun-desktop autoloader script and Device definition to the
1853   examples/devices subdirectory.  Thanks to Lucas Mingarro for the
1854   submission.
1855 - If the WriteBootStrap fails, the job will now be marked in error.
1856 - Added a week position to the scheduler syntax that allows you to
1857   specify 1st, 2nd, 3rd, 4th, or 4th, or first, ... fifth as a week
1858   position specification in front of a day. So if you say
1859
1860     1st sun ...
1861
1862   the scheduler will start only on the first sunday of the month.  The
1863   day specification can also be a day range e.g. sun-fri.
1864   This code is untested.
1865 - Implemented bpipe.h and bpipe.c in src/lib, which defines a bi-directional
1866   pipe.  This allows executing other programs and sending them information
1867   as well as getting info from them.   
1868 - Replaced the previous pipe usage with bpipes in RunBeforeJob and   
1869   RunAfterJob.
1870 - The mail program now uses bpipes rather than pipes, which means that any
1871   error output will appear in the job output (truly bi-directional).
1872 - Modified BSR to handle counts and to stop when no more matches are possible.
1873   This is untested.
1874 - Improved error messages in smtp.
1875
1876 =============================================================================
1877 2002-12-12 Version 1.27d
1878 - This is a minor update that fixes a segmentation fault in btape
1879   as well as reduces non-important error messages in bscan.
1880
1881 2002-11-29 Version 1.27c
1882 - Yet another silly error duplicating a column name in the SQLite
1883   make tables.  No code change, just a make file.
1884
1885 2002-11-29 Version 1.27b
1886 - Set DB version to 5 in DB make files.
1887
1888 2002-11-28 Version 1.27a
1889 - Use g++ instead of gcc for testfind in tools 
1890
1891 2002-11-27 Version 1.27 (26Nov02) released 28 November 2002
1892
1893 General: from kes25Nov02
1894 - Mostly Cygwin changes
1895
1896 Changes submitted this submission:
1897 - Updated bdb_find.c to have new calling sequence for db_find_job_start_time
1898 - dird/catreq.c edit in Volume name in error messages to SD
1899 - attribs.c switch to using the cygwin API to convert from POSIX paths
1900   to Win32 paths. This now permits Win32 path specifications in Include
1901   statements (all combinations not yet tested).  It also avoids the large
1902   number of errors seen by Lutz if a Win32 path is specified in the Dir.
1903 - Update testfind help and remove set_attribsEx debug code.      
1904 - Build testfind as default.
1905 - Turn off debug message in stored/askdir.c
1906
1907 General: from kes21Nov02
1908 - Another change in the database. You MUST either re-initialize
1909   your database or use the appropriate ./alter_xxx_tables in
1910   the src/cats directory.
1911
1912 Changes submitted this submission:
1913 - Additional documentation.
1914 - Added MaxVolFiles to the database (not yet implemented in code).
1915 - Increased the database version from 3 to 4.
1916 - Change VolMaxBytes to MaxVolBytes, which is much more descriptive.
1917 - Compressed unnecessary spaces out of a lot of SQL statements.
1918 - Changed many %d to %u where unsigned integers are used.
1919 - Added the Bacula version and build date to each backup output.
1920   This will help knowing what version of Bacula was used.
1921 - Implemented VolUseDuration MaxVolBytes, MaxVolFiles, and MaxVolJobs
1922   based on maximums set in the Volume (Media) record rather than in the
1923   resource. This means the values can be individually set on a Volume basis.
1924 - Allow commas separating Include options (this was a subtle bug).
1925 - Added maximum string length argments to a number of subroutines to
1926   prevent buffer overflows. Most notably was do_prompt().
1927 - Replaced MANY occurrences of strcpy() with bstrncpy(), which guarantees
1928   both that the length is not exceeded and that the string is properly terminated.
1929   This has a risk of a certain destabilization -- as does the changes to
1930   the SQL noted above.
1931 - In cram-md5 routine use my_name if gethostname() returns an error.
1932 - Increase timeout from 2 minutes to 3 minutes in authorization code.
1933 - Check the full string including \n in authorization.
1934 - Throw away any response longer than MAXSTRING.
1935 - Added a number of additional error checks on subroutine return statuses.
1936 - Replaced as many lld's with edit_uint64 as I could find.
1937 22Nov02:
1938 - Added MaxVolBytes to Pool record - had forgotten it. Updated DB version.
1939 23Nov02
1940 - Update manual to document new Pool/Volume attributes
1941 - Correct make_sqlite_tables (typo, plus missing value in Pool)
1942 - Fix bizarre behavior in gnome-console and console when auth fails.
1943 - Add Pool attribute query
1944 - Add a few more error messages in askdir.c
1945 - More strcpy() conversions to bstrncpy().
1946
1947 General: from kes18Nov02
1948 - Did a number of cleanups of string copying to limit the length
1949   and prevent buffer overflows.
1950
1951 Changes submitted this submission:
1952 - Added a mutex arount the gethostbyname() so that multiple simultaneous
1953   jobs get the correct address.
1954 - Added the MaxVolJobs to the Media alter tables script for MySQL (forgot it).
1955 - Changed arg to db_find_job_start_time to be POOLMEM for returning the string.
1956 - Add the new VolUseDuration and MaxVolJobs to all the db_ routines.
1957 - Use bstrncpy() in most places in the db_ routines to prevent a bad 
1958   database from crashing Bacula (self protection).
1959
1960 General: from kes13Nov02
1961 - You MUST either re-initialize your databases or use the 
1962     ./alter_mysql_tables
1963   or  
1964     ./alter_sqlite_tables
1965   in the <bacula-src>/src/cats directory to modify your database tables.
1966 - Major improvements to dbcheck including an interactive mode.
1967
1968 Changes submitted this submission:
1969 - Implemented VolumeUseDuration and MaximumVolumeJobs which control
1970   when a tape can be marked Used.
1971 - New tape status "Used" means it was used and cannot be used any more.
1972 - Defined utime_t which is 64 bit epoch time in seconds.  btime_t is
1973   64 bit epoch time in microseconds.
1974 - Created alter_xxx_tables to add new columns (VolUseDuration, MaxVolJobs) to
1975   database. Incremented db version.
1976 - Changed a few subroutine names concerning dates to be more descriptive.
1977 - Fixed several places where the last filename was not stored in JCR in
1978   FD verify_vol.c and restore.c
1979 - Major update to dbcheck.  Unfortunately I used subselects, which work
1980   perfectly fine in SQLite, but not at all in MySQL.  I must now rework
1981   it for MySQL. What a pain!
1982 - Removed "Database found" from configure output. It was no longer used or valid.
1983 - Corrected doc --working-dir => --with-working-dir  Thanks to Tuck for 
1984   reporting this.
1985 - Added the database name to the error message for mismatched DB version.
1986 - Commented out GMP and CWEB from configure as they are not currently used.
1987
1988 General: from kes09Nov02
1989 - Converted the manual over to a new format written in wml. This
1990   gives navigation buttons on the top and bottom of each page
1991   as well as a standard page size.
1992 - Updated the main Web site, providing a menu bar to the left
1993   and much better organization and presentation of the information.
1994 - Added code to recognize a Volume written with a larger block
1995   size than specified. The code automatically adjusts. 
1996
1997 Changes submitted this submission:
1998 - Created a new scripts directory and moved most of the scripts
1999   previously in the main directory there. This cleans things up
2000   quite a bit.
2001 - Moved the randpass stuff into autoconf.
2002 - ensure that the generic make_bacula_tables and drop_bacula_tables
2003   are installed.
2004 - Added code to filed to allow it to be run from inetd.  Just add the
2005   -i option.  I have not tested it.
2006
2007 General: from kes30Oct02
2008 - Alex found a problem with GZIP compression -- fixed.
2009 - bacula stript fixes.
2010 - Segment fault in Director fixed.
2011 - Added openbsd to platforms
2012
2013 Changes submitted this submission:
2014 - GZIP compression was broken for large files due to a variable that
2015   is changed during the compression. This was relatively easy to fix.
2016   However, there were a number of fixes required to make GZIP and SPARSE
2017   files work together. Found one more place in bextract where SPARSE_GZIP
2018   testing was missing.
2019 - During testing of the above, I ran into the restore problem of multiple
2020   FileSet records. Fixed by including the FileSetId and the MD5 on the
2021   selection string, then always using the FileSetId. It is a bit
2022   confusing for the user, but ...
2023 - Francis found a problem with bacula.in (fixed - thanks)
2024 - I found another problem with bacula.in, so now it REALLY should work
2025   on most systems.
2026 - Added the Replace options code for restores. Not tested.
2027 - Fixed an ugly stack overrun bug in reading the config file
2028   that has been in for a long time.  I found this in testing on FreeBSD
2029   where the Director seg faulted.
2030
2031 General: from kes29Oct02
2032 - Major change to the bnet communications routines.
2033
2034 Changes submitted this submission:
2035 - Modified the bacula script to use pid files, so this script should
2036   now work on more platforms.  Updated devel_bacula as well.
2037 - Added the full GNU hostname on the configuration print output.
2038 - Added gettimeofday() to configure, and tweaked a few variables for
2039   OpenBSD.
2040 - Added a chapter to the manual on Porting Bacula to other platforms.
2041 - Documented in Tips how to use the WriteBootstrap record.
2042 - Modified bc_types.h to error if 64 bit types are not found.
2043 - Pass replace option for restore to the FD (no code to use it yet).
2044 - Modify the FD to pass back the GNU OS string as well as the DISTNAME
2045   and DISTVER. This needs to be put in the Client record in the catalog.
2046 - Major reworking of the bnet routines to eliminate the zero length which
2047   previously indicated a signal. This risks to create some subtle communications
2048   bugs.  The changes now permit blank lines to be sent from the user to the
2049   Director.
2050 - Found and corrected a few more places where the Win32 attributes were not
2051   being recognized.
2052 - Permit spaces in the Where string (restore) by bashing/unbashing them.
2053 - Handle quotes correctly in the Console program (actually Dir ua code).
2054   Previously they were not handled in the middle of a string.
2055 - Corrected two error message (error reading file), which previously stated
2056   it was a network error.
2057 - Reworked the files in the binary Windows release. Removed unused programs 
2058   and added a README with the copyright as suggested by John. Also added
2059   console.exe to the release.
2060 - Found and corrected an autoloader mount problem where the wrong tape
2061   was specified.  Previously it looped, then gave up.  Now it correctly
2062   detects the volume is not correct and zaps the Slot in the catalog.
2063
2064 General: from kes23Oct02
2065 - I have mainly worked on getting all the details of a Restore
2066   to work correctly (new tape format, support for Win32 
2067   attributes, ...)
2068 - Trademarked name Bacula.
2069 - Implement Bacula tape format 11 (1.0 Immortal). This format
2070   will be maintained forever.
2071 - Accept Any Volume is yes by default. This modifies Bacula's behavior
2072   when writing tapes.
2073
2074 Changes submitted this submission:
2075 - Corrected a bug on FreeBSD where CFLAGS would get a "yes". I was
2076   unable to reproduce this, but a user confirmed the correction.
2077   It was a problem with detection of largefile support, which FreeBSD 
2078   has by default.
2079 - Added a new "license" chapter in the manual. Re-licensed a number of
2080   library routines (bnet.c, hmac.c md5.c, cram-md5, ...) with LGPL so that they
2081   can be used in proprietary software to access Bacula if so desired.
2082 - Move Director's AutoChanger doc to correct location (in Storage      
2083   resource). 
2084 - Document why trademark (to protect compatibility).
2085 - Implement and turned on Bacula tape format 11 (also BB02). This
2086   format moves the VolSessionId and VolSessionTime from each record 
2087   header into the Block header. This is MUCH more efficient when reading
2088   records as now whole blocks can be skipped.   
2089   Also added JobStatus in End Of Session record, and added MD5 for
2090   FileSet, which is necessary to insure uniqueness.
2091 - Implement a new Bacula time format for btime_t. It is Epoch time
2092   in microseconds (i.e. base 1 Jan 1970 in microseconds).
2093   This replaces previous floating point times.
2094 - Added Win32 extended attributes. In doing so, I moved all attribute
2095   handling from src/lib into src/findlib.  Added new streams for 
2096   Win32 attributes and for GZIP Win32 attributes.
2097 - Modified "Accept Any Volume" so that it really permits any volume
2098   in the pool to be mounted.  
2099 - Removed "Mount Anonymous Volumes" from Storage daemon config.
2100 - Implemented sparse files. You must add "sparse=yes" on the include line
2101   for it to be enabled.
2102 - Print "None" in backup summary rather than 0.0% if there is no compression
2103   enabled.
2104 - Improved error checking in daemon connection/authentication code to prevent
2105   garbage data from harming a Bacula daemon.
2106 - All daemon tools MUST have a config file.
2107 - Completely strip drive specification on Win32 if a Where prefix is specified.
2108 - Corrected DB info for writing to files. Now the File Address is stored
2109   in File-Block variables in the catalog.
2110 - All Storage daemon tools now use common code for acquiring/reading
2111   Volumes.
2112 - If a device is unmounted, report it even if the device is not open. This
2113   will help inform users who have BLOCKED Bacula by unmounting a drive.
2114
2115
2116 =============================================================================
2117 2002-10-12 Version 1.26 (10Oct02)
2118 General: from kes10Oct02
2119 - Changed Job name conventions to avoid : which is an illegal
2120   character on Windows.
2121
2122 Changes submitted this submission:
2123 - Added check for inet_pton to configure.in. If it does not
2124   exist (e.g. Windows) use inet_aton
2125 - Documentation on GZIP.
2126 - Another restore doc example.
2127 - Documented btape fill command.
2128 - Set default restore directory from /tmp to /tmp/bacula-restores
2129 - Add additional no find error messages to sql_get.c
2130 - Creating a bootstrap file on Windows failed because the Job name
2131   contained colons which are illegal on Windows. Replaced the
2132   colons with periods.  This corrects the Windows restore problem.
2133 - Print number of files to be restored in "restore" command.
2134 - On Windows systems, if there is a prefix, completely eliminate
2135   any drive: at the beginning of a path.
2136 - Minor corrections to the tree routines to handle Windows
2137   files such as c:/ better. Previously it insisted on /c:/, which
2138   would then not be found in the catalog for a "dir" command.
2139 - Modified cd command in restore to try /c: if c: fails.
2140 - Add a new S_ISWIN32 bit to the st_mode word so that low level
2141   routines that create files do not print error messages.
2142 - More work must be done to restore all Windows files correctly.
2143   Currently the following bits are not handled:
2144     Archive
2145     Hidden
2146     System 
2147   Also, all the dates are not properly restored.
2148
2149 General: from kes09Oct02
2150 - More documentation.
2151 - Implemented new fill command in btape that permits filling
2152   a tape and then reading it back to ensure that it works
2153   with Bacula.
2154
2155 Changes submitted this submission:
2156 - Added ReadBytes to JCR, which contains Job bytes read by
2157   FD, JobBytes contains compressed output of FD.
2158 - Modified FD to pass back JobStatus, ReadBytes, JobBytes, ...
2159   for backup jobs.  This is upward compatible.
2160 - Modified backup termination status report to contain the
2161   compression ratio 100 * (1 - compressed-bytes/uncompressed-bytes)
2162   This will always be zero if no software compression was
2163   done, or if you are using a version 1.25 or older FD.
2164 - Pickup Job termination status of FD in backup, so now
2165   the termination status represents the state of all three
2166   daemons.
2167 - Implemented new fill command in btape that permits filling
2168   a tape and then reading it back to ensure that it works
2169   with Bacula.
2170
2171 General: From kes06Oct02
2172 - Implemented first major cut of bscan -- program to scan a tape
2173   and recreate a Bacula catalog.
2174 - Fixed lseek() relative negative seek that prevented writing multiple
2175   jobs to a File volume.
2176 - Implemented BB02 tape format -- currently turned off for writing.
2177
2178 Changes submitted this submission:
2179 - Updated README
2180 - Implemented new BB02 tape format, which moves the VolSessionId and
2181   VolSessionTime from the record headers into the Block header.  It
2182   is currently turned off.
2183 - Implemented new btime time/date format on the tape. This is currently
2184   turned off.
2185 - Added JobStatus to EOS tape label. This is currently turned off.
2186 - Changed start_block, ... to StartBlock in JCR for uniformity.
2187 - Print a message telling which tables were dropped/made with  
2188   ./drop_bacula_tables.
2189 - Return JobType and JobLevel in db_get_job_record().
2190 - Implemented get_current_btime(), which returns btime_t.
2191 - Bump debug message max size to 2000 bytes.
2192 - Add btime_t serial/unserial routines.
2193 - Rework all tape label routines to integrate btime and other
2194   label format changes (currently turned off -- for writing).
2195 - Fix lseek() to always be positive -- block.c
2196 - Consolidate record, block, and label major #defines in block.h.
2197 - Major implementation of bscan. Some more minor tweaking will be
2198   necessary.  E.g. add multiple records for multiple simultaneous
2199   Jobs.
2200 - Cleanup lseek() to always use off_t as second argument.
2201 - Add new "created" tape label (EOT_LABEL). This generates a callback
2202   to the read_records() routine when the final end of all tapes is
2203   reached allowing proper termination and updating of the media records.
2204
2205 General: From kes25Sep02
2206 - Added means to bind servers to specific address.
2207 - Documentation
2208
2209 Changes submitted this submission:
2210 - Added DirAddress, FDAddress, and SDAddress records to the corresponding
2211   resources that allow the server to bind to a specific address 
2212   rather than any address.  This security improvement was suggested by
2213   a user -- thank you.
2214 - Eliminated deprecated "Address" record from all sample Storage resources.
2215 - Made quite a lot of improvements to the bscan program. Much more
2216   to do. Aside from details, it is able to recreate a database
2217   from which you can do a restore.
2218 - The s option is not accepted on all versions of ar, so replaced it
2219   by an explicit ranlib call.
2220 - Fixed a bug that caused the Director to crash if you rudely bring
2221   down the console program in the middle of an SQL command.
2222 - Fixed a bug (missing break) that caused scheduled Admin jobs to
2223   be listed as "Unknown type".
2224 - Removed old code from Storage daemon that used a separate FD port.
2225
2226 General:  From kes14Sep02
2227 - Better key generation on non OpenSSL systems.
2228 - 64 bit file address support if available.
2229 - Implement autochanger for reading
2230 - Lots of cleanup of tape reading code.
2231 - Automatically create all Pool resources when Bacula starts.
2232 - Implement bscan.c
2233 - Implement autochanger use via the Console commands "add" and "label"
2234 - Begin implementation of a regression script 
2235 - Write bootstrap after ever job
2236
2237 Changes submitted this submission:
2238 - After noticing that the non OpenSSL random key generator was
2239   not good on Solaris, John wrote a very nice randpass generator.
2240 - Integrated John's makeSessionKey for generating the FD->SD
2241   authorization.
2242 - Statically link tools (doesn't work on Solaris).
2243 - Document how to debug Bacula (new chapter in the manual)
2244 - Remove unneeded printing of error message in sql_get.c
2245 - Free SD description config record (previous oversight)
2246 - Bash spaces when sending Director names, and unbash them when 
2247   received.
2248 - Ensure no divide by zero in rate computation in backup.c
2249 - Implement WriteBootstrap in backup.c
2250 - Allow tape reading to request volume information for any
2251   volume.
2252 - Create all Pool resources at startup.
2253 - Show only Backup jobs in Restore listing of last 20 Jobs.
2254 - Handle 64 bit stat packets in restore.
2255 - Don't do shell expansion on store_dir in config if string 
2256   starts with |.  This is used for piping the program for the
2257   WriteBootstrap.
2258 - Ignore SIGHUP -- DéjàGnu was triggering this. 
2259 - Implement autochanger for reading, many changes to 
2260   acquire_device_for_read()
2261 - Implement callback for reading Volume. Implement in bextract,
2262   bls, and bscan.
2263 - Implement bscan
2264 - Add count to bsr.
2265 - Fix Volume in bsr.
2266 - Move autochanger code to new subroutine in mount.c
2267
2268 =============================================================================
2269 2002-09-05 Version 1.25a (05Sep02) Released
2270 - Fix unitialized stack variable in bextract so it
2271   will always read the currently mounted tape.
2272
2273 =============================================================================
2274 2002-09-04 Version 1.25 (01Sep02) Released
2275   General:
2276 - Added .cvsignore files in each directory to cut down on the
2277   CVS output when scanning directories and finding Makefiles
2278   and such which are not part of the CVS tree.
2279
2280   Changes submitted this submission:
2281 - Cleaned up a lot of the error messages in Verify, including
2282   indenting.
2283 - Had to remove some of the "automatic" error message printing
2284   in the DB because they are in fact things that come up 
2285   for Verify but not really errors.
2286
2287
2288   2002-08-30 Version 1.25 (30Aug02) Beta
2289   From kes30Aug02
2290 - Fixed a bug where only the first file was restored if
2291   it is hard linked. The other links were lost.
2292 - In some cases of restoring to alternate directories, softlinks
2293   were not properly restored.
2294
2295   From kes28Aug02
2296   General:
2297 - Bacula backups now run up to 12 times faster than version 1.24
2298 - Bacula can run multiple simultaneous Jobs.
2299 - Had to turn off TRANSACTIONS in SQLite because it doesn't work
2300   with multiple simultaneous jobs (I'm working on this).
2301 - Added a better Job printout for Restore Jobs.
2302 - Added a save/restore Rate to backup and restore jobs. This
2303   does not yet subtract out operator wait time so it will be
2304   underestimated it the Job waits on the tape (mount/label).
2305 - Fixed a major bug caused by free()ing a buffer twice in
2306   the Restore code. This made the SD more or less useless after
2307   any restore Job. Arrggg!
2308 - DIR - SD protocol changed, both must be updated at the same time.
2309 - DIR - FD protocol changed in upward compatible way. Upgrade of   
2310   FD not required, but recommended.
2311
2312   Changes submitted this submission:
2313 - Added bell to "make" when errors are detected.
2314 - Changed default compile option from -g to -g -O2
2315 - Additional documentation as usual -- much based on questions or
2316   feedback from users. Thanks.
2317 - Fixed example config files to use new syntax and to have a 
2318   Restore Job.
2319 - Define ETIME to ETIMEOUT for Irix
2320 - Added JCR filed to DB structure permitting direct printing error
2321   messages from within the Database subroutines.
2322   Some error messages may be printed twice as a consequence.
2323   When I see them or someone reports them, I will remove the double.
2324 - Added JCR to the bsock structure. This allows direct printing
2325   of network errors from within the network code.
2326 - Made most "trivial" debug messages have level 100 or greater. This
2327   allows for easier debugging of new code using the range below 100.
2328 - Began replacing all Emsg() with Jmsg() using a NULL as the JCR in    
2329   Jmsg() is the same as Emsg().
2330 - Fixed several crashes in the Director because of malformed config files.
2331 - Added SpoolAttributes to Job resource.
2332 - Pass CatalogFiles to SD. If set to no, the attributes are dropped 
2333   within the SD rather than being sent to the DIR.
2334 - Cleaned up a number of information/error messages in user interface.
2335   This includes eliminating the "pretty please" response in favor of
2336   "yes/no" to delete volumes and pools.
2337 - Cleaned up quite a number of uninitialized variables reported when going
2338   to -O2, most were harmless, but a couple could cause problems.
2339 - The cd command in restore was not working correctly (it didn't allow some
2340   legal cds).
2341 - Fixed a segmentation violation in the directory tree handling code in 
2342   the restore command.
2343 - Handle a few error conditions in the restore command better.
2344 - Permit "Where" to be set to nul in modification of a run command.
2345 - Clarified the error message for Verify if an InitCatalog has not previously
2346   been done -- thanks Chuck.
2347 - Add MaximumConcurrentJobs to FD.
2348 - Added code to mem_pool to die if a buffer is released twice.
2349 - Lots of work done on SD for multiple simultaneous jobs. Split device.c
2350   into device.c, mount.c and acquire.c
2351 - Started writing new lock code for SD, but may back it out -- needs more
2352   thought. Current code works, but is too complicated. Maybe can simplify it.
2353 - Cleaned up the SD tools code quite a bit. Added bootstrap to all tools.
2354 - Ensure that tape session labels are not split across two blocks. This makes
2355   reading them back much easier.
2356 - Fixed another restore bug concerning tape labels on multi-volume saves.
2357
2358 =============================================================================
2359 2002-08-14 Version 1.24
2360   From kes12Aug02
2361 - Made a new tools directory.
2362 - Moved smtp into the tools directory.
2363 - Created a dbcheck program in the tools directory that
2364   checks for certain database errors and if requested fixes them.
2365 - Put the database link flags on DB_LIBS so that it now only is
2366   on binaries that actually need it.
2367 - Document dbcheck and testfind programs.
2368 - Move testfind to tools directory.
2369 - Check for FileSet after getting Client name in Restore command.
2370   Modify all necessary SQL commands to accept FileSetId.
2371 - Add a db_get_fileset_record in cats directory.
2372 - Correct list last 20 files concatenation to be MySQL 
2373   dependent. They aren't SQL standard. Use SQL standard || for
2374   other SQL programs.
2375 - Modify dir command in file selection to produce a long form
2376   listing of the file/directory name.
2377 - Add platforms/irix/*.in files to CVS
2378 - Make Console command scanner accept quoted value fields.
2379 - If after selecting Client to restore, there are multiple
2380   FileSets, ask user to select one.
2381 - After obtaining JobIds for restore, ensure that there is only
2382   one MediaType, and select a Storage resource to be used.
2383
2384   From kes11Aug02
2385 - Made restore actually work.
2386 - Made console and gconsole be configured (requested by Chuck)
2387 - Updated kernstodo
2388 - changed fs in Job record to fileset for clarity
2389 - The console run command was not properly picking up the command
2390   line arguments.  Fixed!
2391 - Changed add/remove/rm to mark/unmark
2392 - Volume keyword VolumeName was wrong, changed to Volume (in restore bsr).
2393 - Pass jcr to parse_bsr, and if non-NULL, it will output error messages
2394   to Job stream rather than Emsg.
2395 - Modified lexical scanner to include caller context so that jcr can
2396   be stored in lex context allowing error messages to be properly 
2397   routed.
2398 - Renamed the Job message chain to be jcr_msgs. This eliminated the      
2399   previous confusion with the default value, now named jcr->messages.
2400 - Implemented multi-volume bsr records.    
2401 - Implemented pm_strcat() and pm_strcpy() to cat/add to memory pool
2402   buffers in same way as strcat/strcpy, but expanding buffer.
2403 - Modified db_get_volume_names to handle arbitrarily long Volume list.
2404
2405   From kes07Aug02
2406 - If the Console program terminated during the printing of messages,
2407   the message file was left locked. This was corrected by using the
2408   new read-write lock code.  
2409 - Implemented Pw() and Vw() for obtaining and releasing a write lock
2410   using the rwl_xxx routines.
2411 - Deleted some old pthread_mutex code from mysql.c
2412 - In making the Irix port, I previously corrected the base64 routine so 
2413   they were not sensitive to the machine definition of char. This made
2414   them incompatible with previous versions invalidating MD5 signatures
2415   which are in base64 format. I have now corrected this, making the
2416   routines compatible with the previous version but also insensitive
2417   to the default definition of char.
2418 - Removed some unnecessary NPRT() usage in signal.c (pointed out by
2419   the Irix compiler).
2420 - Add back BNET_NONO for compatibility with older File daemons.
2421 - Implement runing a restore Job in the restore command.
2422 - Make installation of query.sql unconditional. To prevent you own file
2423   from being overwritten, give it a different name.
2424 - Made parse_command_args() in ua take command from ua->cmd, this
2425   simplifies it and allows usage in other places -- e.g. building
2426   arguments for created run command in restore.
2427 - Cleaned the naming of s_full_ctx to be s_jobids.
2428 - Write the bsr created in restore to "working-directory"/restore.bsr
2429 - Fix bugs in command line scanner in run command -- also some misplaced
2430   breaks!
2431 - Eliminate static cmd in ua_server.c
2432 - Eliminate segmentation fault when using the Run command in the
2433   Console -- forgot to init_msgs().
2434
2435   From kes06Aug02
2436 - Did a good amount of documentation.
2437 - Added sql_cmds.c to CVS, forgot, pointed out by Chuck.
2438 - Added new platforms/irix directory to CVS
2439 - Turn off transaction debug code in sql.c
2440 - Reworked the scheduler so that it handles the same Job starting
2441   twice in the same hour. Previously it took one or the other.
2442 - Tightened up the "slop" in the timings that I programmed to ensure
2443   that the same job isn't run twice or that no job was missed.
2444 - Increase the sleep time.
2445 - Used job_type_to_str() in status so that Admin jobs are correctly reported.
2446 - Add internationalization message chars to a number of routines
2447   in util.c
2448 - Make the watchdog timer clear the mutex when it exits.
2449 - Some tweaks to the Restore command. It needs fixing when a Job spans
2450   two or more volumes.
2451
2452   From kes05Aug02
2453 - Initial cut at adding Irix File daemon support.
2454 - Lots of work on the restore command.
2455 - Take a stab at eliminating the "broken pipe message"
2456   when the console program prematurely terminates.
2457 - Reimplemented transactions for SQLite by keeping
2458   them all in the same thread.
2459 - quit in the Console program now waits for Bacula to
2460   quit. To immediately quit, you must enter .quit
2461 - Eliminated BNET_EOF -- this COULD have some negative consequences
2462   on interdaemon communications.
2463 - Define Job termination status for Admin jobs.
2464 - Write new bstrncpy() function that guarantees that strcpy is
2465   properly terminated.
2466 - Fixed command input in ua_input.c to accept quoted items as a
2467   single field. 
2468
2469   From kes01Aug02
2470 - The changes that added indexes to the SQLite database were
2471   lost -- thanks to Chuck for pointing this out. Redone.
2472 - Fixed a problem quoting strings in SQLite. This showed up
2473   as database errors with files containing ' or " in the filename.
2474 - Implemente restore command -- still in progress.
2475 - Added indexes to all fields in SQLite that exist in MySQL.
2476 - Moved unused immortal files from src/lib to src/immortal.
2477   This will permit splitting depkgs.
2478 - Started work on adding embedded MySQL. Cannot get the tables
2479   to work for the moment. Please don't try to use this option.
2480 - Convert to using single quotes for enclosing all strings.
2481 - Implement correct quoting algorithm for SQLite strings.
2482   Is dequoting needed?
2483 - Started centralizing SQL statments in the Director in sql_cmds.c
2484 - Changed a number of M_ABORTs to M_ERROR_TERM so that program terminates
2485   but does not produce a dump.
2486 - Allow wild-card matches in bsr for Client name, and Job.
2487 - Change OflineOnUnmount=no as default.
2488 - Fixed improper printing of filenames containing a space in bls.c
2489   Thanks to Carlos for reporting this.
2490
2491 ===========================================================================
2492 2002-07-26 Release 1.23a
2493 - Fix segmentation fault is FD status.
2494 - Turn off TRANSACTIONs for SQLite.                        
2495
2496 ===========================================================================
2497 2002-07-23 Release 1.23
2498   From kes22Jul02
2499 - Updated Bacula to handle some minor differences in MySQL 4.0.2
2500   (still works with older MySQLs).
2501 - Updated MySQL documentation to correct some minor errors.
2502 - Added kernstodo to CVS
2503 - Fixed create_mysql_database, which I recently accidently broke.
2504 - Disallow zero length volume names in Console program.
2505 - Create alter_mysql_tables and alter_sqlite_tables for conversion
2506   from 1.22 table format to 1.23 table format.
2507
2508   From kes20Jul02
2509 - Investigation of SQLite performace problems reported by Chuck.
2510 - Updated ChangeLog
2511 - Updated README
2512 - made root@localhost the default email address because many smtp
2513   servers reject root but accept root@localhost
2514 - Added an autochangers chapter to the manual.
2515 - Documented most of the new features in 1.23
2516 - Modified the SQLite interface code to start a transaction at the
2517   beginning of a job and commit it at the end of the job. It
2518   also commits it after 10000 changes. Hopefully this will
2519   improve performance.
2520 - Set the default cache pages from 2000 to 10000 for SQLite (i.e.
2521   about 15Megs of memory) hoping to improve performance.
2522 - Terminate last filename referenced in FD prior to copy to
2523   avoid race problem with multiple threads and no locking.
2524 - Enhanced the status output to include the JobType                
2525 - Print an error message if the email program terminates in error.
2526 - If your machine has an MTUNLOCK, do it before doing an OFFLINE to
2527   ensure that the door is unlocked.
2528 - Added code to stored/append.c to spool attributes. This is in
2529   a testing stage and must be explicitly enabled.
2530 - Added a no_attributes variable to stored/append.c that prevents
2531   the attributes from being sent to the Director. As yet, no way
2532   to turn it on.
2533 - Modified SQLite code so that after 10000 updates any transaction
2534   is committed, then restarted. This keeps it from using too much
2535   memory.
2536 - Set the default cache size to 10000 pages (previously 2000).
2537 - Fixed a segmentation fault on Sun due to no default value for
2538   the JobStatus.
2539 - Added the same indexes to SQLite that I exist in MySQL. This
2540   VASTLY reduces CPU usage for lots of inserts.
2541 - Added spooling to bnet_send().
2542
2543   From kes18Jul02
2544 - The following two changes were prompted by questions/suggestions
2545   from A Morgan.
2546 - If you have "AlwaysOpen = no" in your SD Device
2547   resource, Bacula will free() the drive when it
2548   is finished with the Job.
2549 - If you have "Offline On Unmount = yes", in your
2550   SD Device resource, Bacula will offline (or eject)
2551   the tape prior to freeing it.
2552 - Added Maximum Open Wait to allow open() to wait if drive is busy.
2553 - Added RunBeforeJob and RunAfterJob records to Job records.
2554   This permits running an external program with the following editing
2555   codes:
2556     %% = %
2557     %c = Client's name
2558     %d = Director's name
2559     %i = JobId
2560     %e = Job Exit
2561     %j = Job
2562     %l = Job Level
2563     %n = Job name
2564     %t = Job type
2565
2566   From kes17Jul02
2567 - Added autochanger support to devices.c
2568 - Allow user to change Slot in the Volume record.
2569 - Implemented code in lib to run an external program
2570   (tape changer)
2571 - Implemented a changer script for mtx.
2572 - Currently the changer commands used are:  
2573     loaded -- returns number of slot loaded or 0
2574     load   -- loads a specified slot
2575     unload -- unloads the device (returns casette to slot)
2576 - Other changer commands defined but not yet used:
2577     list   -- returns list of slots containing a cassette
2578     slots  -- returns total number of slots 
2579 - Implemented ChangerCommand, specified in the SD Device
2580   resource, permits editing of:
2581       %% = %
2582       %a = archive device name
2583       %c = changer device name
2584       %f = Client's name
2585       %j = Job name
2586       %o = command
2587       %s = Slot base 0
2588       %S = Slot base 1
2589       %v = Volume name
2590 - Implemented MaximumChangerWait default 120 seconds. It is 
2591   specified in the SD Device resource.
2592
2593   From kes15Jul02
2594 - Moved techlogs from main directory to be subdirectory of doc
2595 - Added code for strerror_r, and detection of gethostbyname_r().
2596 - The protocol between the Director and the SD has changed.
2597 - Major rework of SD tape mounting to prepare for Changer commands.
2598 - Separated Update Media record and Create JobMedia record. These
2599   are done from the SD by calling the Director. Need separate Create
2600   JobMedia so that when a Job spans a volume, all other Jobs writing
2601   the same volume will also have JobMedia records created.
2602 - Added message to user indicating selection aborted if he enters .
2603   to a Console selection request.
2604 - Create a jobstatus_to_ascii() routine for use in status commands.
2605   This makes a single routine from three separate pieces of code.
2606   Updated the code to properly handle more (all) termination statuses.
2607 - Tried to fix the gnome-console to handle history a bit better. There
2608   are still some problems with focus not being properly set to the edit
2609   box after history replacement.
2610 - Removed the shutdown() from bnet_close() hoping to fix Console termination
2611   errors that are occassionally seen -- no luck.
2612 - Moved add_str() to lib/util and renamed it add_str_to_pool_mem() so that
2613   it can be used to edit Job termination codes and Changer command codes.
2614 - Reworked how the SD mounts tapes (in device.c) so that control passes through
2615   only a single routine. The logic is much simpler than previously, and now
2616   adding AutoChanger code is straight forward.
2617 - Made SD tape mounting much more fault tolerant -- more cases retry instead
2618   of terminating the Job.
2619 - Wrote code to edit_device_codes() for Changer commands. Not yet fully     
2620   implemented.
2621 - Added a ChangerDevice directive to the Device resource. Still need to add
2622   ChangerCommand.
2623
2624   From kes07Jul02
2625 - This documents what I did while on vacation. 
2626 - A fair amount of documentation.
2627 - Implemented Verify Volume to Catalog (needs renaming)
2628 - Modified the database to include new MarkId field as
2629   well as Counters. Database level is incremented from 1 to  2.
2630 - Added first cut of managing autochangers by implementing Slot in DB.
2631 - Fixed a good number of M_ERROR messages to be M_FATAL where appropriate.
2632   Also converted a number of Emsg() to Jmsg() permitting better Job error
2633   messages.
2634 - First cut at implementing a general packet passing mechanism for bsock
2635   to replace printf and sscanf for passing data.     
2636 - Made make_xxx_tables and drop_xxx_tables and create_xxx_database
2637   for bdb as well as sqlite. With this each database has the
2638   same set of scripts (with the exception that MySQL has grant_privileges).
2639 - Modified Makefile to only install the database scripts for the
2640   database that you are using.
2641 - Updated the pdf script to include all the html files.
2642 - Did quite a lot of documentation.
2643 - Made Bacula compile correctly with DEBUG turned off.
2644 - Implemented Pmsg() macros that permit using the debug print
2645   routines even with DEBUG off.
2646 - Updated job_cancelled() macro to handle JS_FatalError.
2647 - Changed db_find_last_full_verify() to db_find_last_jobid(). This
2648   permits working with Verify Volume to Catalog.
2649 - Removed TRANSACTION code from incrementing NextId for SQLite. 
2650 - Implemented quick and dirty (not fully functional code) so that
2651   console program does not die if ctl-Z is entered. 
2652 - Cleaned up backup.c a bit adding a bail_out goto to ensure proper
2653   handling of errors with minimum code.
2654 - Added passing Slot back and forth to Storage daemon with Volume info.
2655 - Implemented Slot in Media record in DB.
2656 - Implemented first cut of Counter resource in dird_conf.c. A counter
2657   resource is part of the Pool resource.
2658 - Implemented necessary database record. However, the resource doesn't
2659   yet create a DB record.
2660 - Implemented onefs (One File System) and recurse options on Include
2661   resource.
2662 - Implemented autopruning of Verify and Restore Jobs.
2663 - Did a better job of calculating thread_concurrency() for Sun systems.
2664   This permits better multi-threading allowing all the threads to run
2665   at the same time.
2666 - Implemented a wait_for_storage_daemon_termination(), which is used by
2667   backup and verify volume.
2668 - Clarified a number of UA prompts, and add feedback where certain commands
2669   completed but printed nothing. (More work to be done here).
2670 - Added a pile of new code to implement Verify Volume to Catalog. It is sort
2671   of a hybrid of "restore" and "verify" in that it actually reads the tape,
2672   then compares it to the catalog.  Need Verify Volume to Client.
2673 - Added a good number of checks for job_cancelled() this should permit
2674   quicker and more reliable cancelling of jobs.
2675 - Fixed one bug in restore where I used ofile instead of lname, which means
2676   that if the lname was too long, the memory was not properly reallocated.
2677 - Cleaned up find_one.c in findlib quite a bit.
2678 - Link smtp static so that it works even if the libraries are messed up.
2679 - If mail host is not found, retry with local host in smtp.
2680 - Added slot and stream to the bootstrap record processing.
2681 - Do offline on tape cartrige for unmount command. This can be turned off
2682   by the user in the config file. OffLineOnUnmount in Device resource.
2683 - Implemented AutoChanger = yes/no in Device resource.
2684
2685 ===========================================================================
2686 2002-07-07 Release 1.22
2687 - All the basic Restore code to handle the boostrap file is
2688   now implemented with the exception of the Console Restore command.
2689 - Retained compatibility with previous Restore providing no 
2690   bootstrap file is specified. However, the old code (JobId based)
2691   will go away in a future release.
2692 - Fixed a number of segmentation faults in the Console program due
2693   to printing of NULL pointers -- thanks to Chuck and his Sun for
2694   finding and reporting them -- mostly in ua_output.c.
2695
2696   From kes25Jun02
2697 - Null pointers now are printed as *None* if NPRT() is used.
2698 - At the request of Phil, all resources are now chained in in the
2699   order they appear in the config file.
2700 - Implement Bootstrap record in the Director's config file, which
2701   allows you to specify a predefined bootstrap file for Restore Jobs.
2702 - Allow Bootstrap on the Restore record. This is deprecated.
2703 - Implemented code to pass the Bootstrap file, if defined, to the
2704   File daemon, then from the File daemon to the Storage daemon.
2705 - Added ability to set Bootstrap file in the Console when running a Restore.
2706 - Allow scan_error() routine to be passed to lex_open_file(). This permits
2707   using lex in the Storage daemon without worrying that it will ABORT on
2708   a syntax error.  More work is needed to direct the error messages correctly.
2709 - Improved error messages a bit when config syntax errors are found.
2710 - Tested and corrected some errors in match_bsr.c
2711 - Removed askdir.c from bls and bextract by defining dummy entry points.
2712 - bextract now has bootstrap pretty well integrated.
2713 - Changed bextract ABORTs into FATAL and exit(1) or ERROR_TERMINATE.
2714   More user friendly.
2715 - Eliminated at least one lld and replaced it by edit_uint64() 
2716 - Eliminated a few more _PROTO()s.
2717 - Corrected a problem with the SQL for in query.sql for 
2718   Listing Volumes to Restore All Files
2719
2720   From kes22Jun02
2721 - Additional documentation.
2722 - Reduce the time the jcr mutex is locked in lib/jcr.c
2723 - More null pointer printing fixes in lib/parse_conf.c (debug output only).
2724 - Added daemon filename to Kaboom message so I know what daemon died.
2725 - Fix big bad bug introduced in watchdog.c last update that caused
2726   a segmentation violation (forgot to check for NULL pointer).
2727 - Add a bit more info to bad returns from Stored when starting
2728   a job fails.
2729
2730   From kes21Jun02
2731 - Fixed scan_to_eol
2732 - Fixed backup scanning forgot one T_STRING -> T_UNQUOTED_STRING
2733 - changed all rwlock_t to brwlock_t to avoid conflicts with
2734   Solaris library.
2735 - Added NPRT() macro to allow printing of NULL pointers, which
2736   segment fault on Solaris.
2737 - Cast printing of pid_t to int for Solaris compiler.
2738
2739   From kes20Jun02
2740 - Added expect argment to lex_get_token().
2741 - Added tree.c and tree.h to lib directory.
2742
2743   From kes19Jun02
2744 - Improvements to the bootstrap compiler
2745 - Implemented first cut of bootstrap code in the Storage daemon
2746 - Modified the authentication code to be more explicit during 
2747   failures.
2748 - Added a few more debug message numbers with more arguments (Dmsg10, ...)
2749 - Added more and more precise error messages when authentication fails.
2750 - Implemented new "expect" codes in the lexical scanner that allows
2751   the caller to specify what he wants.                   
2752 - Added integer, positive integer, 64 bit integer, and integer ranges,
2753   and name scanning to lex.
2754 - Implemented new lex code in parse_conf.c, this reduces significantly
2755   the code.
2756 - Hopefully fixed a watchdog race bug that caused the watchdog to time
2757   out a line after 1 hour rather than 6 days.
2758
2759   From kes15Jun02
2760 - Implemented a Bootstrap file parser and matcher.
2761 - Implemented first cut of bootstrap code in bextract  
2762 - Started clarifying different termination codes.
2763 - Added M_ERROR_TERM to immediately terminate the daemon -- no dump.
2764   Also changed a few termination codes as appropriate.
2765 - Fixed create_jobmedia_record() to include all the fields such as
2766   StartFile/EndFile, StartBlock/EndBlock.
2767 - Print user friendly message when query mode ends.
2768 - Fixed ls style print routines (bextract, bls, restore) to check
2769   buffer size, to print the link if any, and to used edit_uint64()
2770   instead of %lld.
2771 - Moved scan_to_eol() and s_err() to lex.c to avoid dragging in 
2772   parse_conf.c for new bsr scanning code.
2773 - New files: bsr.h, parse_bsr.c and match_bsr.c. parse_bsr.c parses
2774   a Bootstrap file, and match_bsr.c matches a bsr against a tape.
2775 - use strcasecmp() in several places instead of lcase().
2776 - Add first cut of bootstrap to bextract.
2777 - Added File Size limit -- writes EOF after limit exeeded.
2778
2779 ===========================================================================
2780 2002-06-12 Release 1.21
2781 - Fixed several problems with filenames being truncated if
2782   they contain spaces. Thanks to the user that reported this.
2783 - N.B. To get the new queries, after the "make" and 
2784   "make install" you must explicitly replace the
2785   existing query.sql by query.sql.new.  query.sql is a
2786   user configuration file, so it is not overwritten.
2787 - Added GZIP compression of Included files.  
2788 - Added additional fields to tape SOS record permitting better
2789   recovery with no database.
2790 - Be sure to remove any !terminate statements you may have
2791   in your config files.
2792 - MUST UPDATE ALL DAEMONS due to protocol change to handle new
2793   tape format.
2794
2795   From kes11Jun02:
2796 - Updated examples directory with my most recent config files.
2797 - Modified the M_TERM meaning to mean that Bacula has
2798   terminated in error without producing a dump. Previously,
2799   it meant that Bacula terminate (with or without error).
2800   You should remove any !terminate from your messages
2801   resources.
2802 - Changed the order of the libraries in the link so that
2803   tcp wrappers link properly. Thanks Phil for reporting this.
2804 - A user reported that filenames containing spaces were truncated
2805   in bextract. This was indeed the case. They were also truncated
2806   in Restore as well as in Verify. They are, hopefully, all fixed
2807   now.
2808 - Made a few error conditions in Verify non-fatal.
2809 - Modified the Console "query" command to permit multiple SQL
2810   statements per command. 
2811 - Implemented three new "query" options: 
2812     List last 10 Full Backups for a Client
2813     List Volumes used by selected JobId
2814     List Volumes to Restore All Files
2815   To use them, simply type "query" to the Console program, and
2816   select the one you want.
2817 - Modified bextract to default to extracting all files (i.e. /).
2818 - Cleaned up the code in bextract a bit.
2819
2820   From kes03Jun02:
2821 - Improve Verify command to include files examined.
2822 - Eliminate fcntl() locking of the console file and replaced
2823   it with a pthreads mutex.
2824 - Note Director - SD protocol is changed to handle new tape
2825   information (Fileset, JobType, JobLevel).
2826 - Create config.out that contains a summary of ./configure
2827   to see what you previously configured: "cat config.out"
2828 - Implemented GZIP compression.  Added addition syntax to
2829   Include { } resource to permit setting of any GZIP compression
2830   level:
2831      compression=GZIP
2832      compression=GZIP1
2833      ...
2834      compression=GZIP9
2835
2836   Level 1 is minimum compression and level 9 is maximum. Using just
2837   GZIP gives the default (level 6).
2838 - Enhanced the tape format to include the unique Job name, FileSetName,
2839   JobType, and JobLevel in the Start/End of Session records. The code
2840   detects that tape level difference and acts accordingly. You can 
2841   add data in the new format to old tapes.
2842 - Fixed an incorrect display message in the prune command.
2843 - Began implementation of Verify Volume and Verify Data.
2844 - Cleaned up File daemon restore.c a bit ensuring that termination 
2845   cleanup is done and all possible Emsgs are converted to Jmsgs.
2846 - Modify bls.c to use common setup routines. This reduced the big
2847   code duplication that creeped in when I added different listing
2848   options. Also, changing tapes is now handled uniformily in a subroutine.
2849
2850 ===========================================================================
2851 2002-05-27 Release 1.20
2852 - Started documenting Catalog Pruning and Recycling.
2853   Added catmaintenance.html and recycling.html
2854 - Fixed the query command bug.
2855 - Implemented PID files to prevent two copies of Bacula
2856   from running at the same time. Be sure you --with-pid-dir
2857   points to a working directory.
2858 - Modified ASSERT() to cause a segmentation violation. This
2859   permits a core dump.
2860 - Worked on gnome-console. It paints better, it tells you if it
2861   is ready to accept a command or processing one, and it is
2862   almost entirely GTK+ (rather than GNOME, I'm removing GNOME
2863   a bit at a time).
2864 - Limit to 100 the number of tape labeling errors in a single Job.
2865 - Add some additional ASSERT()s to the database routines. I don't
2866   like ASSERTs but they do catch bugs.
2867 - Tested and debugged recycling of Volumes.  Needed to change
2868   the Director-SD protocol slightly.
2869 - Removed the experimental SIGHUP in the Director as it is a
2870   potential source of errors.
2871 - Added Level, Pool, Messages, and Storage keyword/value scanning
2872   to the Schedule Run record.
2873 - Improved printing of Schedule resources with "show schedules"
2874 - Do not autoprune Jobs/Files if the Job errs.
2875 - Updated newvol() to pass back the updated Media record.   
2876 - Fixed the "update pool" command, which was broken during a much
2877   earlier code reorganization.
2878 - Improved a few of the pruning messages.
2879 - Removed readline inclusions from gnome-console (hang over from console).
2880 - Make Jmsg use daemon message handler if no message handler is defined.
2881   This is always the case in the SD and FD.
2882 - Started removing __PROTO(). With C++ prototypes are manditory, so why
2883   keep around legacy code.
2884 - Added a good deal of message internationalization -- more to be done.
2885 - Move cached Path into mdb structure and use POOLMEM.
2886 - Fix verify bug introduced last update causing incorrect diffs 
2887   by turning off autopruning.
2888 - Started adding code to distinguish Errors from Fatal Errors.
2889 - Errors are now counted in message.c for a Job.
2890 - More POOLMEM cleanups.
2891 - Implemented Automatic pruning.
2892 - Implemented Automatic recycling of Volumes.
2893 - Added PruneJobs/Files/Volumes=yes or no to Job resource. If set,
2894   it forces the specified pruning.
2895 - Modified rwlock to accept multiple nested write lock
2896   requests.
2897 - Modified the cats directory to use the new rwlock mechanism
2898   in place of P() and V(). 
2899 - Defined db_lock(mdb) and db_unlock(mdb). They are in effect
2900   transaction locks. 
2901 - Add CVS Id's to most files.
2902 - Made first cut at AutoPrune
2903 - Added new autoprune file that is called at the end of
2904   each Job. It then decides when and what to prune and
2905   calls the UA prune routines.
2906 - Modified Run (in Schedule resource) to permit overrides of
2907   Level, Pool, Storage, and Messages. (not tested).
2908 - Added more POOLMEM in place of char.
2909 - Implemented daemon pid files. This prevents multiple 
2910   daemons from running simultaneously. You can run multiple
2911   daemons if they listen on different ports.
2912 - Documented the Schedule resource a bit better.
2913 - Began gently adding a POOLMEM type (perviously void).
2914   For the moment it is a #define to char, but long term
2915   it should be its own typedef.
2916 - Corrected a bit of spacing on the status bar of gnome-console
2917 - Added Admin and Archive Job types.
2918 - Implemented multiple Messages resources. Each daemon has
2919   its own message resource, which defaults if not defined.
2920   Jobs may now have different message handlers.
2921 - Cleaned up a bit of duplicate code in backup, verify, and
2922   restore by creating appropriate subroutines in job.c
2923 - Added Type, Client, FileSet, and Level resource record
2924   definitions to the Director. These can be used in place
2925   of the Backup = ..., Verify = ..., ... commands.  This needs
2926   documenting.
2927 - Corrected an incorrect message in the prune code and added
2928   the number of Files pruned in the message.
2929 - Corrected several paint problems with gnome-console.
2930 - Added a bit of printout in signal handler during traceback.
2931 - Cleaned up most of sm_check() to be turned on/off by define
2932   in version.h
2933
2934 ===========================================================================
2935 2002-05-10 Release 1.19
2936 - Allow the user to select a new period for pruning.
2937 - Lots of additions to the manual -- prune and purge
2938   commands documented.
2939 - Applied Phil's configure.in fix for --prefix, ...
2940 - Fixed bug found by Phil (patch supplied) in updating
2941   MD5 signatures (revert to 32 bit FileId, move "static"
2942   variables into JCR) (catreq.c fd-cmds.c).
2943 - Reverted to using INTEGER for FileId in make_sql_tables
2944   due to a bug in MySQL.
2945 - Change editing code to %d for FileId.
2946 - Remove sqlite in make distclean in cats directory.
2947 - Remove console.conf in console during make distclean.
2948 - Remove gnome-console.conf during make distclean.
2949 - Remove bacula-dir.conf during make distclean.
2950 - Set default level when using Console if none specified.
2951   Bug reported by Phil.
2952 - A simple . command from Console is ignored.   
2953 - Change program named from filed to bacual-fd in winmain.cpp
2954 - Change default config file for Win32 in winmain.cpp
2955 - Free namebuf on early return from find_one.c. Bug reported by Phil.
2956 - Modify testfind.c to dump orphaned buffers.
2957 - Removed terabytes from parse_conf.c because of problems with
2958   older gcc compilers.
2959 - Turn off gnome options in gnome-console by constructing empty argv.
2960 - Fixes to Verify when only MD5 differs.
2961 - Insert 0 for MD5 as default rather than space.
2962 - Allow .messages "transparent" command while reading input
2963   in UserAgent server.
2964 - In dird/verify.c ensure that correct filename is printed if only
2965   the MD5 differs. Minor reindenting caused large diff.
2966 - Delete unused code from backup.c
2967 - In filed/verify.c ensure that same algorithm as backup.c is used
2968   to pass back MD5 signatures -- especially for directories and files
2969   that cannot be read. Change dummy filename from X to *MD5-id*.
2970   This dummy value should never be printed.
2971 - Make gnome-console poll Director every 5 seconds for output.
2972   This means that queued up messages are displayed at reasonable
2973   intervals. Delete some unused code hanging around from the tty
2974   console program.
2975 - Begin implementation of prune commands.
2976 - Add command line history to gnome-console. Not yet saved across sessions.
2977 - Fixed some broken URLs in the manual.
2978 - Added JobId type.
2979 - Wrote first cut of "prune files" and "prune jobs".
2980 - Added command line history to gnome-console 2500 lines max.
2981 - Widened store_time() and associated variables to 64 bits using
2982   new btime_t definition.
2983 - Removed GNOME about box and replaced it with 
2984   a somewhat crude Gtk+ about box in the gnome-console.
2985 - Widened StartDay in the Job DB record to be 64 bits.
2986 - Changed edit_uint_ to edit_uint64_ everywhere. Much more
2987   descriptive of what is done.
2988 - Removed most llds and replaced them with %s and edit_uint64.
2989   This makes the code a bit easier to read for beginners.
2990 - Added a btime_t typedef which is 64 bits wide.
2991 - Added most of the code needed to do Purge and Prune of
2992   database. Not yet tested. Please do not use.
2993 - Additional config options for Console.
2994 - Started adding code for Automatic Recycling of Volumes.
2995 - Allow arbitrary length filenames in Verify code.
2996 - Fix incorrect filename in Verify code.
2997 - Significant enhancement to number scanning in config parser.
2998 - Requires initializing MySQL tables, or applying cats/alter.sql
2999   to modify Media table.
3000 - Modified Makefile to printer a much more visible
3001   message if the make ends in error.
3002 - Added the Purge value to the VolStatus in the Media table.
3003   This value is set if the Volume is purged.
3004 - Enhanced the db_delete_media_record() routine to delete
3005   all associated records in the database.
3006 - Modified Console to always write to the variable "output"       
3007   rather than stdout. This will permit directing output to a file.
3008 - Enhanced the Console configuration file to have a Console 
3009   resource. This will allow us to add an rcfile and history file.
3010 - Modified Find_next_vol in catreq.c to search for "Recycle"
3011   volumes if there are none marked Append. Also made Get_Vol_info
3012   return the VolStatus to the Storage daemon.
3013 - Allow upper/lower case match on job level names.
3014 - Added another warning message to the Console "delete media" command.
3015 - Corrected a number of FileId types from uint64_t to FileId_t in
3016   ua_retention.c.
3017 - In ua server close database before freeing JCR (because pointer is
3018   kept in ua and jcr structures).
3019 - parse all numbers as doubles. Do lots of checking for valid number
3020   formats. Allow numbers in scientific form (e.g. 1.5e+10).
3021 - Remove terabyte modifier as it doesn't work in some compilers.
3022 - Fix bug in handling some modifiers.
3023 - Added all necessary code for Recycle to Storage daemon. A Volume
3024   marked Recycle will now be overwritten.
3025 - Filled out the prune command a bit and did some testing.
3026 - Make console accept redirected input.
3027 - Altered the Table definitions to include Recycle,
3028   FileRetention, JobRetention, and AutoPrune.
3029 - Widened StartDay to 64 bits.
3030 - Use JobId_t in more places. 
3031 - Added the new table fields to the database record definitions.
3032 - Changed Recycle from string to a binary quantity.
3033 - Added a Version table with a VersionId to detect.
3034   future changes in the database. This should prevent
3035   a Bacula from working with a database that is not in sync.
3036 - Modify Console to accept input from a file. This will permit
3037   the .read command and allow reading a .rc file.
3038 - Added new retention and recycle variables to the Director's configuration.
3039 - The UA subroutines or commands can now be called from core
3040   code because the output routines detect the absence of a 
3041   UA socket and direct output to the Job.
3042 - Added a verbose flage to the ua packet to permit reduction of
3043   output while running a UA command (prune) from a Job.
3044 - Did a fair amount of work on the prune command. Prune Volume now works.
3045 - Purge Volume now works.
3046 - Made last changes for integrating prune and purge commands.
3047 - Add -ltermcap to CONS_LIBS when readline is configured.
3048   More work to be done to search for termcap.
3049 - Added cats/drop_sqlite_tables.in, which will delete the SQLite database.
3050 - Got CWEB working so that we can compile filesys.w and immortal.w
3051 - Modified depkgs to include cweb.             
3052 - Note, CWEB is not yet used by the core Bacula code.
3053 - Made cats/alter.sql, which alters an old database to bring it
3054   up to the new format. This only works with MySQL since SQLite does
3055   not have the ALTER SQL command.
3056 - Changed the old StartDay field in the db to be JobTDate, which is
3057   the latest time/date in widened Unix time format that the Job ran.
3058   This value is used when doing pruning.
3059 - Added code in cats/sql.c to verify that the database internal version
3060   corresponds to the db version compiled in Bacula. It is set to 1 currently.
3061 - Lots of changes to cats to bring the SQL up to date with the new 
3062   retention period changes.
3063 - Added Console command code to permit changing a Volume's retention period.
3064 - Removed old code that used date_encode() and replaced it with widened
3065   Unix time().
3066 - Started modifying Message resource scanner so that we can have multiple
3067   message resources. Much more work to be done.
3068 - Moved scanning for time into new library routine string_to_btime().
3069
3070 ===========================================================================
3071 2002-04-22 Release 1.18
3072 - Applied Phil's configure.in fix for --prefix, ...
3073 - Fixed bug found by Phil (patch supplied) in updating
3074   MD5 signatures (revert to 32 bit FileId, move "static"
3075   variables into JCR) (catreq.c fd-cmds.c).
3076 - Reverted to using INTEGER for FileId in make_sql_tables
3077   due to a bug in MySQL.
3078 - Change editing code to %d for FileId.
3079 - Remove sqlite in make distclean in cats directory.
3080 - Remove console.conf in console during make distclean
3081 - Remove gnome-console.conf during make distclean
3082 - Remove bacula-dir.conf during make distclean
3083 - Set default level when using Console if none specified.
3084   Bug reported by Phil.
3085 - A simple . command from Console is ignored.   
3086 - Change program named from filed to bacual-fd in winmain.cpp
3087 - Change default config file for Win32 in winmain.cpp
3088 - Free namebuf on early return from find_one.c. Bug reported by
3089   Phil.
3090 - Modify testfind.c to dump orphaned buffers.
3091 - Removed terabytes from parse_conf.c because of problems with
3092   older gcc compilers.
3093 - Turn off gnome options in gnome-console by constructing empty
3094   argv.
3095
3096 ===========================================================================
3097 2002-04-18 Release 1.17 Kern Sibbald
3098 - Ensure that platforms Makefiles are called for clean  
3099   and distclean.
3100 - Hide a lot of Makefile messages with @
3101 - Applied Phil's configure.in patch. Thanks.
3102 - Doc updates, many to clarify points brought up by Phil.
3103 - Applied Phil's make_mysql_tables.in patch. Thanks.
3104 - Made authenticate.c in dird test bnet_send status.
3105 - Make label a bit more friendly with extra info message.
3106 - Add level 200 to debug info in run command.
3107 - Remove old code from findlib/testfind.c so that it compiles.
3108 - Add two minute max wait to cram-md5 authentication. Hopefully,
3109   this will catch non-responding WinNT daemons.
3110 - Allow time and size modifiers to be upper or lower case.
3111 - Turn off old CYGWIN patch for pthread_cond_timedwait() bug that
3112   now causes File daemon hangs on WinNT.
3113 - Fix mount messages for restore. Previous updates to save
3114   broke the restore code.
3115 - By default write fixed block sizes rather than variable block
3116   sizes.  My Sony DAT simply does not work (reread failures) with
3117   variable block sizes.
3118 - Data split across tapes was not being correctly restored
3119   (at least on DAT tapes). 
3120 - Implement MaximumBlockSize and MinumBlockSize statements in
3121   Storage daemon so user can specify variable block sizes if
3122   desired.
3123 - Return error if block checksum error on read (previously 
3124   ignored).
3125 - Fixed some error messages in bls, and in some cases exit(1)
3126   rather than ABORT. There remain ABORTs to be examined.
3127 - Made a local copy of tcpd.h and corrected the function 
3128   prototype problem for C++.
3129
3130 ===========================================================================
3131 2002-04-14 First public release 1.16 Kern Sibbald
3132  - Many intervening changes/updates.
3133
3134 2001-09-29 Release 1.0 Kern Sibbald
3135  - Fixes to problems found at John's installation.
3136  - See techlogs/kes25Sep01 for details
3137
3138 2001-09-25 Release 1.0 Kern Sibbald
3139  - Helped John install at his site.
3140    He is backing up one Linux machine and
3141    one Win2000 machine.
3142
3143 2001-mm-dd Many releases
3144  - Released internally.
3145   
3146 2000-04-09 Release 0.4 Kern Sibbald
3147  - Added a lot of Director configuration code. In      
3148    part (a small part), the Director now uses the
3149    bacula.conf file to know what to do. There still
3150    remains a lot to do.
3151  - The file search code is now integrated into the
3152    MySQL database routines, and Bacula is now hooked
3153    into the MySQL database (if so configured). Thus
3154    all the database records are being created, though
3155    there still remains some work in getting all the
3156    details into the records (such as the Storage 
3157    coordinates).
3158  - I've defined how Volume pools work (see manual).
3159  - I've defined error message handling though no code
3160    is yet written.
3161  - The following resources and records are implemented
3162    in the Director configuration file (bacula.conf):
3163     
3164    Director
3165      Name (passed to Storage daemon)
3166    Client
3167      Name, Address, Port
3168      Password (not yet used)
3169    Storage    
3170      Name, Address, Port, Password, MediaType
3171    Job
3172      Name    
3173      Type (not yet used)
3174      Backup (only one permitted) 
3175        Client, FileSet
3176      Storage
3177      Schedule, Messages, Pool (not used)
3178    FileSet
3179      Name  
3180      Include (options ignored)
3181      Exclude (no options)
3182    Schedule (not used)
3183      Name
3184    Messages (not used)
3185      Name       
3186      Debug, syslog, mail, append (not used)
3187    Catalog
3188      Name
3189      Address, Port, Password (not used)
3190    Pool (not used)
3191      Name
3192      PoolType, MediaType (not used)
3193
3194  - Added Storage configuration routines.
3195    Director
3196      Name, password (verified against those sent by Director)
3197    Storage
3198      Name, Address, Port (address, port must correspond to Director's values)
3199      Password, MediaType
3200    Device
3201      Name, MediaType (must correspond to those sent by Director)
3202      Archive Device (defines device name)
3203
3204
3205 2000-03-10 Release 0.3 Kern Sibbald
3206  - Implemented new base64 encoding for attributes.
3207    This eliminates some of the error messages in the
3208    sprintfs on the Solaris due to different stat() sizes.
3209  - Implemented  the first cut of the file search routines for
3210    the File daemon.  The exclusion lists work including wild
3211    cards.   There is a lot of work to be done, but the basic
3212    structure is now in place (wild cards do not yet work for
3213    the include).
3214  - Completed writing the memory pool code.  Now I must
3215    implement it in the daemons.
3216  - Modified the bacula start/stop script so that it has a
3217    better chance of working on SGI and Solaris.
3218  - The catalog code has not been converted to the new file
3219    search code.
3220
3221 2000-03-06 Release 0.2 Kern Sibbald
3222  - Integrated John's fixes.
3223  - Made Makefiles self configuring when Makefile.in is changed.
3224  - Added a runit script in the top level that runs bacula
3225  - Added a "bacula" script in the top level directory that
3226    starts and stops the File daemon and the Storage daemon.
3227
3228 2000-03-03 Release 0.1 Kern Sibbald
3229  - Basic Director, File, and Storage daemons.
3230    Standalone Catalog services using MySQL
3231
3232 2000-01-22 Kern Sibbald
3233    * Setup basic file structure with ./configure