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