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