]> git.sur5r.net Git - bacula/bacula/blob - bacula/ChangeLog
638ccc19bdc8e197af369407b3cadd2f76c5a6ea
[bacula/bacula] / bacula / ChangeLog
1
2 2002-xx-xx Version 1.26 (04Oct02)
3 General: From kes06Oct02
4 - Implemented first major cut of bscan -- program to scan a tape
5   and recreate a Bacula catalog.
6 - Fixed lseek() relative negative seek that prevented writing multiple
7   jobs to a File volume.
8 - Implemented BB02 tape format -- currently turned off for writing.
9
10 Changes submitted this submission:
11 - Updated README
12 - Implemented new BB02 tape format, which moves the VolSessionId and
13   VolSessionTime from the record headers into the Block header.  It
14   is currently turned off.
15 - Implemented new btime time/date format on the tape. This is currently
16   turned off.
17 - Added JobStatus to EOS tape label. This is currently turned off.
18 - Changed start_block, ... to StartBlock in JCR for uniformity.
19 - Print a message telling which tables were dropped/made with  
20   ./drop_bacula_tables.
21 - Return JobType and JobLevel in db_get_job_record().
22 - Implemented get_current_btime(), which returns btime_t.
23 - Bump debug message max size to 2000 bytes.
24 - Add btime_t serial/unserial routines.
25 - Rework all tape label routines to integrate btime and other
26   label format changes (currently turned off -- for writing).
27 - Fix lseek() to always be positive -- block.c
28 - Consolidate record, block, and label major #defines in block.h.
29 - Major implementation of bscan. Some more minor tweaking will be
30   necessary.  E.g. add multiple records for multiple simultaneous
31   Jobs.
32 - Cleanup lseek() to always use off_t as second argument.
33 - Add new "created" tape label (EOT_LABEL). This generates a callback
34   to the read_records() routine when the final end of all tapes is
35   reached allowing proper termination and updating of the media records.
36
37 General: From kes25Sep02
38 - Added means to bind servers to specific address.
39 - Documentation
40
41 Changes submitted this submission:
42 - Added DirAddress, FDAddress, and SDAddress records to the corresponding
43   resources that allow the server to bind to a specific address 
44   rather than any address.  This security improvement was suggested by
45   a user -- thank you.
46 - Eliminated deprecated "Address" record from all sample Storage resources.
47 - Made quite a lot of improvements to the bscan program. Much more
48   to do. Aside from details, it is able to recreate a database
49   from which you can do a restore.
50 - The s option is not accepted on all versions of ar, so replaced it
51   by an explicit ranlib call.
52 - Fixed a bug that caused the Director to crash if you rudely bring
53   down the console program in the middle of an SQL command.
54 - Fixed a bug (missing break) that caused scheduled Admin jobs to
55   be listed as "Unknown type".
56 - Removed old code from Storage daemon that used a separate FD port.
57
58 General:  From kes14Sep02
59 - Better key generation on non OpenSSL systems.
60 - 64 bit file address support if available.
61 - Implement autochanger for reading
62 - Lots of cleanup of tape reading code.
63 - Automatically create all Pool resources when Bacula starts.
64 - Implement bscan.c
65 - Implement autochanger use via the Console commands "add" and "label"
66 - Begin implementation of a regression script 
67 - Write bootstrap after ever job
68
69 Changes submitted this submission:
70 - After noticing that the non OpenSSL random key generator was
71   not good on Solaris, John wrote a very nice randpass generator.
72 - Integrated John's makeSessionKey for generating the FD->SD
73   authorization.
74 - Statically link tools (doesn't work on Solaris).
75 - Document how to debug Bacula (new chapter in the manual)
76 - Remove unneeded printing of error message in sql_get.c
77 - Free SD description config record (previous oversight)
78 - Bash spaces when sending Director names, and unbash them when 
79   received.
80 - Ensure no divide by zero in rate computation in backup.c
81 - Implement WriteBootstrap in backup.c
82 - Allow tape reading to request volume information for any
83   volume.
84 - Create all Pool resources at startup.
85 - Show only Backup jobs in Restore listing of last 20 Jobs.
86 - Handle 64 bit stat packets in restore.
87 - Don't do shell expansion on store_dir in config if string 
88   starts with |.  This is used for piping the program for the
89   WriteBootstrap.
90 - Ignore SIGHUP -- DéjàGnu was triggering this. 
91 - Implement autochanger for reading, many changes to 
92   acquire_device_for_read()
93 - Implement callback for reading Volume. Implement in bextract,
94   bls, and bscan.
95 - Implement bscan
96 - Add count to bsr.
97 - Fix Volume in bsr.
98 - Move autochanger code to new subroutine in mount.c
99
100
101 2002-09-05 Version 1.25a (05Sep02) Released
102 - Fix unitialized stack variable in bextract so it
103   will always read the currently mounted tape.
104
105 2002-09-04 Version 1.25 (01Sep02) Released
106   General:
107 - Added .cvsignore files in each directory to cut down on the
108   CVS output when scanning directories and finding Makefiles
109   and such which are not part of the CVS tree.
110
111   Changes submitted this submission:
112 - Cleaned up a lot of the error messages in Verify, including
113   indenting.
114 - Had to remove some of the "automatic" error message printing
115   in the DB because they are in fact things that come up 
116   for Verify but not really errors.
117
118
119   2002-08-30 Version 1.25 (30Aug02) Beta
120   From kes30Aug02
121 - Fixed a bug where only the first file was restored if
122   it is hard linked. The other links were lost.
123 - In some cases of restoring to alternate directories, softlinks
124   were not properly restored.
125
126   From kes28Aug02
127   General:
128 - Bacula backups now run up to 12 times faster than version 1.24
129 - Bacula can run multiple simultaneous Jobs.
130 - Had to turn off TRANSACTIONS in SQLite because it doesn't work
131   with multiple simultaneous jobs (I'm working on this).
132 - Added a better Job printout for Restore Jobs.
133 - Added a save/restore Rate to backup and restore jobs. This
134   does not yet subtract out operator wait time so it will be
135   underestimated it the Job waits on the tape (mount/label).
136 - Fixed a major bug caused by free()ing a buffer twice in
137   the Restore code. This made the SD more or less useless after
138   any restore Job. Arrggg!
139 - DIR - SD protocol changed, both must be updated at the same time.
140 - DIR - FD protocol changed in upward compatible way. Upgrade of   
141   FD not required, but recommended.
142
143   Changes submitted this submission:
144 - Added bell to "make" when errors are detected.
145 - Changed default compile option from -g to -g -O2
146 - Additional documentation as usual -- much based on questions or
147   feedback from users. Thanks.
148 - Fixed example config files to use new syntax and to have a 
149   Restore Job.
150 - Define ETIME to ETIMEOUT for Irix
151 - Added JCR filed to DB structure permitting direct printing error
152   messages from within the Database subroutines.
153   Some error messages may be printed twice as a consequence.
154   When I see them or someone reports them, I will remove the double.
155 - Added JCR to the bsock structure. This allows direct printing
156   of network errors from within the network code.
157 - Made most "trivial" debug messages have level 100 or greater. This
158   allows for easier debugging of new code using the range below 100.
159 - Began replacing all Emsg() with Jmsg() using a NULL as the JCR in    
160   Jmsg() is the same as Emsg().
161 - Fixed several crashes in the Director because of malformed config files.
162 - Added SpoolAttributes to Job resource.
163 - Pass CatalogFiles to SD. If set to no, the attributes are dropped 
164   within the SD rather than being sent to the DIR.
165 - Cleaned up a number of information/error messages in user interface.
166   This includes eliminating the "pretty please" response in favor of
167   "yes/no" to delete volumes and pools.
168 - Cleaned up quite a number of uninitialized variables reported when going
169   to -O2, most were harmless, but a couple could cause problems.
170 - The cd command in restore was not working correctly (it didn't allow some
171   legal cds).
172 - Fixed a segmentation violation in the directory tree handling code in 
173   the restore command.
174 - Handle a few error conditions in the restore command better.
175 - Permit "Where" to be set to nul in modification of a run command.
176 - Clarified the error message for Verify if an InitCatalog has not previously
177   been done -- thanks Chuck.
178 - Add MaximumConcurrentJobs to FD.
179 - Added code to mem_pool to die if a buffer is released twice.
180 - Lots of work done on SD for multiple simultaneous jobs. Split device.c
181   into device.c, mount.c and acquire.c
182 - Started writing new lock code for SD, but may back it out -- needs more
183   thought. Current code works, but is too complicated. Maybe can simplify it.
184 - Cleaned up the SD tools code quite a bit. Added bootstrap to all tools.
185 - Ensure that tape session labels are not split across two blocks. This makes
186   reading them back much easier.
187 - Fixed another restore bug concerning tape labels on multi-volume saves.
188
189 =============================================================================
190 2002-08-14 Version 1.24
191   From kes12Aug02
192 - Made a new tools directory.
193 - Moved smtp into the tools directory.
194 - Created a dbcheck program in the tools directory that
195   checks for certain database errors and if requested fixes them.
196 - Put the database link flags on DB_LIBS so that it now only is
197   on binaries that actually need it.
198 - Document dbcheck and testfind programs.
199 - Move testfind to tools directory.
200 - Check for FileSet after getting Client name in Restore command.
201   Modify all necessary SQL commands to accept FileSetId.
202 - Add a db_get_fileset_record in cats directory.
203 - Correct list last 20 files concatenation to be MySQL 
204   dependent. They aren't SQL standard. Use SQL standard || for
205   other SQL programs.
206 - Modify dir command in file selection to produce a long form
207   listing of the file/directory name.
208 - Add platforms/irix/*.in files to CVS
209 - Make Console command scanner accept quoted value fields.
210 - If after selecting Client to restore, there are multiple
211   FileSets, ask user to select one.
212 - After obtaining JobIds for restore, ensure that there is only
213   one MediaType, and select a Storage resource to be used.
214
215   From kes11Aug02
216 - Made restore actually work.
217 - Made console and gconsole be configured (requested by Chuck)
218 - Updated kernstodo
219 - changed fs in Job record to fileset for clarity
220 - The console run command was not properly picking up the command
221   line arguments.  Fixed!
222 - Changed add/remove/rm to mark/unmark
223 - Volume keyword VolumeName was wrong, changed to Volume (in restore bsr).
224 - Pass jcr to parse_bsr, and if non-NULL, it will output error messages
225   to Job stream rather than Emsg.
226 - Modified lexical scanner to include caller context so that jcr can
227   be stored in lex context allowing error messages to be properly 
228   routed.
229 - Renamed the Job message chain to be jcr_msgs. This eliminated the      
230   previous confusion with the default value, now named jcr->messages.
231 - Implemented multi-volume bsr records.    
232 - Implemented pm_strcat() and pm_strcpy() to cat/add to memory pool
233   buffers in same way as strcat/strcpy, but expanding buffer.
234 - Modified db_get_volume_names to handle arbitrarily long Volume list.
235
236   From kes07Aug02
237 - If the Console program terminated during the printing of messages,
238   the message file was left locked. This was corrected by using the
239   new read-write lock code.  
240 - Implemented Pw() and Vw() for obtaining and releasing a write lock
241   using the rwl_xxx routines.
242 - Deleted some old pthread_mutex code from mysql.c
243 - In making the Irix port, I previously corrected the base64 routine so 
244   they were not sensitive to the machine definition of char. This made
245   them incompatible with previous versions invalidating MD5 signatures
246   which are in base64 format. I have now corrected this, making the
247   routines compatible with the previous version but also insensitive
248   to the default definition of char.
249 - Removed some unnecessary NPRT() usage in signal.c (pointed out by
250   the Irix compiler).
251 - Add back BNET_NONO for compatibility with older File daemons.
252 - Implement runing a restore Job in the restore command.
253 - Make installation of query.sql unconditional. To prevent you own file
254   from being overwritten, give it a different name.
255 - Made parse_command_args() in ua take command from ua->cmd, this
256   simplifies it and allows usage in other places -- e.g. building
257   arguments for created run command in restore.
258 - Cleaned the naming of s_full_ctx to be s_jobids.
259 - Write the bsr created in restore to "working-directory"/restore.bsr
260 - Fix bugs in command line scanner in run command -- also some misplaced
261   breaks!
262 - Eliminate static cmd in ua_server.c
263 - Eliminate segmentation fault when using the Run command in the
264   Console -- forgot to init_msgs().
265
266   From kes06Aug02
267 - Did a good amount of documentation.
268 - Added sql_cmds.c to CVS, forgot, pointed out by Chuck.
269 - Added new platforms/irix directory to CVS
270 - Turn off transaction debug code in sql.c
271 - Reworked the scheduler so that it handles the same Job starting
272   twice in the same hour. Previously it took one or the other.
273 - Tightened up the "slop" in the timings that I programmed to ensure
274   that the same job isn't run twice or that no job was missed.
275 - Increase the sleep time.
276 - Used job_type_to_str() in status so that Admin jobs are correctly reported.
277 - Add internationalization message chars to a number of routines
278   in util.c
279 - Make the watchdog timer clear the mutex when it exits.
280 - Some tweaks to the Restore command. It needs fixing when a Job spans
281   two or more volumes.
282
283   From kes05Aug02
284 - Initial cut at adding Irix File daemon support.
285 - Lots of work on the restore command.
286 - Take a stab at eliminating the "broken pipe message"
287   when the console program prematurely terminates.
288 - Reimplemented transactions for SQLite by keeping
289   them all in the same thread.
290 - quit in the Console program now waits for Bacula to
291   quit. To immediately quit, you must enter .quit
292 - Eliminated BNET_EOF -- this COULD have some negative consequences
293   on interdaemon communications.
294 - Define Job termination status for Admin jobs.
295 - Write new bstrncpy() function that guarantees that strcpy is
296   properly terminated.
297 - Fixed command input in ua_input.c to accept quoted items as a
298   single field. 
299
300   From kes01Aug02
301 - The changes that added indexes to the SQLite database were
302   lost -- thanks to Chuck for pointing this out. Redone.
303 - Fixed a problem quoting strings in SQLite. This showed up
304   as database errors with files containing ' or " in the filename.
305 - Implemente restore command -- still in progress.
306 - Added indexes to all fields in SQLite that exist in MySQL.
307 - Moved unused immortal files from src/lib to src/immortal.
308   This will permit splitting depkgs.
309 - Started work on adding embedded MySQL. Cannot get the tables
310   to work for the moment. Please don't try to use this option.
311 - Convert to using single quotes for enclosing all strings.
312 - Implement correct quoting algorithm for SQLite strings.
313   Is dequoting needed?
314 - Started centralizing SQL statments in the Director in sql_cmds.c
315 - Changed a number of M_ABORTs to M_ERROR_TERM so that program terminates
316   but does not produce a dump.
317 - Allow wild-card matches in bsr for Client name, and Job.
318 - Change OflineOnUnmount=no as default.
319 - Fixed improper printing of filenames containing a space in bls.c
320   Thanks to Carlos for reporting this.
321
322 ===========================================================================
323 2002-07-26 Release 1.23a
324 - Fix segmentation fault is FD status.
325 - Turn off TRANSACTIONs for SQLite.                        
326
327 ===========================================================================
328 2002-07-23 Release 1.23
329   From kes22Jul02
330 - Updated Bacula to handle some minor differences in MySQL 4.0.2
331   (still works with older MySQLs).
332 - Updated MySQL documentation to correct some minor errors.
333 - Added kernstodo to CVS
334 - Fixed create_mysql_database, which I recently accidently broke.
335 - Disallow zero length volume names in Console program.
336 - Create alter_mysql_tables and alter_sqlite_tables for conversion
337   from 1.22 table format to 1.23 table format.
338
339   From kes20Jul02
340 - Investigation of SQLite performace problems reported by Chuck.
341 - Updated ChangeLog
342 - Updated README
343 - made root@localhost the default email address because many smtp
344   servers reject root but accept root@localhost
345 - Added an autochangers chapter to the manual.
346 - Documented most of the new features in 1.23
347 - Modified the SQLite interface code to start a transaction at the
348   beginning of a job and commit it at the end of the job. It
349   also commits it after 10000 changes. Hopefully this will
350   improve performance.
351 - Set the default cache pages from 2000 to 10000 for SQLite (i.e.
352   about 15Megs of memory) hoping to improve performance.
353 - Terminate last filename referenced in FD prior to copy to
354   avoid race problem with multiple threads and no locking.
355 - Enhanced the status output to include the JobType                
356 - Print an error message if the email program terminates in error.
357 - If your machine has an MTUNLOCK, do it before doing an OFFLINE to
358   ensure that the door is unlocked.
359 - Added code to stored/append.c to spool attributes. This is in
360   a testing stage and must be explicitly enabled.
361 - Added a no_attributes variable to stored/append.c that prevents
362   the attributes from being sent to the Director. As yet, no way
363   to turn it on.
364 - Modified SQLite code so that after 10000 updates any transaction
365   is committed, then restarted. This keeps it from using too much
366   memory.
367 - Set the default cache size to 10000 pages (previously 2000).
368 - Fixed a segmentation fault on Sun due to no default value for
369   the JobStatus.
370 - Added the same indexes to SQLite that I exist in MySQL. This
371   VASTLY reduces CPU usage for lots of inserts.
372 - Added spooling to bnet_send().
373
374   From kes18Jul02
375 - The following two changes were prompted by questions/suggestions
376   from A Morgan.
377 - If you have "AlwaysOpen = no" in your SD Device
378   resource, Bacula will free() the drive when it
379   is finished with the Job.
380 - If you have "Offline On Unmount = yes", in your
381   SD Device resource, Bacula will offline (or eject)
382   the tape prior to freeing it.
383 - Added Maximum Open Wait to allow open() to wait if drive is busy.
384 - Added RunBeforeJob and RunAfterJob records to Job records.
385   This permits running an external program with the following editing
386   codes:
387     %% = %
388     %c = Client's name
389     %d = Director's name
390     %i = JobId
391     %e = Job Exit
392     %j = Job
393     %l = Job Level
394     %n = Job name
395     %t = Job type
396
397   From kes17Jul02
398 - Added autochanger support to devices.c
399 - Allow user to change Slot in the Volume record.
400 - Implemented code in lib to run an external program
401   (tape changer)
402 - Implemented a changer script for mtx.
403 - Currently the changer commands used are:  
404     loaded -- returns number of slot loaded or 0
405     load   -- loads a specified slot
406     unload -- unloads the device (returns casette to slot)
407 - Other changer commands defined but not yet used:
408     list   -- returns list of slots containing a cassette
409     slots  -- returns total number of slots 
410 - Implemented ChangerCommand, specified in the SD Device
411   resource, permits editing of:
412       %% = %
413       %a = archive device name
414       %c = changer device name
415       %f = Client's name
416       %j = Job name
417       %o = command
418       %s = Slot base 0
419       %S = Slot base 1
420       %v = Volume name
421 - Implemented MaximumChangerWait default 120 seconds. It is 
422   specified in the SD Device resource.
423
424   From kes15Jul02
425 - Moved techlogs from main directory to be subdirectory of doc
426 - Added code for strerror_r, and detection of gethostbyname_r().
427 - The protocol between the Director and the SD has changed.
428 - Major rework of SD tape mounting to prepare for Changer commands.
429 - Separated Update Media record and Create JobMedia record. These
430   are done from the SD by calling the Director. Need separate Create
431   JobMedia so that when a Job spans a volume, all other Jobs writing
432   the same volume will also have JobMedia records created.
433 - Added message to user indicating selection aborted if he enters .
434   to a Console selection request.
435 - Create a jobstatus_to_ascii() routine for use in status commands.
436   This makes a single routine from three separate pieces of code.
437   Updated the code to properly handle more (all) termination statuses.
438 - Tried to fix the gnome-console to handle history a bit better. There
439   are still some problems with focus not being properly set to the edit
440   box after history replacement.
441 - Removed the shutdown() from bnet_close() hoping to fix Console termination
442   errors that are occassionally seen -- no luck.
443 - Moved add_str() to lib/util and renamed it add_str_to_pool_mem() so that
444   it can be used to edit Job termination codes and Changer command codes.
445 - Reworked how the SD mounts tapes (in device.c) so that control passes through
446   only a single routine. The logic is much simpler than previously, and now
447   adding AutoChanger code is straight forward.
448 - Made SD tape mounting much more fault tolerant -- more cases retry instead
449   of terminating the Job.
450 - Wrote code to edit_device_codes() for Changer commands. Not yet fully     
451   implemented.
452 - Added a ChangerDevice directive to the Device resource. Still need to add
453   ChangerCommand.
454
455   From kes07Jul02
456 - This documents what I did while on vacation. 
457 - A fair amount of documentation.
458 - Implemented Verify Volume to Catalog (needs renaming)
459 - Modified the database to include new MarkId field as
460   well as Counters. Database level is incremented from 1 to  2.
461 - Added first cut of managing autochangers by implementing Slot in DB.
462 - Fixed a good number of M_ERROR messages to be M_FATAL where appropriate.
463   Also converted a number of Emsg() to Jmsg() permitting better Job error
464   messages.
465 - First cut at implementing a general packet passing mechanism for bsock
466   to replace printf and sscanf for passing data.     
467 - Made make_xxx_tables and drop_xxx_tables and create_xxx_database
468   for bdb as well as sqlite. With this each database has the
469   same set of scripts (with the exception that MySQL has grant_privileges).
470 - Modified Makefile to only install the database scripts for the
471   database that you are using.
472 - Updated the pdf script to include all the html files.
473 - Did quite a lot of documentation.
474 - Made Bacula compile correctly with DEBUG turned off.
475 - Implemented Pmsg() macros that permit using the debug print
476   routines even with DEBUG off.
477 - Updated job_cancelled() macro to handle JS_FatalError.
478 - Changed db_find_last_full_verify() to db_find_last_jobid(). This
479   permits working with Verify Volume to Catalog.
480 - Removed TRANSACTION code from incrementing NextId for SQLite. 
481 - Implemented quick and dirty (not fully functional code) so that
482   console program does not die if ctl-Z is entered. 
483 - Cleaned up backup.c a bit adding a bail_out goto to ensure proper
484   handling of errors with minimum code.
485 - Added passing Slot back and forth to Storage daemon with Volume info.
486 - Implemented Slot in Media record in DB.
487 - Implemented first cut of Counter resource in dird_conf.c. A counter
488   resource is part of the Pool resource.
489 - Implemented necessary database record. However, the resource doesn't
490   yet create a DB record.
491 - Implemented onefs (One File System) and recurse options on Include
492   resource.
493 - Implemented autopruning of Verify and Restore Jobs.
494 - Did a better job of calculating thread_concurrency() for Sun systems.
495   This permits better multi-threading allowing all the threads to run
496   at the same time.
497 - Implemented a wait_for_storage_daemon_termination(), which is used by
498   backup and verify volume.
499 - Clarified a number of UA prompts, and add feedback where certain commands
500   completed but printed nothing. (More work to be done here).
501 - Added a pile of new code to implement Verify Volume to Catalog. It is sort
502   of a hybrid of "restore" and "verify" in that it actually reads the tape,
503   then compares it to the catalog.  Need Verify Volume to Client.
504 - Added a good number of checks for job_cancelled() this should permit
505   quicker and more reliable cancelling of jobs.
506 - Fixed one bug in restore where I used ofile instead of lname, which means
507   that if the lname was too long, the memory was not properly reallocated.
508 - Cleaned up find_one.c in findlib quite a bit.
509 - Link smtp static so that it works even if the libraries are messed up.
510 - If mail host is not found, retry with local host in smtp.
511 - Added slot and stream to the bootstrap record processing.
512 - Do offline on tape cartrige for unmount command. This can be turned off
513   by the user in the config file. OffLineOnUnmount in Device resource.
514 - Implemented AutoChanger = yes/no in Device resource.
515
516 ===========================================================================
517 2002-07-07 Release 1.22
518 - All the basic Restore code to handle the boostrap file is
519   now implemented with the exception of the Console Restore command.
520 - Retained compatibility with previous Restore providing no 
521   bootstrap file is specified. However, the old code (JobId based)
522   will go away in a future release.
523 - Fixed a number of segmentation faults in the Console program due
524   to printing of NULL pointers -- thanks to Chuck and his Sun for
525   finding and reporting them -- mostly in ua_output.c.
526
527   From kes25Jun02
528 - Null pointers now are printed as *None* if NPRT() is used.
529 - At the request of Phil, all resources are now chained in in the
530   order they appear in the config file.
531 - Implement Bootstrap record in the Director's config file, which
532   allows you to specify a predefined bootstrap file for Restore Jobs.
533 - Allow Bootstrap on the Restore record. This is deprecated.
534 - Implemented code to pass the Bootstrap file, if defined, to the
535   File daemon, then from the File daemon to the Storage daemon.
536 - Added ability to set Bootstrap file in the Console when running a Restore.
537 - Allow scan_error() routine to be passed to lex_open_file(). This permits
538   using lex in the Storage daemon without worrying that it will ABORT on
539   a syntax error.  More work is needed to direct the error messages correctly.
540 - Improved error messages a bit when config syntax errors are found.
541 - Tested and corrected some errors in match_bsr.c
542 - Removed askdir.c from bls and bextract by defining dummy entry points.
543 - bextract now has bootstrap pretty well integrated.
544 - Changed bextract ABORTs into FATAL and exit(1) or ERROR_TERMINATE.
545   More user friendly.
546 - Eliminated at least one lld and replaced it by edit_uint64() 
547 - Eliminated a few more _PROTO()s.
548 - Corrected a problem with the SQL for in query.sql for 
549   Listing Volumes to Restore All Files
550
551   From kes22Jun02
552 - Additional documentation.
553 - Reduce the time the jcr mutex is locked in lib/jcr.c
554 - More null pointer printing fixes in lib/parse_conf.c (debug output only).
555 - Added daemon filename to Kaboom message so I know what daemon died.
556 - Fix big bad bug introduced in watchdog.c last update that caused
557   a segmentation violation (forgot to check for NULL pointer).
558 - Add a bit more info to bad returns from Stored when starting
559   a job fails.
560
561   From kes21Jun02
562 - Fixed scan_to_eol
563 - Fixed backup scanning forgot one T_STRING -> T_UNQUOTED_STRING
564 - changed all rwlock_t to brwlock_t to avoid conflicts with
565   Solaris library.
566 - Added NPRT() macro to allow printing of NULL pointers, which
567   segment fault on Solaris.
568 - Cast printing of pid_t to int for Solaris compiler.
569
570   From kes20Jun02
571 - Added expect argment to lex_get_token().
572 - Added tree.c and tree.h to lib directory.
573
574   From kes19Jun02
575 - Improvements to the bootstrap compiler
576 - Implemented first cut of bootstrap code in the Storage daemon
577 - Modified the authentication code to be more explicit during 
578   failures.
579 - Added a few more debug message numbers with more arguments (Dmsg10, ...)
580 - Added more and more precise error messages when authentication fails.
581 - Implemented new "expect" codes in the lexical scanner that allows
582   the caller to specify what he wants.                   
583 - Added integer, positive integer, 64 bit integer, and integer ranges,
584   and name scanning to lex.
585 - Implemented new lex code in parse_conf.c, this reduces significantly
586   the code.
587 - Hopefully fixed a watchdog race bug that caused the watchdog to time
588   out a line after 1 hour rather than 6 days.
589
590   From kes15Jun02
591 - Implemented a Bootstrap file parser and matcher.
592 - Implemented first cut of bootstrap code in bextract  
593 - Started clarifying different termination codes.
594 - Added M_ERROR_TERM to immediately terminate the daemon -- no dump.
595   Also changed a few termination codes as appropriate.
596 - Fixed create_jobmedia_record() to include all the fields such as
597   StartFile/EndFile, StartBlock/EndBlock.
598 - Print user friendly message when query mode ends.
599 - Fixed ls style print routines (bextract, bls, restore) to check
600   buffer size, to print the link if any, and to used edit_uint64()
601   instead of %lld.
602 - Moved scan_to_eol() and s_err() to lex.c to avoid dragging in 
603   parse_conf.c for new bsr scanning code.
604 - New files: bsr.h, parse_bsr.c and match_bsr.c. parse_bsr.c parses
605   a Bootstrap file, and match_bsr.c matches a bsr against a tape.
606 - use strcasecmp() in several places instead of lcase().
607 - Add first cut of bootstrap to bextract.
608 - Added File Size limit -- writes EOF after limit exeeded.
609
610 ===========================================================================
611 2002-06-12 Release 1.21
612 - Fixed several problems with filenames being truncated if
613   they contain spaces. Thanks to the user that reported this.
614 - N.B. To get the new queries, after the "make" and 
615   "make install" you must explicitly replace the
616   existing query.sql by query.sql.new.  query.sql is a
617   user configuration file, so it is not overwritten.
618 - Added GZIP compression of Included files.  
619 - Added additional fields to tape SOS record permitting better
620   recovery with no database.
621 - Be sure to remove any !terminate statements you may have
622   in your config files.
623 - MUST UPDATE ALL DAEMONS due to protocol change to handle new
624   tape format.
625
626   From kes11Jun02:
627 - Updated examples directory with my most recent config files.
628 - Modified the M_TERM meaning to mean that Bacula has
629   terminated in error without producing a dump. Previously,
630   it meant that Bacula terminate (with or without error).
631   You should remove any !terminate from your messages
632   resources.
633 - Changed the order of the libraries in the link so that
634   tcp wrappers link properly. Thanks Phil for reporting this.
635 - A user reported that filenames containing spaces were truncated
636   in bextract. This was indeed the case. They were also truncated
637   in Restore as well as in Verify. They are, hopefully, all fixed
638   now.
639 - Made a few error conditions in Verify non-fatal.
640 - Modified the Console "query" command to permit multiple SQL
641   statements per command. 
642 - Implemented three new "query" options: 
643     List last 10 Full Backups for a Client
644     List Volumes used by selected JobId
645     List Volumes to Restore All Files
646   To use them, simply type "query" to the Console program, and
647   select the one you want.
648 - Modified bextract to default to extracting all files (i.e. /).
649 - Cleaned up the code in bextract a bit.
650
651   From kes03Jun02:
652 - Improve Verify command to include files examined.
653 - Eliminate fcntl() locking of the console file and replaced
654   it with a pthreads mutex.
655 - Note Director - SD protocol is changed to handle new tape
656   information (Fileset, JobType, JobLevel).
657 - Create config.out that contains a summary of ./configure
658   to see what you previously configured: "cat config.out"
659 - Implemented GZIP compression.  Added addition syntax to
660   Include { } resource to permit setting of any GZIP compression
661   level:
662      compression=GZIP
663      compression=GZIP1
664      ...
665      compression=GZIP9
666
667   Level 1 is minimum compression and level 9 is maximum. Using just
668   GZIP gives the default (level 6).
669 - Enhanced the tape format to include the unique Job name, FileSetName,
670   JobType, and JobLevel in the Start/End of Session records. The code
671   detects that tape level difference and acts accordingly. You can 
672   add data in the new format to old tapes.
673 - Fixed an incorrect display message in the prune command.
674 - Began implementation of Verify Volume and Verify Data.
675 - Cleaned up File daemon restore.c a bit ensuring that termination 
676   cleanup is done and all possible Emsgs are converted to Jmsgs.
677 - Modify bls.c to use common setup routines. This reduced the big
678   code duplication that creeped in when I added different listing
679   options. Also, changing tapes is now handled uniformily in a subroutine.
680
681 ===========================================================================
682 2002-05-27 Release 1.20
683 - Started documenting Catalog Pruning and Recycling.
684   Added catmaintenance.html and recycling.html
685 - Fixed the query command bug.
686 - Implemented PID files to prevent two copies of Bacula
687   from running at the same time. Be sure you --with-pid-dir
688   points to a working directory.
689 - Modified ASSERT() to cause a segmentation violation. This
690   permits a core dump.
691 - Worked on gnome-console. It paints better, it tells you if it
692   is ready to accept a command or processing one, and it is
693   almost entirely GTK+ (rather than GNOME, I'm removing GNOME
694   a bit at a time).
695 - Limit to 100 the number of tape labeling errors in a single Job.
696 - Add some additional ASSERT()s to the database routines. I don't
697   like ASSERTs but they do catch bugs.
698 - Tested and debugged recycling of Volumes.  Needed to change
699   the Director-SD protocol slightly.
700 - Removed the experimental SIGHUP in the Director as it is a
701   potential source of errors.
702 - Added Level, Pool, Messages, and Storage keyword/value scanning
703   to the Schedule Run record.
704 - Improved printing of Schedule resources with "show schedules"
705 - Do not autoprune Jobs/Files if the Job errs.
706 - Updated newvol() to pass back the updated Media record.   
707 - Fixed the "update pool" command, which was broken during a much
708   earlier code reorganization.
709 - Improved a few of the pruning messages.
710 - Removed readline inclusions from gnome-console (hang over from console).
711 - Make Jmsg use daemon message handler if no message handler is defined.
712   This is always the case in the SD and FD.
713 - Started removing __PROTO(). With C++ prototypes are manditory, so why
714   keep around legacy code.
715 - Added a good deal of message internationalization -- more to be done.
716 - Move cached Path into mdb structure and use POOLMEM.
717 - Fix verify bug introduced last update causing incorrect diffs 
718   by turning off autopruning.
719 - Started adding code to distinguish Errors from Fatal Errors.
720 - Errors are now counted in message.c for a Job.
721 - More POOLMEM cleanups.
722 - Implemented Automatic pruning.
723 - Implemented Automatic recycling of Volumes.
724 - Added PruneJobs/Files/Volumes=yes or no to Job resource. If set,
725   it forces the specified pruning.
726 - Modified rwlock to accept multiple nested write lock
727   requests.
728 - Modified the cats directory to use the new rwlock mechanism
729   in place of P() and V(). 
730 - Defined db_lock(mdb) and db_unlock(mdb). They are in effect
731   transaction locks. 
732 - Add CVS Id's to most files.
733 - Made first cut at AutoPrune
734 - Added new autoprune file that is called at the end of
735   each Job. It then decides when and what to prune and
736   calls the UA prune routines.
737 - Modified Run (in Schedule resource) to permit overrides of
738   Level, Pool, Storage, and Messages. (not tested).
739 - Added more POOLMEM in place of char.
740 - Implemented daemon pid files. This prevents multiple 
741   daemons from running simultaneously. You can run multiple
742   daemons if they listen on different ports.
743 - Documented the Schedule resource a bit better.
744 - Began gently adding a POOLMEM type (perviously void).
745   For the moment it is a #define to char, but long term
746   it should be its own typedef.
747 - Corrected a bit of spacing on the status bar of gnome-console
748 - Added Admin and Archive Job types.
749 - Implemented multiple Messages resources. Each daemon has
750   its own message resource, which defaults if not defined.
751   Jobs may now have different message handlers.
752 - Cleaned up a bit of duplicate code in backup, verify, and
753   restore by creating appropriate subroutines in job.c
754 - Added Type, Client, FileSet, and Level resource record
755   definitions to the Director. These can be used in place
756   of the Backup = ..., Verify = ..., ... commands.  This needs
757   documenting.
758 - Corrected an incorrect message in the prune code and added
759   the number of Files pruned in the message.
760 - Corrected several paint problems with gnome-console.
761 - Added a bit of printout in signal handler during traceback.
762 - Cleaned up most of sm_check() to be turned on/off by define
763   in version.h
764
765 ===========================================================================
766 2002-05-10 Release 1.19
767 - Allow the user to select a new period for pruning.
768 - Lots of additions to the manual -- prune and purge
769   commands documented.
770 - Applied Phil's configure.in fix for --prefix, ...
771 - Fixed bug found by Phil (patch supplied) in updating
772   MD5 signatures (revert to 32 bit FileId, move "static"
773   variables into JCR) (catreq.c fd-cmds.c).
774 - Reverted to using INTEGER for FileId in make_sql_tables
775   due to a bug in MySQL.
776 - Change editing code to %d for FileId.
777 - Remove sqlite in make distclean in cats directory.
778 - Remove console.conf in console during make distclean.
779 - Remove gnome-console.conf during make distclean.
780 - Remove bacula-dir.conf during make distclean.
781 - Set default level when using Console if none specified.
782   Bug reported by Phil.
783 - A simple . command from Console is ignored.   
784 - Change program named from filed to bacual-fd in winmain.cpp
785 - Change default config file for Win32 in winmain.cpp
786 - Free namebuf on early return from find_one.c. Bug reported by Phil.
787 - Modify testfind.c to dump orphaned buffers.
788 - Removed terabytes from parse_conf.c because of problems with
789   older gcc compilers.
790 - Turn off gnome options in gnome-console by constructing empty argv.
791 - Fixes to Verify when only MD5 differs.
792 - Insert 0 for MD5 as default rather than space.
793 - Allow .messages "transparent" command while reading input
794   in UserAgent server.
795 - In dird/verify.c ensure that correct filename is printed if only
796   the MD5 differs. Minor reindenting caused large diff.
797 - Delete unused code from backup.c
798 - In filed/verify.c ensure that same algorithm as backup.c is used
799   to pass back MD5 signatures -- especially for directories and files
800   that cannot be read. Change dummy filename from X to *MD5-id*.
801   This dummy value should never be printed.
802 - Make gnome-console poll Director every 5 seconds for output.
803   This means that queued up messages are displayed at reasonable
804   intervals. Delete some unused code hanging around from the tty
805   console program.
806 - Begin implementation of prune commands.
807 - Add command line history to gnome-console. Not yet saved across sessions.
808 - Fixed some broken URLs in the manual.
809 - Added JobId type.
810 - Wrote first cut of "prune files" and "prune jobs".
811 - Added command line history to gnome-console 2500 lines max.
812 - Widened store_time() and associated variables to 64 bits using
813   new btime_t definition.
814 - Removed GNOME about box and replaced it with 
815   a somewhat crude Gtk+ about box in the gnome-console.
816 - Widened StartDay in the Job DB record to be 64 bits.
817 - Changed edit_uint_ to edit_uint64_ everywhere. Much more
818   descriptive of what is done.
819 - Removed most llds and replaced them with %s and edit_uint64.
820   This makes the code a bit easier to read for beginners.
821 - Added a btime_t typedef which is 64 bits wide.
822 - Added most of the code needed to do Purge and Prune of
823   database. Not yet tested. Please do not use.
824 - Additional config options for Console.
825 - Started adding code for Automatic Recycling of Volumes.
826 - Allow arbitrary length filenames in Verify code.
827 - Fix incorrect filename in Verify code.
828 - Significant enhancement to number scanning in config parser.
829 - Requires initializing MySQL tables, or applying cats/alter.sql
830   to modify Media table.
831 - Modified Makefile to printer a much more visible
832   message if the make ends in error.
833 - Added the Purge value to the VolStatus in the Media table.
834   This value is set if the Volume is purged.
835 - Enhanced the db_delete_media_record() routine to delete
836   all associated records in the database.
837 - Modified Console to always write to the variable "output"       
838   rather than stdout. This will permit directing output to a file.
839 - Enhanced the Console configuration file to have a Console 
840   resource. This will allow us to add an rcfile and history file.
841 - Modified Find_next_vol in catreq.c to search for "Recycle"
842   volumes if there are none marked Append. Also made Get_Vol_info
843   return the VolStatus to the Storage daemon.
844 - Allow upper/lower case match on job level names.
845 - Added another warning message to the Console "delete media" command.
846 - Corrected a number of FileId types from uint64_t to FileId_t in
847   ua_retention.c.
848 - In ua server close database before freeing JCR (because pointer is
849   kept in ua and jcr structures).
850 - parse all numbers as doubles. Do lots of checking for valid number
851   formats. Allow numbers in scientific form (e.g. 1.5e+10).
852 - Remove terabyte modifier as it doesn't work in some compilers.
853 - Fix bug in handling some modifiers.
854 - Added all necessary code for Recycle to Storage daemon. A Volume
855   marked Recycle will now be overwritten.
856 - Filled out the prune command a bit and did some testing.
857 - Make console accept redirected input.
858 - Altered the Table definitions to include Recycle,
859   FileRetention, JobRetention, and AutoPrune.
860 - Widened StartDay to 64 bits.
861 - Use JobId_t in more places. 
862 - Added the new table fields to the database record definitions.
863 - Changed Recycle from string to a binary quantity.
864 - Added a Version table with a VersionId to detect.
865   future changes in the database. This should prevent
866   a Bacula from working with a database that is not in sync.
867 - Modify Console to accept input from a file. This will permit
868   the .read command and allow reading a .rc file.
869 - Added new retention and recycle variables to the Director's configuration.
870 - The UA subroutines or commands can now be called from core
871   code because the output routines detect the absence of a 
872   UA socket and direct output to the Job.
873 - Added a verbose flage to the ua packet to permit reduction of
874   output while running a UA command (prune) from a Job.
875 - Did a fair amount of work on the prune command. Prune Volume now works.
876 - Purge Volume now works.
877 - Made last changes for integrating prune and purge commands.
878 - Add -ltermcap to CONS_LIBS when readline is configured.
879   More work to be done to search for termcap.
880 - Added cats/drop_sqlite_tables.in, which will delete the SQLite database.
881 - Got CWEB working so that we can compile filesys.w and immortal.w
882 - Modified depkgs to include cweb.             
883 - Note, CWEB is not yet used by the core Bacula code.
884 - Made cats/alter.sql, which alters an old database to bring it
885   up to the new format. This only works with MySQL since SQLite does
886   not have the ALTER SQL command.
887 - Changed the old StartDay field in the db to be JobTDate, which is
888   the latest time/date in widened Unix time format that the Job ran.
889   This value is used when doing pruning.
890 - Added code in cats/sql.c to verify that the database internal version
891   corresponds to the db version compiled in Bacula. It is set to 1 currently.
892 - Lots of changes to cats to bring the SQL up to date with the new 
893   retention period changes.
894 - Added Console command code to permit changing a Volume's retention period.
895 - Removed old code that used date_encode() and replaced it with widened
896   Unix time().
897 - Started modifying Message resource scanner so that we can have multiple
898   message resources. Much more work to be done.
899 - Moved scanning for time into new library routine string_to_btime().
900
901 ===========================================================================
902 2002-04-22 Release 1.18
903 - Applied Phil's configure.in fix for --prefix, ...
904 - Fixed bug found by Phil (patch supplied) in updating
905   MD5 signatures (revert to 32 bit FileId, move "static"
906   variables into JCR) (catreq.c fd-cmds.c).
907 - Reverted to using INTEGER for FileId in make_sql_tables
908   due to a bug in MySQL.
909 - Change editing code to %d for FileId.
910 - Remove sqlite in make distclean in cats directory.
911 - Remove console.conf in console during make distclean
912 - Remove gnome-console.conf during make distclean
913 - Remove bacula-dir.conf during make distclean
914 - Set default level when using Console if none specified.
915   Bug reported by Phil.
916 - A simple . command from Console is ignored.   
917 - Change program named from filed to bacual-fd in winmain.cpp
918 - Change default config file for Win32 in winmain.cpp
919 - Free namebuf on early return from find_one.c. Bug reported by
920   Phil.
921 - Modify testfind.c to dump orphaned buffers.
922 - Removed terabytes from parse_conf.c because of problems with
923   older gcc compilers.
924 - Turn off gnome options in gnome-console by constructing empty
925   argv.
926
927 ===========================================================================
928 2002-04-18 Release 1.17 Kern Sibbald
929 - Ensure that platforms Makefiles are called for clean  
930   and distclean.
931 - Hide a lot of Makefile messages with @
932 - Applied Phil's configure.in patch. Thanks.
933 - Doc updates, many to clarify points brought up by Phil.
934 - Applied Phil's make_mysql_tables.in patch. Thanks.
935 - Made authenticate.c in dird test bnet_send status.
936 - Make label a bit more friendly with extra info message.
937 - Add level 200 to debug info in run command.
938 - Remove old code from findlib/testfind.c so that it compiles.
939 - Add two minute max wait to cram-md5 authentication. Hopefully,
940   this will catch non-responding WinNT daemons.
941 - Allow time and size modifiers to be upper or lower case.
942 - Turn off old CYGWIN patch for pthread_cond_timedwait() bug that
943   now causes File daemon hangs on WinNT.
944 - Fix mount messages for restore. Previous updates to save
945   broke the restore code.
946 - By default write fixed block sizes rather than variable block
947   sizes.  My Sony DAT simply does not work (reread failures) with
948   variable block sizes.
949 - Data split across tapes was not being correctly restored
950   (at least on DAT tapes). 
951 - Implement MaximumBlockSize and MinumBlockSize statements in
952   Storage daemon so user can specify variable block sizes if
953   desired.
954 - Return error if block checksum error on read (previously 
955   ignored).
956 - Fixed some error messages in bls, and in some cases exit(1)
957   rather than ABORT. There remain ABORTs to be examined.
958 - Made a local copy of tcpd.h and corrected the function 
959   prototype problem for C++.
960
961 ===========================================================================
962 2002-04-14 First public release 1.16 Kern Sibbald
963  - Many intervening changes/updates.
964
965 2001-09-29 Release 1.0 Kern Sibbald
966  - Fixes to problems found at John's
967    installation.
968  - See techlogs/kes25Sep01 for details
969
970 2001-09-25 Release 1.0 Kern Sibbald
971  - Helped John install at his site.
972    He is backing up one Linux machine and
973    one Win2000 machine.
974
975 2001-mm-dd Many releases
976  - Released internally.
977   
978 2000-04-09 Release 0.4 Kern Sibbald
979  - Added a lot of Director configuration code. In      
980    part (a small part), the Director now uses the
981    bacula.conf file to know what to do. There still
982    remains a lot to do.
983  - The file search code is now integrated into the
984    MySQL database routines, and Bacula is now hooked
985    into the MySQL database (if so configured). Thus
986    all the database records are being created, though
987    there still remains some work in getting all the
988    details into the records (such as the Storage 
989    coordinates).
990  - I've defined how Volume pools work (see manual).
991  - I've defined error message handling though no code
992    is yet written.
993  - The following resources and records are implemented
994    in the Director configuration file (bacula.conf):
995     
996    Director
997      Name (passed to Storage daemon)
998    Client
999      Name, Address, Port
1000      Password (not yet used)
1001    Storage    
1002      Name, Address, Port, Password, MediaType
1003    Job
1004      Name    
1005      Type (not yet used)
1006      Backup (only one permitted) 
1007        Client, FileSet
1008      Storage
1009      Schedule, Messages, Pool (not used)
1010    FileSet
1011      Name  
1012      Include (options ignored)
1013      Exclude (no options)
1014    Schedule (not used)
1015      Name
1016    Messages (not used)
1017      Name       
1018      Debug, syslog, mail, append (not used)
1019    Catalog
1020      Name
1021      Address, Port, Password (not used)
1022    Pool (not used)
1023      Name
1024      PoolType, MediaType (not used)
1025
1026  - Added Storage configuration routines.
1027    Director
1028      Name, password (verified against those sent by Director)
1029    Storage
1030      Name, Address, Port (address, port must correspond to Director's values)
1031      Password, MediaType
1032    Device
1033      Name, MediaType (must correspond to those sent by Director)
1034      Archive Device (defines device name)
1035
1036
1037 2000-03-10 Release 0.3 Kern Sibbald
1038  - Implemented new base64 encoding for attributes.
1039    This eliminates some of the error messages in the
1040    sprintfs on the Solaris due to different stat() sizes.
1041  - Implemented  the first cut of the file search routines for
1042    the File daemon.  The exclusion lists work including wild
1043    cards.   There is a lot of work to be done, but the basic
1044    structure is now in place (wild cards do not yet work for
1045    the include).
1046  - Completed writing the memory pool code.  Now I must
1047    implement it in the daemons.
1048  - Modified the bacula start/stop script so that it has a
1049    better chance of working on SGI and Solaris.
1050  - The catalog code has not been converted to the new file
1051    search code.
1052
1053 2000-03-06 Release 0.2 Kern Sibbald
1054  - Integrated John's fixes.
1055  - Made Makefiles self configuring when Makefile.in is changed.
1056  - Added a runit script in the top level that runs bacula
1057  - Added a "bacula" script in the top level directory that
1058    starts and stops the File daemon and the Storage daemon.
1059
1060 2000-03-03 Release 0.1 Kern Sibbald
1061  - Basic Director, File, and Storage daemons.
1062    Standalone Catalog services using MySQL
1063
1064 2000-01-22 Kern Sibbald
1065    * Setup basic file structure with ./configure