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