]> git.sur5r.net Git - bacula/bacula/blob - bacula/ChangeLog
161a5910813aee266c185ce6da918b87178f9e51
[bacula/bacula] / bacula / ChangeLog
1 2003-01-05 Version 1.28 released
2 General:
3 - Implemented Bare Metal Recovery for Linux and manual procedures for Solaris
4 - Now using only a single technotes file kes-1.28 and will add to
5   it as the development goes on.
6 - Wrote a general purpose bi-directional pipe command. This replaces
7   previous use of pipes as well as the run_program previously used.
8 - Make BSRs stop if no more matches are possible.
9 - Allow unliminted number of devices in Storage daemon.
10 - Allow connections to Storage daemon before all devices are initialized.
11 - Better documentation (and btape test command) on using fixed block
12   tape drivers.
13
14 Changes submitted this submission:
15 04Jan03
16 - Add cygreadline5.dll to Win32 release -- needed for console
17 03Jan03
18 - Add scripts make_catalog_backup and delete_catalog_backup that makes and
19   deletes an ASCII copy of the catalog for backup. An example of how
20   to use it is in the <bacula-src/src/dird/bacula-dir.conf file.
21 - Made a nicer column oriented listing of scheduled jobs for "status dir".
22 02Jan03
23 - Added backup/restore of raw partitions.
24 - Corrected restoration of files in root directory (problem with
25   splitting path from file).
26 01Jan03
27 - Finally decided to cleanup handling of splitting path and filenames
28   in the cats directory. Now the code is in one place sql.c and it
29   is done using Pool memory, so there are no length restrictions.
30 31Dec02
31 - Add start of Solaris bare metal recovery
32 - Add Site Visit usage statistics to Web page
33 - Got Bacula listed on www.backupcentral.com
34 30Dec02
35 - Retest bare metal recovery on Linux 2 times with verify
36 - Cleanup printout of verify differences using proper casting to
37   handle shorts and long longs.
38 29Dec02
39 - Added --enable-client-only to ./configure
40 - Modified --enable-static-sd to work better and documented it.
41 - Fixed Restore options (never,ifnewer, ...). They now work.
42 - Moved the stored.c Resource lock into the allocation thread so
43   that the same thread sets/clears it. This created a problem on
44   FreeBSD.
45 28Dec02
46 - Added more rescue documentation.
47 - Did a spell check of the Bacula doc.
48 - Modified bscan to use the working directory as specified in the
49   configuration file as the default.
50 25Dec02
51 - Fixed an important bug reported by George Motter that caused only
52   the last option on an Include record to be used (all previous options
53   were lost).
54 24Dec02
55 - Chase down some inconsistencies in creating Media records from
56   the Pool defaults, and in updating/creating the Pool from the
57   resource. Also fixed the cats DB routines to include all
58   fileds (VolUseDuration was missing for example).
59 21Dec02
60 - Added building static versions of daemon static-bacula-dir, ...
61 - Fine tuned the rescue (bare metal) code including support for grub.
62 - Added skeleton freebsd rescue
63 - Corrected SQL syntax error in autoprune code (JobType => Type).
64 - Added error messages for SQL errors in autopruning.
65 19Dec02
66 - Documented Bare Metal Recovery
67 - Create new "rescue" directory containg the Bare Metal Recovery code.
68 - Fiddle with SQL a bit for pruning as apparently the last InitCatalog
69   was pruned after the expiration date eventhough it was the ONLY copy!
70   I'm not sure this is fixed yet.
71 18Dec02
72 - Allow Director to pass a NUL where string to FD (fix in FD).
73 - Fix installation mv of query.sql.
74 - Make sure btraceback.gdb is not wiped on "make distclean"
75 - Corrected a bug in mod of replace options pointed out by Dave Anderson.
76 16Dec02
77 - Started adding FileOptions ...
78 - Fixed  and incorrect print out of the number of files restored (Jarif).
79 - Finally fixed EndBlock (and file address for Files) in catalog!
80 - Added hostname to tape header as always planned.
81 - Removed Level code (will not implement unless strong demand exists).
82 - Tweaked bscan to print number of errors ignored before first SOS.
83 - Enhanced btape "fill" to permit using one tape and to dump last
84   block before writing and upon read back.
85 - Make fsf_dev() return 0 on fail and 1 on success.
86 - Use new db_get_job_volume_parameters() to enhance Write Bootstrap to
87   contain more info (start/end file/block, file indexes).
88 - Added --enable-static-fd, sd, and dir to configuration to enable making
89   static versions of the daemons.
90 13Dec02
91 - The btape test program was indicating errors on Adrian's machine
92   using the ATAPI (ide-scsi) tape drive. It turns out that this
93   is a fixed block driver as a consequence, Bacula must be setup
94   to write fixed blocks. btape was not always using the fixed
95   blocks defined in the Bacula config, so that has been updated.
96   It now works fine. A lot of tips added to the Bacula test command 
97   to help guide the user.
98 - Documentation of the above significantly improved in the manual.
99 12Dec02
100 - Added code in watchdog to permit setting and clearing child timers. If
101   the timer expires, the child process is killed.
102 - Modified restore to handle differential jobs.
103 - Added a new test to the btape "test" command
104 09Dec02
105 - More documentation of new features (week position in scheduler, bsr).
106 - Re-read last block written on full tape to verify it.
107 - Fix segmentation fault with btape fill command due to missing FileSet MD5.
108 07Dec02
109 - Created better SQL input editing routines str_to_int64 and str_to_uint64()
110 - Pull Client from database in Console restore command.
111 - Create a Unique list of Volumes to be mounted (previously had repeats).
112 - Made many of the SQL searches better by using the ClientId rather than the name 
113   in the restore Console command.
114 - Modified reading of a tape to include the VolFile info. Once the
115   tape is past the specified file, reading stops.  The BSR now includes
116   both the VolFile and VolBlock. Currently VolBlock is not used.  
117 - Handle multiple volumes better by creating a real volume list with all
118   parameters in it.
119 - Display "At prompt waiting for input" in gnome console when at subcommand   
120   prompt.
121 - Broke ascii to internal and internal to string editing routines out into
122   new lib/edit.c file.
123 02Dec02
124 - Added a readme and an afs-bacula script to the examples directory
125   that permits Bacula to backup an AFS filesystem. Thanks to
126   Lucas Mingarro for the submission.
127 - Added A Sun-desktop autoloader script and Device definition to the
128   examples/devices subdirectory.  Thanks to Lucas Mingarro for the
129   submission.
130 - If the WriteBootStrap fails, the job will now be marked in error.
131 - Added a week position to the scheduler syntax that allows you to
132   specify 1st, 2nd, 3rd, 4th, or 4th, or first, ... fifth as a week
133   position specification in front of a day. So if you say
134
135     1st sun ...
136
137   the scheduler will start only on the first sunday of the month.  The
138   day specification can also be a day range e.g. sun-fri.
139   This code is untested.
140 - Implemented bpipe.h and bpipe.c in src/lib, which defines a bi-directional
141   pipe.  This allows executing other programs and sending them information
142   as well as getting info from them.   
143 - Replaced the previous pipe usage with bpipes in RunBeforeJob and   
144   RunAfterJob.
145 - The mail program now uses bpipes rather than pipes, which means that any
146   error output will appear in the job output (truly bi-directional).
147 - Modified BSR to handle counts and to stop when no more matches are possible.
148   This is untested.
149 - Improved error messages in smtp.
150
151 =============================================================================
152 2002-12-12 Version 1.27d
153 - This is a minor update that fixes a segmentation fault in btape
154   as well as reduces non-important error messages in bscan.
155
156 2002-11-29 Version 1.27c
157 - Yet another silly error duplicating a column name in the SQLite
158   make tables.  No code change, just a make file.
159
160 2002-11-29 Version 1.27b
161 - Set DB version to 5 in DB make files.
162
163 2002-11-28 Version 1.27a
164 - Use g++ instead of gcc for testfind in tools 
165
166 2002-11-27 Version 1.27 (26Nov02) released 28 November 2002
167
168 General: from kes25Nov02
169 - Mostly Cygwin changes
170
171 Changes submitted this submission:
172 - Updated bdb_find.c to have new calling sequence for db_find_job_start_time
173 - dird/catreq.c edit in Volume name in error messages to SD
174 - attribs.c switch to using the cygwin API to convert from POSIX paths
175   to Win32 paths. This now permits Win32 path specifications in Include
176   statements (all combinations not yet tested).  It also avoids the large
177   number of errors seen by Lutz if a Win32 path is specified in the Dir.
178 - Update testfind help and remove set_attribsEx debug code.      
179 - Build testfind as default.
180 - Turn off debug message in stored/askdir.c
181
182 General: from kes21Nov02
183 - Another change in the database. You MUST either re-initialize
184   your database or use the appropriate ./alter_xxx_tables in
185   the src/cats directory.
186
187 Changes submitted this submission:
188 - Additional documentation.
189 - Added MaxVolFiles to the database (not yet implemented in code).
190 - Increased the database version from 3 to 4.
191 - Change VolMaxBytes to MaxVolBytes, which is much more descriptive.
192 - Compressed unnecessary spaces out of a lot of SQL statements.
193 - Changed many %d to %u where unsigned integers are used.
194 - Added the Bacula version and build date to each backup output.
195   This will help knowing what version of Bacula was used.
196 - Implemented VolUseDuration MaxVolBytes, MaxVolFiles, and MaxVolJobs
197   based on maximums set in the Volume (Media) record rather than in the
198   resource. This means the values can be individually set on a Volume basis.
199 - Allow commas separating Include options (this was a subtle bug).
200 - Added maximum string length argments to a number of subroutines to
201   prevent buffer overflows. Most notably was do_prompt().
202 - Replaced MANY occurrences of strcpy() with bstrncpy(), which guarantees
203   both that the length is not exceeded and that the string is properly terminated.
204   This has a risk of a certain destabilization -- as does the changes to
205   the SQL noted above.
206 - In cram-md5 routine use my_name if gethostname() returns an error.
207 - Increase timeout from 2 minutes to 3 minutes in authorization code.
208 - Check the full string including \n in authorization.
209 - Throw away any response longer than MAXSTRING.
210 - Added a number of additional error checks on subroutine return statuses.
211 - Replaced as many lld's with edit_uint64 as I could find.
212 22Nov02:
213 - Added MaxVolBytes to Pool record - had forgotten it. Updated DB version.
214 23Nov02
215 - Update manual to document new Pool/Volume attributes
216 - Correct make_sqlite_tables (typo, plus missing value in Pool)
217 - Fix bizarre behavior in gnome-console and console when auth fails.
218 - Add Pool attribute query
219 - Add a few more error messages in askdir.c
220 - More strcpy() conversions to bstrncpy().
221
222 General: from kes18Nov02
223 - Did a number of cleanups of string copying to limit the length
224   and prevent buffer overflows.
225
226 Changes submitted this submission:
227 - Added a mutex arount the gethostbyname() so that multiple simultaneous
228   jobs get the correct address.
229 - Added the MaxVolJobs to the Media alter tables script for MySQL (forgot it).
230 - Changed arg to db_find_job_start_time to be POOLMEM for returning the string.
231 - Add the new VolUseDuration and MaxVolJobs to all the db_ routines.
232 - Use bstrncpy() in most places in the db_ routines to prevent a bad 
233   database from crashing Bacula (self protection).
234
235 General: from kes13Nov02
236 - You MUST either re-initialize your databases or use the 
237     ./alter_mysql_tables
238   or  
239     ./alter_sqlite_tables
240   in the <bacula-src>/src/cats directory to modify your database tables.
241 - Major improvements to dbcheck including an interactive mode.
242
243 Changes submitted this submission:
244 - Implemented VolumeUseDuration and MaximumVolumeJobs which control
245   when a tape can be marked Used.
246 - New tape status "Used" means it was used and cannot be used any more.
247 - Defined utime_t which is 64 bit epoch time in seconds.  btime_t is
248   64 bit epoch time in microseconds.
249 - Created alter_xxx_tables to add new columns (VolUseDuration, MaxVolJobs) to
250   database. Incremented db version.
251 - Changed a few subroutine names concerning dates to be more descriptive.
252 - Fixed several places where the last filename was not stored in JCR in
253   FD verify_vol.c and restore.c
254 - Major update to dbcheck.  Unfortunately I used subselects, which work
255   perfectly fine in SQLite, but not at all in MySQL.  I must now rework
256   it for MySQL. What a pain!
257 - Removed "Database found" from configure output. It was no longer used or valid.
258 - Corrected doc --working-dir => --with-working-dir  Thanks to Tuck for 
259   reporting this.
260 - Added the database name to the error message for mismatched DB version.
261 - Commented out GMP and CWEB from configure as they are not currently used.
262
263 General: from kes09Nov02
264 - Converted the manual over to a new format written in wml. This
265   gives navigation buttons on the top and bottom of each page
266   as well as a standard page size.
267 - Updated the main Web site, providing a menu bar to the left
268   and much better organization and presentation of the information.
269 - Added code to recognize a Volume written with a larger block
270   size than specified. The code automatically adjusts. 
271
272 Changes submitted this submission:
273 - Created a new scripts directory and moved most of the scripts
274   previously in the main directory there. This cleans things up
275   quite a bit.
276 - Moved the randpass stuff into autoconf.
277 - ensure that the generic make_bacula_tables and drop_bacula_tables
278   are installed.
279 - Added code to filed to allow it to be run from inetd.  Just add the
280   -i option.  I have not tested it.
281
282 General: from kes30Oct02
283 - Alex found a problem with GZIP compression -- fixed.
284 - bacula stript fixes.
285 - Segment fault in Director fixed.
286 - Added openbsd to platforms
287
288 Changes submitted this submission:
289 - GZIP compression was broken for large files due to a variable that
290   is changed during the compression. This was relatively easy to fix.
291   However, there were a number of fixes required to make GZIP and SPARSE
292   files work together. Found one more place in bextract where SPARSE_GZIP
293   testing was missing.
294 - During testing of the above, I ran into the restore problem of multiple
295   FileSet records. Fixed by including the FileSetId and the MD5 on the
296   selection string, then always using the FileSetId. It is a bit
297   confusing for the user, but ...
298 - Francis found a problem with bacula.in (fixed - thanks)
299 - I found another problem with bacula.in, so now it REALLY should work
300   on most systems.
301 - Added the Replace options code for restores. Not tested.
302 - Fixed an ugly stack overrun bug in reading the config file
303   that has been in for a long time.  I found this in testing on FreeBSD
304   where the Director seg faulted.
305
306 General: from kes29Oct02
307 - Major change to the bnet communications routines.
308
309 Changes submitted this submission:
310 - Modified the bacula script to use pid files, so this script should
311   now work on more platforms.  Updated devel_bacula as well.
312 - Added the full GNU hostname on the configuration print output.
313 - Added gettimeofday() to configure, and tweaked a few variables for
314   OpenBSD.
315 - Added a chapter to the manual on Porting Bacula to other platforms.
316 - Documented in Tips how to use the WriteBootstrap record.
317 - Modified bc_types.h to error if 64 bit types are not found.
318 - Pass replace option for restore to the FD (no code to use it yet).
319 - Modify the FD to pass back the GNU OS string as well as the DISTNAME
320   and DISTVER. This needs to be put in the Client record in the catalog.
321 - Major reworking of the bnet routines to eliminate the zero length which
322   previously indicated a signal. This risks to create some subtle communications
323   bugs.  The changes now permit blank lines to be sent from the user to the
324   Director.
325 - Found and corrected a few more places where the Win32 attributes were not
326   being recognized.
327 - Permit spaces in the Where string (restore) by bashing/unbashing them.
328 - Handle quotes correctly in the Console program (actually Dir ua code).
329   Previously they were not handled in the middle of a string.
330 - Corrected two error message (error reading file), which previously stated
331   it was a network error.
332 - Reworked the files in the binary Windows release. Removed unused programs 
333   and added a README with the copyright as suggested by John. Also added
334   console.exe to the release.
335 - Found and corrected an autoloader mount problem where the wrong tape
336   was specified.  Previously it looped, then gave up.  Now it correctly
337   detects the volume is not correct and zaps the Slot in the catalog.
338
339 General: from kes23Oct02
340 - I have mainly worked on getting all the details of a Restore
341   to work correctly (new tape format, support for Win32 
342   attributes, ...)
343 - Trademarked name Bacula.
344 - Implement Bacula tape format 11 (1.0 Immortal). This format
345   will be maintained forever.
346 - Accept Any Volume is yes by default. This modifies Bacula's behavior
347   when writing tapes.
348
349 Changes submitted this submission:
350 - Corrected a bug on FreeBSD where CFLAGS would get a "yes". I was
351   unable to reproduce this, but a user confirmed the correction.
352   It was a problem with detection of largefile support, which FreeBSD 
353   has by default.
354 - Added a new "license" chapter in the manual. Re-licensed a number of
355   library routines (bnet.c, hmac.c md5.c, cram-md5, ...) with LGPL so that they
356   can be used in proprietary software to access Bacula if so desired.
357 - Move Director's AutoChanger doc to correct location (in Storage      
358   resource). 
359 - Document why trademark (to protect compatibility).
360 - Implement and turned on Bacula tape format 11 (also BB02). This
361   format moves the VolSessionId and VolSessionTime from each record 
362   header into the Block header. This is MUCH more efficient when reading
363   records as now whole blocks can be skipped.   
364   Also added JobStatus in End Of Session record, and added MD5 for
365   FileSet, which is necessary to insure uniqueness.
366 - Implement a new Bacula time format for btime_t. It is Epoch time
367   in microseconds (i.e. base 1 Jan 1970 in microseconds).
368   This replaces previous floating point times.
369 - Added Win32 extended attributes. In doing so, I moved all attribute
370   handling from src/lib into src/findlib.  Added new streams for 
371   Win32 attributes and for GZIP Win32 attributes.
372 - Modified "Accept Any Volume" so that it really permits any volume
373   in the pool to be mounted.  
374 - Removed "Mount Anonymous Volumes" from Storage daemon config.
375 - Implemented sparse files. You must add "sparse=yes" on the include line
376   for it to be enabled.
377 - Print "None" in backup summary rather than 0.0% if there is no compression
378   enabled.
379 - Improved error checking in daemon connection/authentication code to prevent
380   garbage data from harming a Bacula daemon.
381 - All daemon tools MUST have a config file.
382 - Completely strip drive specification on Win32 if a Where prefix is specified.
383 - Corrected DB info for writing to files. Now the File Address is stored
384   in File-Block variables in the catalog.
385 - All Storage daemon tools now use common code for acquiring/reading
386   Volumes.
387 - If a device is unmounted, report it even if the device is not open. This
388   will help inform users who have BLOCKED Bacula by unmounting a drive.
389
390
391 =============================================================================
392 2002-10-12 Version 1.26 (10Oct02)
393 General: from kes10Oct02
394 - Changed Job name conventions to avoid : which is an illegal
395   character on Windows.
396
397 Changes submitted this submission:
398 - Added check for inet_pton to configure.in. If it does not
399   exist (e.g. Windows) use inet_aton
400 - Documentation on GZIP.
401 - Another restore doc example.
402 - Documented btape fill command.
403 - Set default restore directory from /tmp to /tmp/bacula-restores
404 - Add additional no find error messages to sql_get.c
405 - Creating a bootstrap file on Windows failed because the Job name
406   contained colons which are illegal on Windows. Replaced the
407   colons with periods.  This corrects the Windows restore problem.
408 - Print number of files to be restored in "restore" command.
409 - On Windows systems, if there is a prefix, completely eliminate
410   any drive: at the beginning of a path.
411 - Minor corrections to the tree routines to handle Windows
412   files such as c:/ better. Previously it insisted on /c:/, which
413   would then not be found in the catalog for a "dir" command.
414 - Modified cd command in restore to try /c: if c: fails.
415 - Add a new S_ISWIN32 bit to the st_mode word so that low level
416   routines that create files do not print error messages.
417 - More work must be done to restore all Windows files correctly.
418   Currently the following bits are not handled:
419     Archive
420     Hidden
421     System 
422   Also, all the dates are not properly restored.
423
424 General: from kes09Oct02
425 - More documentation.
426 - Implemented new fill command in btape that permits filling
427   a tape and then reading it back to ensure that it works
428   with Bacula.
429
430 Changes submitted this submission:
431 - Added ReadBytes to JCR, which contains Job bytes read by
432   FD, JobBytes contains compressed output of FD.
433 - Modified FD to pass back JobStatus, ReadBytes, JobBytes, ...
434   for backup jobs.  This is upward compatible.
435 - Modified backup termination status report to contain the
436   compression ratio 100 * (1 - compressed-bytes/uncompressed-bytes)
437   This will always be zero if no software compression was
438   done, or if you are using a version 1.25 or older FD.
439 - Pickup Job termination status of FD in backup, so now
440   the termination status represents the state of all three
441   daemons.
442 - Implemented new fill command in btape that permits filling
443   a tape and then reading it back to ensure that it works
444   with Bacula.
445
446 General: From kes06Oct02
447 - Implemented first major cut of bscan -- program to scan a tape
448   and recreate a Bacula catalog.
449 - Fixed lseek() relative negative seek that prevented writing multiple
450   jobs to a File volume.
451 - Implemented BB02 tape format -- currently turned off for writing.
452
453 Changes submitted this submission:
454 - Updated README
455 - Implemented new BB02 tape format, which moves the VolSessionId and
456   VolSessionTime from the record headers into the Block header.  It
457   is currently turned off.
458 - Implemented new btime time/date format on the tape. This is currently
459   turned off.
460 - Added JobStatus to EOS tape label. This is currently turned off.
461 - Changed start_block, ... to StartBlock in JCR for uniformity.
462 - Print a message telling which tables were dropped/made with  
463   ./drop_bacula_tables.
464 - Return JobType and JobLevel in db_get_job_record().
465 - Implemented get_current_btime(), which returns btime_t.
466 - Bump debug message max size to 2000 bytes.
467 - Add btime_t serial/unserial routines.
468 - Rework all tape label routines to integrate btime and other
469   label format changes (currently turned off -- for writing).
470 - Fix lseek() to always be positive -- block.c
471 - Consolidate record, block, and label major #defines in block.h.
472 - Major implementation of bscan. Some more minor tweaking will be
473   necessary.  E.g. add multiple records for multiple simultaneous
474   Jobs.
475 - Cleanup lseek() to always use off_t as second argument.
476 - Add new "created" tape label (EOT_LABEL). This generates a callback
477   to the read_records() routine when the final end of all tapes is
478   reached allowing proper termination and updating of the media records.
479
480 General: From kes25Sep02
481 - Added means to bind servers to specific address.
482 - Documentation
483
484 Changes submitted this submission:
485 - Added DirAddress, FDAddress, and SDAddress records to the corresponding
486   resources that allow the server to bind to a specific address 
487   rather than any address.  This security improvement was suggested by
488   a user -- thank you.
489 - Eliminated deprecated "Address" record from all sample Storage resources.
490 - Made quite a lot of improvements to the bscan program. Much more
491   to do. Aside from details, it is able to recreate a database
492   from which you can do a restore.
493 - The s option is not accepted on all versions of ar, so replaced it
494   by an explicit ranlib call.
495 - Fixed a bug that caused the Director to crash if you rudely bring
496   down the console program in the middle of an SQL command.
497 - Fixed a bug (missing break) that caused scheduled Admin jobs to
498   be listed as "Unknown type".
499 - Removed old code from Storage daemon that used a separate FD port.
500
501 General:  From kes14Sep02
502 - Better key generation on non OpenSSL systems.
503 - 64 bit file address support if available.
504 - Implement autochanger for reading
505 - Lots of cleanup of tape reading code.
506 - Automatically create all Pool resources when Bacula starts.
507 - Implement bscan.c
508 - Implement autochanger use via the Console commands "add" and "label"
509 - Begin implementation of a regression script 
510 - Write bootstrap after ever job
511
512 Changes submitted this submission:
513 - After noticing that the non OpenSSL random key generator was
514   not good on Solaris, John wrote a very nice randpass generator.
515 - Integrated John's makeSessionKey for generating the FD->SD
516   authorization.
517 - Statically link tools (doesn't work on Solaris).
518 - Document how to debug Bacula (new chapter in the manual)
519 - Remove unneeded printing of error message in sql_get.c
520 - Free SD description config record (previous oversight)
521 - Bash spaces when sending Director names, and unbash them when 
522   received.
523 - Ensure no divide by zero in rate computation in backup.c
524 - Implement WriteBootstrap in backup.c
525 - Allow tape reading to request volume information for any
526   volume.
527 - Create all Pool resources at startup.
528 - Show only Backup jobs in Restore listing of last 20 Jobs.
529 - Handle 64 bit stat packets in restore.
530 - Don't do shell expansion on store_dir in config if string 
531   starts with |.  This is used for piping the program for the
532   WriteBootstrap.
533 - Ignore SIGHUP -- DéjàGnu was triggering this. 
534 - Implement autochanger for reading, many changes to 
535   acquire_device_for_read()
536 - Implement callback for reading Volume. Implement in bextract,
537   bls, and bscan.
538 - Implement bscan
539 - Add count to bsr.
540 - Fix Volume in bsr.
541 - Move autochanger code to new subroutine in mount.c
542
543 =============================================================================
544 2002-09-05 Version 1.25a (05Sep02) Released
545 - Fix unitialized stack variable in bextract so it
546   will always read the currently mounted tape.
547
548 =============================================================================
549 2002-09-04 Version 1.25 (01Sep02) Released
550   General:
551 - Added .cvsignore files in each directory to cut down on the
552   CVS output when scanning directories and finding Makefiles
553   and such which are not part of the CVS tree.
554
555   Changes submitted this submission:
556 - Cleaned up a lot of the error messages in Verify, including
557   indenting.
558 - Had to remove some of the "automatic" error message printing
559   in the DB because they are in fact things that come up 
560   for Verify but not really errors.
561
562
563   2002-08-30 Version 1.25 (30Aug02) Beta
564   From kes30Aug02
565 - Fixed a bug where only the first file was restored if
566   it is hard linked. The other links were lost.
567 - In some cases of restoring to alternate directories, softlinks
568   were not properly restored.
569
570   From kes28Aug02
571   General:
572 - Bacula backups now run up to 12 times faster than version 1.24
573 - Bacula can run multiple simultaneous Jobs.
574 - Had to turn off TRANSACTIONS in SQLite because it doesn't work
575   with multiple simultaneous jobs (I'm working on this).
576 - Added a better Job printout for Restore Jobs.
577 - Added a save/restore Rate to backup and restore jobs. This
578   does not yet subtract out operator wait time so it will be
579   underestimated it the Job waits on the tape (mount/label).
580 - Fixed a major bug caused by free()ing a buffer twice in
581   the Restore code. This made the SD more or less useless after
582   any restore Job. Arrggg!
583 - DIR - SD protocol changed, both must be updated at the same time.
584 - DIR - FD protocol changed in upward compatible way. Upgrade of   
585   FD not required, but recommended.
586
587   Changes submitted this submission:
588 - Added bell to "make" when errors are detected.
589 - Changed default compile option from -g to -g -O2
590 - Additional documentation as usual -- much based on questions or
591   feedback from users. Thanks.
592 - Fixed example config files to use new syntax and to have a 
593   Restore Job.
594 - Define ETIME to ETIMEOUT for Irix
595 - Added JCR filed to DB structure permitting direct printing error
596   messages from within the Database subroutines.
597   Some error messages may be printed twice as a consequence.
598   When I see them or someone reports them, I will remove the double.
599 - Added JCR to the bsock structure. This allows direct printing
600   of network errors from within the network code.
601 - Made most "trivial" debug messages have level 100 or greater. This
602   allows for easier debugging of new code using the range below 100.
603 - Began replacing all Emsg() with Jmsg() using a NULL as the JCR in    
604   Jmsg() is the same as Emsg().
605 - Fixed several crashes in the Director because of malformed config files.
606 - Added SpoolAttributes to Job resource.
607 - Pass CatalogFiles to SD. If set to no, the attributes are dropped 
608   within the SD rather than being sent to the DIR.
609 - Cleaned up a number of information/error messages in user interface.
610   This includes eliminating the "pretty please" response in favor of
611   "yes/no" to delete volumes and pools.
612 - Cleaned up quite a number of uninitialized variables reported when going
613   to -O2, most were harmless, but a couple could cause problems.
614 - The cd command in restore was not working correctly (it didn't allow some
615   legal cds).
616 - Fixed a segmentation violation in the directory tree handling code in 
617   the restore command.
618 - Handle a few error conditions in the restore command better.
619 - Permit "Where" to be set to nul in modification of a run command.
620 - Clarified the error message for Verify if an InitCatalog has not previously
621   been done -- thanks Chuck.
622 - Add MaximumConcurrentJobs to FD.
623 - Added code to mem_pool to die if a buffer is released twice.
624 - Lots of work done on SD for multiple simultaneous jobs. Split device.c
625   into device.c, mount.c and acquire.c
626 - Started writing new lock code for SD, but may back it out -- needs more
627   thought. Current code works, but is too complicated. Maybe can simplify it.
628 - Cleaned up the SD tools code quite a bit. Added bootstrap to all tools.
629 - Ensure that tape session labels are not split across two blocks. This makes
630   reading them back much easier.
631 - Fixed another restore bug concerning tape labels on multi-volume saves.
632
633 =============================================================================
634 2002-08-14 Version 1.24
635   From kes12Aug02
636 - Made a new tools directory.
637 - Moved smtp into the tools directory.
638 - Created a dbcheck program in the tools directory that
639   checks for certain database errors and if requested fixes them.
640 - Put the database link flags on DB_LIBS so that it now only is
641   on binaries that actually need it.
642 - Document dbcheck and testfind programs.
643 - Move testfind to tools directory.
644 - Check for FileSet after getting Client name in Restore command.
645   Modify all necessary SQL commands to accept FileSetId.
646 - Add a db_get_fileset_record in cats directory.
647 - Correct list last 20 files concatenation to be MySQL 
648   dependent. They aren't SQL standard. Use SQL standard || for
649   other SQL programs.
650 - Modify dir command in file selection to produce a long form
651   listing of the file/directory name.
652 - Add platforms/irix/*.in files to CVS
653 - Make Console command scanner accept quoted value fields.
654 - If after selecting Client to restore, there are multiple
655   FileSets, ask user to select one.
656 - After obtaining JobIds for restore, ensure that there is only
657   one MediaType, and select a Storage resource to be used.
658
659   From kes11Aug02
660 - Made restore actually work.
661 - Made console and gconsole be configured (requested by Chuck)
662 - Updated kernstodo
663 - changed fs in Job record to fileset for clarity
664 - The console run command was not properly picking up the command
665   line arguments.  Fixed!
666 - Changed add/remove/rm to mark/unmark
667 - Volume keyword VolumeName was wrong, changed to Volume (in restore bsr).
668 - Pass jcr to parse_bsr, and if non-NULL, it will output error messages
669   to Job stream rather than Emsg.
670 - Modified lexical scanner to include caller context so that jcr can
671   be stored in lex context allowing error messages to be properly 
672   routed.
673 - Renamed the Job message chain to be jcr_msgs. This eliminated the      
674   previous confusion with the default value, now named jcr->messages.
675 - Implemented multi-volume bsr records.    
676 - Implemented pm_strcat() and pm_strcpy() to cat/add to memory pool
677   buffers in same way as strcat/strcpy, but expanding buffer.
678 - Modified db_get_volume_names to handle arbitrarily long Volume list.
679
680   From kes07Aug02
681 - If the Console program terminated during the printing of messages,
682   the message file was left locked. This was corrected by using the
683   new read-write lock code.  
684 - Implemented Pw() and Vw() for obtaining and releasing a write lock
685   using the rwl_xxx routines.
686 - Deleted some old pthread_mutex code from mysql.c
687 - In making the Irix port, I previously corrected the base64 routine so 
688   they were not sensitive to the machine definition of char. This made
689   them incompatible with previous versions invalidating MD5 signatures
690   which are in base64 format. I have now corrected this, making the
691   routines compatible with the previous version but also insensitive
692   to the default definition of char.
693 - Removed some unnecessary NPRT() usage in signal.c (pointed out by
694   the Irix compiler).
695 - Add back BNET_NONO for compatibility with older File daemons.
696 - Implement runing a restore Job in the restore command.
697 - Make installation of query.sql unconditional. To prevent you own file
698   from being overwritten, give it a different name.
699 - Made parse_command_args() in ua take command from ua->cmd, this
700   simplifies it and allows usage in other places -- e.g. building
701   arguments for created run command in restore.
702 - Cleaned the naming of s_full_ctx to be s_jobids.
703 - Write the bsr created in restore to "working-directory"/restore.bsr
704 - Fix bugs in command line scanner in run command -- also some misplaced
705   breaks!
706 - Eliminate static cmd in ua_server.c
707 - Eliminate segmentation fault when using the Run command in the
708   Console -- forgot to init_msgs().
709
710   From kes06Aug02
711 - Did a good amount of documentation.
712 - Added sql_cmds.c to CVS, forgot, pointed out by Chuck.
713 - Added new platforms/irix directory to CVS
714 - Turn off transaction debug code in sql.c
715 - Reworked the scheduler so that it handles the same Job starting
716   twice in the same hour. Previously it took one or the other.
717 - Tightened up the "slop" in the timings that I programmed to ensure
718   that the same job isn't run twice or that no job was missed.
719 - Increase the sleep time.
720 - Used job_type_to_str() in status so that Admin jobs are correctly reported.
721 - Add internationalization message chars to a number of routines
722   in util.c
723 - Make the watchdog timer clear the mutex when it exits.
724 - Some tweaks to the Restore command. It needs fixing when a Job spans
725   two or more volumes.
726
727   From kes05Aug02
728 - Initial cut at adding Irix File daemon support.
729 - Lots of work on the restore command.
730 - Take a stab at eliminating the "broken pipe message"
731   when the console program prematurely terminates.
732 - Reimplemented transactions for SQLite by keeping
733   them all in the same thread.
734 - quit in the Console program now waits for Bacula to
735   quit. To immediately quit, you must enter .quit
736 - Eliminated BNET_EOF -- this COULD have some negative consequences
737   on interdaemon communications.
738 - Define Job termination status for Admin jobs.
739 - Write new bstrncpy() function that guarantees that strcpy is
740   properly terminated.
741 - Fixed command input in ua_input.c to accept quoted items as a
742   single field. 
743
744   From kes01Aug02
745 - The changes that added indexes to the SQLite database were
746   lost -- thanks to Chuck for pointing this out. Redone.
747 - Fixed a problem quoting strings in SQLite. This showed up
748   as database errors with files containing ' or " in the filename.
749 - Implemente restore command -- still in progress.
750 - Added indexes to all fields in SQLite that exist in MySQL.
751 - Moved unused immortal files from src/lib to src/immortal.
752   This will permit splitting depkgs.
753 - Started work on adding embedded MySQL. Cannot get the tables
754   to work for the moment. Please don't try to use this option.
755 - Convert to using single quotes for enclosing all strings.
756 - Implement correct quoting algorithm for SQLite strings.
757   Is dequoting needed?
758 - Started centralizing SQL statments in the Director in sql_cmds.c
759 - Changed a number of M_ABORTs to M_ERROR_TERM so that program terminates
760   but does not produce a dump.
761 - Allow wild-card matches in bsr for Client name, and Job.
762 - Change OflineOnUnmount=no as default.
763 - Fixed improper printing of filenames containing a space in bls.c
764   Thanks to Carlos for reporting this.
765
766 ===========================================================================
767 2002-07-26 Release 1.23a
768 - Fix segmentation fault is FD status.
769 - Turn off TRANSACTIONs for SQLite.                        
770
771 ===========================================================================
772 2002-07-23 Release 1.23
773   From kes22Jul02
774 - Updated Bacula to handle some minor differences in MySQL 4.0.2
775   (still works with older MySQLs).
776 - Updated MySQL documentation to correct some minor errors.
777 - Added kernstodo to CVS
778 - Fixed create_mysql_database, which I recently accidently broke.
779 - Disallow zero length volume names in Console program.
780 - Create alter_mysql_tables and alter_sqlite_tables for conversion
781   from 1.22 table format to 1.23 table format.
782
783   From kes20Jul02
784 - Investigation of SQLite performace problems reported by Chuck.
785 - Updated ChangeLog
786 - Updated README
787 - made root@localhost the default email address because many smtp
788   servers reject root but accept root@localhost
789 - Added an autochangers chapter to the manual.
790 - Documented most of the new features in 1.23
791 - Modified the SQLite interface code to start a transaction at the
792   beginning of a job and commit it at the end of the job. It
793   also commits it after 10000 changes. Hopefully this will
794   improve performance.
795 - Set the default cache pages from 2000 to 10000 for SQLite (i.e.
796   about 15Megs of memory) hoping to improve performance.
797 - Terminate last filename referenced in FD prior to copy to
798   avoid race problem with multiple threads and no locking.
799 - Enhanced the status output to include the JobType                
800 - Print an error message if the email program terminates in error.
801 - If your machine has an MTUNLOCK, do it before doing an OFFLINE to
802   ensure that the door is unlocked.
803 - Added code to stored/append.c to spool attributes. This is in
804   a testing stage and must be explicitly enabled.
805 - Added a no_attributes variable to stored/append.c that prevents
806   the attributes from being sent to the Director. As yet, no way
807   to turn it on.
808 - Modified SQLite code so that after 10000 updates any transaction
809   is committed, then restarted. This keeps it from using too much
810   memory.
811 - Set the default cache size to 10000 pages (previously 2000).
812 - Fixed a segmentation fault on Sun due to no default value for
813   the JobStatus.
814 - Added the same indexes to SQLite that I exist in MySQL. This
815   VASTLY reduces CPU usage for lots of inserts.
816 - Added spooling to bnet_send().
817
818   From kes18Jul02
819 - The following two changes were prompted by questions/suggestions
820   from A Morgan.
821 - If you have "AlwaysOpen = no" in your SD Device
822   resource, Bacula will free() the drive when it
823   is finished with the Job.
824 - If you have "Offline On Unmount = yes", in your
825   SD Device resource, Bacula will offline (or eject)
826   the tape prior to freeing it.
827 - Added Maximum Open Wait to allow open() to wait if drive is busy.
828 - Added RunBeforeJob and RunAfterJob records to Job records.
829   This permits running an external program with the following editing
830   codes:
831     %% = %
832     %c = Client's name
833     %d = Director's name
834     %i = JobId
835     %e = Job Exit
836     %j = Job
837     %l = Job Level
838     %n = Job name
839     %t = Job type
840
841   From kes17Jul02
842 - Added autochanger support to devices.c
843 - Allow user to change Slot in the Volume record.
844 - Implemented code in lib to run an external program
845   (tape changer)
846 - Implemented a changer script for mtx.
847 - Currently the changer commands used are:  
848     loaded -- returns number of slot loaded or 0
849     load   -- loads a specified slot
850     unload -- unloads the device (returns casette to slot)
851 - Other changer commands defined but not yet used:
852     list   -- returns list of slots containing a cassette
853     slots  -- returns total number of slots 
854 - Implemented ChangerCommand, specified in the SD Device
855   resource, permits editing of:
856       %% = %
857       %a = archive device name
858       %c = changer device name
859       %f = Client's name
860       %j = Job name
861       %o = command
862       %s = Slot base 0
863       %S = Slot base 1
864       %v = Volume name
865 - Implemented MaximumChangerWait default 120 seconds. It is 
866   specified in the SD Device resource.
867
868   From kes15Jul02
869 - Moved techlogs from main directory to be subdirectory of doc
870 - Added code for strerror_r, and detection of gethostbyname_r().
871 - The protocol between the Director and the SD has changed.
872 - Major rework of SD tape mounting to prepare for Changer commands.
873 - Separated Update Media record and Create JobMedia record. These
874   are done from the SD by calling the Director. Need separate Create
875   JobMedia so that when a Job spans a volume, all other Jobs writing
876   the same volume will also have JobMedia records created.
877 - Added message to user indicating selection aborted if he enters .
878   to a Console selection request.
879 - Create a jobstatus_to_ascii() routine for use in status commands.
880   This makes a single routine from three separate pieces of code.
881   Updated the code to properly handle more (all) termination statuses.
882 - Tried to fix the gnome-console to handle history a bit better. There
883   are still some problems with focus not being properly set to the edit
884   box after history replacement.
885 - Removed the shutdown() from bnet_close() hoping to fix Console termination
886   errors that are occassionally seen -- no luck.
887 - Moved add_str() to lib/util and renamed it add_str_to_pool_mem() so that
888   it can be used to edit Job termination codes and Changer command codes.
889 - Reworked how the SD mounts tapes (in device.c) so that control passes through
890   only a single routine. The logic is much simpler than previously, and now
891   adding AutoChanger code is straight forward.
892 - Made SD tape mounting much more fault tolerant -- more cases retry instead
893   of terminating the Job.
894 - Wrote code to edit_device_codes() for Changer commands. Not yet fully     
895   implemented.
896 - Added a ChangerDevice directive to the Device resource. Still need to add
897   ChangerCommand.
898
899   From kes07Jul02
900 - This documents what I did while on vacation. 
901 - A fair amount of documentation.
902 - Implemented Verify Volume to Catalog (needs renaming)
903 - Modified the database to include new MarkId field as
904   well as Counters. Database level is incremented from 1 to  2.
905 - Added first cut of managing autochangers by implementing Slot in DB.
906 - Fixed a good number of M_ERROR messages to be M_FATAL where appropriate.
907   Also converted a number of Emsg() to Jmsg() permitting better Job error
908   messages.
909 - First cut at implementing a general packet passing mechanism for bsock
910   to replace printf and sscanf for passing data.     
911 - Made make_xxx_tables and drop_xxx_tables and create_xxx_database
912   for bdb as well as sqlite. With this each database has the
913   same set of scripts (with the exception that MySQL has grant_privileges).
914 - Modified Makefile to only install the database scripts for the
915   database that you are using.
916 - Updated the pdf script to include all the html files.
917 - Did quite a lot of documentation.
918 - Made Bacula compile correctly with DEBUG turned off.
919 - Implemented Pmsg() macros that permit using the debug print
920   routines even with DEBUG off.
921 - Updated job_cancelled() macro to handle JS_FatalError.
922 - Changed db_find_last_full_verify() to db_find_last_jobid(). This
923   permits working with Verify Volume to Catalog.
924 - Removed TRANSACTION code from incrementing NextId for SQLite. 
925 - Implemented quick and dirty (not fully functional code) so that
926   console program does not die if ctl-Z is entered. 
927 - Cleaned up backup.c a bit adding a bail_out goto to ensure proper
928   handling of errors with minimum code.
929 - Added passing Slot back and forth to Storage daemon with Volume info.
930 - Implemented Slot in Media record in DB.
931 - Implemented first cut of Counter resource in dird_conf.c. A counter
932   resource is part of the Pool resource.
933 - Implemented necessary database record. However, the resource doesn't
934   yet create a DB record.
935 - Implemented onefs (One File System) and recurse options on Include
936   resource.
937 - Implemented autopruning of Verify and Restore Jobs.
938 - Did a better job of calculating thread_concurrency() for Sun systems.
939   This permits better multi-threading allowing all the threads to run
940   at the same time.
941 - Implemented a wait_for_storage_daemon_termination(), which is used by
942   backup and verify volume.
943 - Clarified a number of UA prompts, and add feedback where certain commands
944   completed but printed nothing. (More work to be done here).
945 - Added a pile of new code to implement Verify Volume to Catalog. It is sort
946   of a hybrid of "restore" and "verify" in that it actually reads the tape,
947   then compares it to the catalog.  Need Verify Volume to Client.
948 - Added a good number of checks for job_cancelled() this should permit
949   quicker and more reliable cancelling of jobs.
950 - Fixed one bug in restore where I used ofile instead of lname, which means
951   that if the lname was too long, the memory was not properly reallocated.
952 - Cleaned up find_one.c in findlib quite a bit.
953 - Link smtp static so that it works even if the libraries are messed up.
954 - If mail host is not found, retry with local host in smtp.
955 - Added slot and stream to the bootstrap record processing.
956 - Do offline on tape cartrige for unmount command. This can be turned off
957   by the user in the config file. OffLineOnUnmount in Device resource.
958 - Implemented AutoChanger = yes/no in Device resource.
959
960 ===========================================================================
961 2002-07-07 Release 1.22
962 - All the basic Restore code to handle the boostrap file is
963   now implemented with the exception of the Console Restore command.
964 - Retained compatibility with previous Restore providing no 
965   bootstrap file is specified. However, the old code (JobId based)
966   will go away in a future release.
967 - Fixed a number of segmentation faults in the Console program due
968   to printing of NULL pointers -- thanks to Chuck and his Sun for
969   finding and reporting them -- mostly in ua_output.c.
970
971   From kes25Jun02
972 - Null pointers now are printed as *None* if NPRT() is used.
973 - At the request of Phil, all resources are now chained in in the
974   order they appear in the config file.
975 - Implement Bootstrap record in the Director's config file, which
976   allows you to specify a predefined bootstrap file for Restore Jobs.
977 - Allow Bootstrap on the Restore record. This is deprecated.
978 - Implemented code to pass the Bootstrap file, if defined, to the
979   File daemon, then from the File daemon to the Storage daemon.
980 - Added ability to set Bootstrap file in the Console when running a Restore.
981 - Allow scan_error() routine to be passed to lex_open_file(). This permits
982   using lex in the Storage daemon without worrying that it will ABORT on
983   a syntax error.  More work is needed to direct the error messages correctly.
984 - Improved error messages a bit when config syntax errors are found.
985 - Tested and corrected some errors in match_bsr.c
986 - Removed askdir.c from bls and bextract by defining dummy entry points.
987 - bextract now has bootstrap pretty well integrated.
988 - Changed bextract ABORTs into FATAL and exit(1) or ERROR_TERMINATE.
989   More user friendly.
990 - Eliminated at least one lld and replaced it by edit_uint64() 
991 - Eliminated a few more _PROTO()s.
992 - Corrected a problem with the SQL for in query.sql for 
993   Listing Volumes to Restore All Files
994
995   From kes22Jun02
996 - Additional documentation.
997 - Reduce the time the jcr mutex is locked in lib/jcr.c
998 - More null pointer printing fixes in lib/parse_conf.c (debug output only).
999 - Added daemon filename to Kaboom message so I know what daemon died.
1000 - Fix big bad bug introduced in watchdog.c last update that caused
1001   a segmentation violation (forgot to check for NULL pointer).
1002 - Add a bit more info to bad returns from Stored when starting
1003   a job fails.
1004
1005   From kes21Jun02
1006 - Fixed scan_to_eol
1007 - Fixed backup scanning forgot one T_STRING -> T_UNQUOTED_STRING
1008 - changed all rwlock_t to brwlock_t to avoid conflicts with
1009   Solaris library.
1010 - Added NPRT() macro to allow printing of NULL pointers, which
1011   segment fault on Solaris.
1012 - Cast printing of pid_t to int for Solaris compiler.
1013
1014   From kes20Jun02
1015 - Added expect argment to lex_get_token().
1016 - Added tree.c and tree.h to lib directory.
1017
1018   From kes19Jun02
1019 - Improvements to the bootstrap compiler
1020 - Implemented first cut of bootstrap code in the Storage daemon
1021 - Modified the authentication code to be more explicit during 
1022   failures.
1023 - Added a few more debug message numbers with more arguments (Dmsg10, ...)
1024 - Added more and more precise error messages when authentication fails.
1025 - Implemented new "expect" codes in the lexical scanner that allows
1026   the caller to specify what he wants.                   
1027 - Added integer, positive integer, 64 bit integer, and integer ranges,
1028   and name scanning to lex.
1029 - Implemented new lex code in parse_conf.c, this reduces significantly
1030   the code.
1031 - Hopefully fixed a watchdog race bug that caused the watchdog to time
1032   out a line after 1 hour rather than 6 days.
1033
1034   From kes15Jun02
1035 - Implemented a Bootstrap file parser and matcher.
1036 - Implemented first cut of bootstrap code in bextract  
1037 - Started clarifying different termination codes.
1038 - Added M_ERROR_TERM to immediately terminate the daemon -- no dump.
1039   Also changed a few termination codes as appropriate.
1040 - Fixed create_jobmedia_record() to include all the fields such as
1041   StartFile/EndFile, StartBlock/EndBlock.
1042 - Print user friendly message when query mode ends.
1043 - Fixed ls style print routines (bextract, bls, restore) to check
1044   buffer size, to print the link if any, and to used edit_uint64()
1045   instead of %lld.
1046 - Moved scan_to_eol() and s_err() to lex.c to avoid dragging in 
1047   parse_conf.c for new bsr scanning code.
1048 - New files: bsr.h, parse_bsr.c and match_bsr.c. parse_bsr.c parses
1049   a Bootstrap file, and match_bsr.c matches a bsr against a tape.
1050 - use strcasecmp() in several places instead of lcase().
1051 - Add first cut of bootstrap to bextract.
1052 - Added File Size limit -- writes EOF after limit exeeded.
1053
1054 ===========================================================================
1055 2002-06-12 Release 1.21
1056 - Fixed several problems with filenames being truncated if
1057   they contain spaces. Thanks to the user that reported this.
1058 - N.B. To get the new queries, after the "make" and 
1059   "make install" you must explicitly replace the
1060   existing query.sql by query.sql.new.  query.sql is a
1061   user configuration file, so it is not overwritten.
1062 - Added GZIP compression of Included files.  
1063 - Added additional fields to tape SOS record permitting better
1064   recovery with no database.
1065 - Be sure to remove any !terminate statements you may have
1066   in your config files.
1067 - MUST UPDATE ALL DAEMONS due to protocol change to handle new
1068   tape format.
1069
1070   From kes11Jun02:
1071 - Updated examples directory with my most recent config files.
1072 - Modified the M_TERM meaning to mean that Bacula has
1073   terminated in error without producing a dump. Previously,
1074   it meant that Bacula terminate (with or without error).
1075   You should remove any !terminate from your messages
1076   resources.
1077 - Changed the order of the libraries in the link so that
1078   tcp wrappers link properly. Thanks Phil for reporting this.
1079 - A user reported that filenames containing spaces were truncated
1080   in bextract. This was indeed the case. They were also truncated
1081   in Restore as well as in Verify. They are, hopefully, all fixed
1082   now.
1083 - Made a few error conditions in Verify non-fatal.
1084 - Modified the Console "query" command to permit multiple SQL
1085   statements per command. 
1086 - Implemented three new "query" options: 
1087     List last 10 Full Backups for a Client
1088     List Volumes used by selected JobId
1089     List Volumes to Restore All Files
1090   To use them, simply type "query" to the Console program, and
1091   select the one you want.
1092 - Modified bextract to default to extracting all files (i.e. /).
1093 - Cleaned up the code in bextract a bit.
1094
1095   From kes03Jun02:
1096 - Improve Verify command to include files examined.
1097 - Eliminate fcntl() locking of the console file and replaced
1098   it with a pthreads mutex.
1099 - Note Director - SD protocol is changed to handle new tape
1100   information (Fileset, JobType, JobLevel).
1101 - Create config.out that contains a summary of ./configure
1102   to see what you previously configured: "cat config.out"
1103 - Implemented GZIP compression.  Added addition syntax to
1104   Include { } resource to permit setting of any GZIP compression
1105   level:
1106      compression=GZIP
1107      compression=GZIP1
1108      ...
1109      compression=GZIP9
1110
1111   Level 1 is minimum compression and level 9 is maximum. Using just
1112   GZIP gives the default (level 6).
1113 - Enhanced the tape format to include the unique Job name, FileSetName,
1114   JobType, and JobLevel in the Start/End of Session records. The code
1115   detects that tape level difference and acts accordingly. You can 
1116   add data in the new format to old tapes.
1117 - Fixed an incorrect display message in the prune command.
1118 - Began implementation of Verify Volume and Verify Data.
1119 - Cleaned up File daemon restore.c a bit ensuring that termination 
1120   cleanup is done and all possible Emsgs are converted to Jmsgs.
1121 - Modify bls.c to use common setup routines. This reduced the big
1122   code duplication that creeped in when I added different listing
1123   options. Also, changing tapes is now handled uniformily in a subroutine.
1124
1125 ===========================================================================
1126 2002-05-27 Release 1.20
1127 - Started documenting Catalog Pruning and Recycling.
1128   Added catmaintenance.html and recycling.html
1129 - Fixed the query command bug.
1130 - Implemented PID files to prevent two copies of Bacula
1131   from running at the same time. Be sure you --with-pid-dir
1132   points to a working directory.
1133 - Modified ASSERT() to cause a segmentation violation. This
1134   permits a core dump.
1135 - Worked on gnome-console. It paints better, it tells you if it
1136   is ready to accept a command or processing one, and it is
1137   almost entirely GTK+ (rather than GNOME, I'm removing GNOME
1138   a bit at a time).
1139 - Limit to 100 the number of tape labeling errors in a single Job.
1140 - Add some additional ASSERT()s to the database routines. I don't
1141   like ASSERTs but they do catch bugs.
1142 - Tested and debugged recycling of Volumes.  Needed to change
1143   the Director-SD protocol slightly.
1144 - Removed the experimental SIGHUP in the Director as it is a
1145   potential source of errors.
1146 - Added Level, Pool, Messages, and Storage keyword/value scanning
1147   to the Schedule Run record.
1148 - Improved printing of Schedule resources with "show schedules"
1149 - Do not autoprune Jobs/Files if the Job errs.
1150 - Updated newvol() to pass back the updated Media record.   
1151 - Fixed the "update pool" command, which was broken during a much
1152   earlier code reorganization.
1153 - Improved a few of the pruning messages.
1154 - Removed readline inclusions from gnome-console (hang over from console).
1155 - Make Jmsg use daemon message handler if no message handler is defined.
1156   This is always the case in the SD and FD.
1157 - Started removing __PROTO(). With C++ prototypes are manditory, so why
1158   keep around legacy code.
1159 - Added a good deal of message internationalization -- more to be done.
1160 - Move cached Path into mdb structure and use POOLMEM.
1161 - Fix verify bug introduced last update causing incorrect diffs 
1162   by turning off autopruning.
1163 - Started adding code to distinguish Errors from Fatal Errors.
1164 - Errors are now counted in message.c for a Job.
1165 - More POOLMEM cleanups.
1166 - Implemented Automatic pruning.
1167 - Implemented Automatic recycling of Volumes.
1168 - Added PruneJobs/Files/Volumes=yes or no to Job resource. If set,
1169   it forces the specified pruning.
1170 - Modified rwlock to accept multiple nested write lock
1171   requests.
1172 - Modified the cats directory to use the new rwlock mechanism
1173   in place of P() and V(). 
1174 - Defined db_lock(mdb) and db_unlock(mdb). They are in effect
1175   transaction locks. 
1176 - Add CVS Id's to most files.
1177 - Made first cut at AutoPrune
1178 - Added new autoprune file that is called at the end of
1179   each Job. It then decides when and what to prune and
1180   calls the UA prune routines.
1181 - Modified Run (in Schedule resource) to permit overrides of
1182   Level, Pool, Storage, and Messages. (not tested).
1183 - Added more POOLMEM in place of char.
1184 - Implemented daemon pid files. This prevents multiple 
1185   daemons from running simultaneously. You can run multiple
1186   daemons if they listen on different ports.
1187 - Documented the Schedule resource a bit better.
1188 - Began gently adding a POOLMEM type (perviously void).
1189   For the moment it is a #define to char, but long term
1190   it should be its own typedef.
1191 - Corrected a bit of spacing on the status bar of gnome-console
1192 - Added Admin and Archive Job types.
1193 - Implemented multiple Messages resources. Each daemon has
1194   its own message resource, which defaults if not defined.
1195   Jobs may now have different message handlers.
1196 - Cleaned up a bit of duplicate code in backup, verify, and
1197   restore by creating appropriate subroutines in job.c
1198 - Added Type, Client, FileSet, and Level resource record
1199   definitions to the Director. These can be used in place
1200   of the Backup = ..., Verify = ..., ... commands.  This needs
1201   documenting.
1202 - Corrected an incorrect message in the prune code and added
1203   the number of Files pruned in the message.
1204 - Corrected several paint problems with gnome-console.
1205 - Added a bit of printout in signal handler during traceback.
1206 - Cleaned up most of sm_check() to be turned on/off by define
1207   in version.h
1208
1209 ===========================================================================
1210 2002-05-10 Release 1.19
1211 - Allow the user to select a new period for pruning.
1212 - Lots of additions to the manual -- prune and purge
1213   commands documented.
1214 - Applied Phil's configure.in fix for --prefix, ...
1215 - Fixed bug found by Phil (patch supplied) in updating
1216   MD5 signatures (revert to 32 bit FileId, move "static"
1217   variables into JCR) (catreq.c fd-cmds.c).
1218 - Reverted to using INTEGER for FileId in make_sql_tables
1219   due to a bug in MySQL.
1220 - Change editing code to %d for FileId.
1221 - Remove sqlite in make distclean in cats directory.
1222 - Remove console.conf in console during make distclean.
1223 - Remove gnome-console.conf during make distclean.
1224 - Remove bacula-dir.conf during make distclean.
1225 - Set default level when using Console if none specified.
1226   Bug reported by Phil.
1227 - A simple . command from Console is ignored.   
1228 - Change program named from filed to bacual-fd in winmain.cpp
1229 - Change default config file for Win32 in winmain.cpp
1230 - Free namebuf on early return from find_one.c. Bug reported by Phil.
1231 - Modify testfind.c to dump orphaned buffers.
1232 - Removed terabytes from parse_conf.c because of problems with
1233   older gcc compilers.
1234 - Turn off gnome options in gnome-console by constructing empty argv.
1235 - Fixes to Verify when only MD5 differs.
1236 - Insert 0 for MD5 as default rather than space.
1237 - Allow .messages "transparent" command while reading input
1238   in UserAgent server.
1239 - In dird/verify.c ensure that correct filename is printed if only
1240   the MD5 differs. Minor reindenting caused large diff.
1241 - Delete unused code from backup.c
1242 - In filed/verify.c ensure that same algorithm as backup.c is used
1243   to pass back MD5 signatures -- especially for directories and files
1244   that cannot be read. Change dummy filename from X to *MD5-id*.
1245   This dummy value should never be printed.
1246 - Make gnome-console poll Director every 5 seconds for output.
1247   This means that queued up messages are displayed at reasonable
1248   intervals. Delete some unused code hanging around from the tty
1249   console program.
1250 - Begin implementation of prune commands.
1251 - Add command line history to gnome-console. Not yet saved across sessions.
1252 - Fixed some broken URLs in the manual.
1253 - Added JobId type.
1254 - Wrote first cut of "prune files" and "prune jobs".
1255 - Added command line history to gnome-console 2500 lines max.
1256 - Widened store_time() and associated variables to 64 bits using
1257   new btime_t definition.
1258 - Removed GNOME about box and replaced it with 
1259   a somewhat crude Gtk+ about box in the gnome-console.
1260 - Widened StartDay in the Job DB record to be 64 bits.
1261 - Changed edit_uint_ to edit_uint64_ everywhere. Much more
1262   descriptive of what is done.
1263 - Removed most llds and replaced them with %s and edit_uint64.
1264   This makes the code a bit easier to read for beginners.
1265 - Added a btime_t typedef which is 64 bits wide.
1266 - Added most of the code needed to do Purge and Prune of
1267   database. Not yet tested. Please do not use.
1268 - Additional config options for Console.
1269 - Started adding code for Automatic Recycling of Volumes.
1270 - Allow arbitrary length filenames in Verify code.
1271 - Fix incorrect filename in Verify code.
1272 - Significant enhancement to number scanning in config parser.
1273 - Requires initializing MySQL tables, or applying cats/alter.sql
1274   to modify Media table.
1275 - Modified Makefile to printer a much more visible
1276   message if the make ends in error.
1277 - Added the Purge value to the VolStatus in the Media table.
1278   This value is set if the Volume is purged.
1279 - Enhanced the db_delete_media_record() routine to delete
1280   all associated records in the database.
1281 - Modified Console to always write to the variable "output"       
1282   rather than stdout. This will permit directing output to a file.
1283 - Enhanced the Console configuration file to have a Console 
1284   resource. This will allow us to add an rcfile and history file.
1285 - Modified Find_next_vol in catreq.c to search for "Recycle"
1286   volumes if there are none marked Append. Also made Get_Vol_info
1287   return the VolStatus to the Storage daemon.
1288 - Allow upper/lower case match on job level names.
1289 - Added another warning message to the Console "delete media" command.
1290 - Corrected a number of FileId types from uint64_t to FileId_t in
1291   ua_retention.c.
1292 - In ua server close database before freeing JCR (because pointer is
1293   kept in ua and jcr structures).
1294 - parse all numbers as doubles. Do lots of checking for valid number
1295   formats. Allow numbers in scientific form (e.g. 1.5e+10).
1296 - Remove terabyte modifier as it doesn't work in some compilers.
1297 - Fix bug in handling some modifiers.
1298 - Added all necessary code for Recycle to Storage daemon. A Volume
1299   marked Recycle will now be overwritten.
1300 - Filled out the prune command a bit and did some testing.
1301 - Make console accept redirected input.
1302 - Altered the Table definitions to include Recycle,
1303   FileRetention, JobRetention, and AutoPrune.
1304 - Widened StartDay to 64 bits.
1305 - Use JobId_t in more places. 
1306 - Added the new table fields to the database record definitions.
1307 - Changed Recycle from string to a binary quantity.
1308 - Added a Version table with a VersionId to detect.
1309   future changes in the database. This should prevent
1310   a Bacula from working with a database that is not in sync.
1311 - Modify Console to accept input from a file. This will permit
1312   the .read command and allow reading a .rc file.
1313 - Added new retention and recycle variables to the Director's configuration.
1314 - The UA subroutines or commands can now be called from core
1315   code because the output routines detect the absence of a 
1316   UA socket and direct output to the Job.
1317 - Added a verbose flage to the ua packet to permit reduction of
1318   output while running a UA command (prune) from a Job.
1319 - Did a fair amount of work on the prune command. Prune Volume now works.
1320 - Purge Volume now works.
1321 - Made last changes for integrating prune and purge commands.
1322 - Add -ltermcap to CONS_LIBS when readline is configured.
1323   More work to be done to search for termcap.
1324 - Added cats/drop_sqlite_tables.in, which will delete the SQLite database.
1325 - Got CWEB working so that we can compile filesys.w and immortal.w
1326 - Modified depkgs to include cweb.             
1327 - Note, CWEB is not yet used by the core Bacula code.
1328 - Made cats/alter.sql, which alters an old database to bring it
1329   up to the new format. This only works with MySQL since SQLite does
1330   not have the ALTER SQL command.
1331 - Changed the old StartDay field in the db to be JobTDate, which is
1332   the latest time/date in widened Unix time format that the Job ran.
1333   This value is used when doing pruning.
1334 - Added code in cats/sql.c to verify that the database internal version
1335   corresponds to the db version compiled in Bacula. It is set to 1 currently.
1336 - Lots of changes to cats to bring the SQL up to date with the new 
1337   retention period changes.
1338 - Added Console command code to permit changing a Volume's retention period.
1339 - Removed old code that used date_encode() and replaced it with widened
1340   Unix time().
1341 - Started modifying Message resource scanner so that we can have multiple
1342   message resources. Much more work to be done.
1343 - Moved scanning for time into new library routine string_to_btime().
1344
1345 ===========================================================================
1346 2002-04-22 Release 1.18
1347 - Applied Phil's configure.in fix for --prefix, ...
1348 - Fixed bug found by Phil (patch supplied) in updating
1349   MD5 signatures (revert to 32 bit FileId, move "static"
1350   variables into JCR) (catreq.c fd-cmds.c).
1351 - Reverted to using INTEGER for FileId in make_sql_tables
1352   due to a bug in MySQL.
1353 - Change editing code to %d for FileId.
1354 - Remove sqlite in make distclean in cats directory.
1355 - Remove console.conf in console during make distclean
1356 - Remove gnome-console.conf during make distclean
1357 - Remove bacula-dir.conf during make distclean
1358 - Set default level when using Console if none specified.
1359   Bug reported by Phil.
1360 - A simple . command from Console is ignored.   
1361 - Change program named from filed to bacual-fd in winmain.cpp
1362 - Change default config file for Win32 in winmain.cpp
1363 - Free namebuf on early return from find_one.c. Bug reported by
1364   Phil.
1365 - Modify testfind.c to dump orphaned buffers.
1366 - Removed terabytes from parse_conf.c because of problems with
1367   older gcc compilers.
1368 - Turn off gnome options in gnome-console by constructing empty
1369   argv.
1370
1371 ===========================================================================
1372 2002-04-18 Release 1.17 Kern Sibbald
1373 - Ensure that platforms Makefiles are called for clean  
1374   and distclean.
1375 - Hide a lot of Makefile messages with @
1376 - Applied Phil's configure.in patch. Thanks.
1377 - Doc updates, many to clarify points brought up by Phil.
1378 - Applied Phil's make_mysql_tables.in patch. Thanks.
1379 - Made authenticate.c in dird test bnet_send status.
1380 - Make label a bit more friendly with extra info message.
1381 - Add level 200 to debug info in run command.
1382 - Remove old code from findlib/testfind.c so that it compiles.
1383 - Add two minute max wait to cram-md5 authentication. Hopefully,
1384   this will catch non-responding WinNT daemons.
1385 - Allow time and size modifiers to be upper or lower case.
1386 - Turn off old CYGWIN patch for pthread_cond_timedwait() bug that
1387   now causes File daemon hangs on WinNT.
1388 - Fix mount messages for restore. Previous updates to save
1389   broke the restore code.
1390 - By default write fixed block sizes rather than variable block
1391   sizes.  My Sony DAT simply does not work (reread failures) with
1392   variable block sizes.
1393 - Data split across tapes was not being correctly restored
1394   (at least on DAT tapes). 
1395 - Implement MaximumBlockSize and MinumBlockSize statements in
1396   Storage daemon so user can specify variable block sizes if
1397   desired.
1398 - Return error if block checksum error on read (previously 
1399   ignored).
1400 - Fixed some error messages in bls, and in some cases exit(1)
1401   rather than ABORT. There remain ABORTs to be examined.
1402 - Made a local copy of tcpd.h and corrected the function 
1403   prototype problem for C++.
1404
1405 ===========================================================================
1406 2002-04-14 First public release 1.16 Kern Sibbald
1407  - Many intervening changes/updates.
1408
1409 2001-09-29 Release 1.0 Kern Sibbald
1410  - Fixes to problems found at John's
1411    installation.
1412  - See techlogs/kes25Sep01 for details
1413
1414 2001-09-25 Release 1.0 Kern Sibbald
1415  - Helped John install at his site.
1416    He is backing up one Linux machine and
1417    one Win2000 machine.
1418
1419 2001-mm-dd Many releases
1420  - Released internally.
1421   
1422 2000-04-09 Release 0.4 Kern Sibbald
1423  - Added a lot of Director configuration code. In      
1424    part (a small part), the Director now uses the
1425    bacula.conf file to know what to do. There still
1426    remains a lot to do.
1427  - The file search code is now integrated into the
1428    MySQL database routines, and Bacula is now hooked
1429    into the MySQL database (if so configured). Thus
1430    all the database records are being created, though
1431    there still remains some work in getting all the
1432    details into the records (such as the Storage 
1433    coordinates).
1434  - I've defined how Volume pools work (see manual).
1435  - I've defined error message handling though no code
1436    is yet written.
1437  - The following resources and records are implemented
1438    in the Director configuration file (bacula.conf):
1439     
1440    Director
1441      Name (passed to Storage daemon)
1442    Client
1443      Name, Address, Port
1444      Password (not yet used)
1445    Storage    
1446      Name, Address, Port, Password, MediaType
1447    Job
1448      Name    
1449      Type (not yet used)
1450      Backup (only one permitted) 
1451        Client, FileSet
1452      Storage
1453      Schedule, Messages, Pool (not used)
1454    FileSet
1455      Name  
1456      Include (options ignored)
1457      Exclude (no options)
1458    Schedule (not used)
1459      Name
1460    Messages (not used)
1461      Name       
1462      Debug, syslog, mail, append (not used)
1463    Catalog
1464      Name
1465      Address, Port, Password (not used)
1466    Pool (not used)
1467      Name
1468      PoolType, MediaType (not used)
1469
1470  - Added Storage configuration routines.
1471    Director
1472      Name, password (verified against those sent by Director)
1473    Storage
1474      Name, Address, Port (address, port must correspond to Director's values)
1475      Password, MediaType
1476    Device
1477      Name, MediaType (must correspond to those sent by Director)
1478      Archive Device (defines device name)
1479
1480
1481 2000-03-10 Release 0.3 Kern Sibbald
1482  - Implemented new base64 encoding for attributes.
1483    This eliminates some of the error messages in the
1484    sprintfs on the Solaris due to different stat() sizes.
1485  - Implemented  the first cut of the file search routines for
1486    the File daemon.  The exclusion lists work including wild
1487    cards.   There is a lot of work to be done, but the basic
1488    structure is now in place (wild cards do not yet work for
1489    the include).
1490  - Completed writing the memory pool code.  Now I must
1491    implement it in the daemons.
1492  - Modified the bacula start/stop script so that it has a
1493    better chance of working on SGI and Solaris.
1494  - The catalog code has not been converted to the new file
1495    search code.
1496
1497 2000-03-06 Release 0.2 Kern Sibbald
1498  - Integrated John's fixes.
1499  - Made Makefiles self configuring when Makefile.in is changed.
1500  - Added a runit script in the top level that runs bacula
1501  - Added a "bacula" script in the top level directory that
1502    starts and stops the File daemon and the Storage daemon.
1503
1504 2000-03-03 Release 0.1 Kern Sibbald
1505  - Basic Director, File, and Storage daemons.
1506    Standalone Catalog services using MySQL
1507
1508 2000-01-22 Kern Sibbald
1509    * Setup basic file structure with ./configure