]> git.sur5r.net Git - bacula/bacula/blob - bacula/ChangeLog
523c0c0ae177761f366b06c29d2e946d911c40ba
[bacula/bacula] / bacula / ChangeLog
1 2003-05-20 Version 1.31 Beta 20May03
2 - Add mandrake to platforms
3 - Suppress error messages if no bytes written to tape.
4 - Suck up bootstrap file even on error so that Dir sees our error message.
5 - Pretty much finish off the Win32 backup code.
6 - Add DESTDIR code to autostart for creating non-root rpms
7 - Echo input read from a script in Console.
8 - Clarify error message for VerifyToCatalog
9 - Add error counts in restore for M_NOTSAVED.
10 - Adapt bfile.c to handle both Win95 files as well as WinXP files.
11 - Add MTIOCERRSTAT for FreeBSD (clear error status).
12 - Correct double jobmedia record when cancel at EOM reported by Phil.
13 - Correct possible write at beginning of tape during cancel at EOM
14   as reported by Phil.
15 - Document in detail how Incremental and Differential jobs work.
16 - Add non-fatal error count on backup and restore Job reports.
17 - Remove a couple uses of lld -- now prefer to edit and use %s.
18 - Fix directory could not be accessed on Win32.
19 - Improve message indicating that last Full backup not found. 
20 - Fix free() too early in directory traversal code.
21 - Prune Jobs with no JobFiles or that have JobStatus!='T'
22 - Add a few more command line scans for prune/purge.
23 - Restrict valid characters in a Volume name, and document it.
24 - Make new Win32 save/restore work. Still a bit more to do.
25 - Use reentrant version of mysqlclient library.
26 - Use more machine independent way of finding gcc version.
27 - Fix race condition in sql_list where messages edited before locking.
28 - Lots of testing saving/restoring 6GB files.
29 - Add where to restore where=/tmp
30 - Complete implementation of Win32 streams in FD. Must test. Also,
31   must implement new streams in SD.
32 - Make termination of daemons more "error" tolerant.  
33 - Make default "duration" days rather than seconds if there is no modifier.
34 - Install bcopy.
35 - Add detection of available Win API's so that a single binary will
36   work on all Windows systems.  Reference those APIs through a pointer.
37 - Remove use_win_backup_api and enable it in bfile.c if system supports it.
38 - Modify dev.c so that it works if MTEOM is not defined (BSDI).
39 - Change MT_xxx to BMT_xxx to prevent conflicts with BSDI.
40 - Detect strtoll() in configure.
41 - Implement replacement for strtoll() for BSDI.
42 - Add platform files for BSDI.
43 - Use Jmsg() instead of Jmsg1() in acquire because File:line prefixed in dev.c
44 - Use Jmsg() in write_block_to_dev() so that no messages are lost.
45 - Rework autochanger code in restore to handle case of cassette not in magazine.
46 - Implement Windows BackupRead/Write(). I now have permissions right!!!!
47 - Additions to the manual (Purging, Autopruning).
48 - Add doc to code in autoprune.
49 - Begin adding Level = Base.
50 - Make Jmsg recognize console and direct messages directly back to it.
51 - Hopefully fix mess in mount.c when a tape expires.  
52 - Fix restore bug recently introduced due to Unix backwards status convention.
53 - New bacula.spec from Scott
54 - Add globals for database name and version and print them in traceback.
55 - Eliminate SubSysDirectory in each daemon conf file.
56 - Implement get_yesno() and get_pint() in UA.
57 - Make Jmsg aware of console. Messages now sent directly to Console.
58 - Created a single bacula.spec.in for by the MySQL and SQLite builds.
59 - Added proper configuration to console.in and gconsole.in
60 - Start adding textdomain() code for translating.
61 - A number of minor code cleanups.
62 - Rework shell expansion just a bit.
63 - Add rewind() when releasing a tape before acquiring the next one.
64 - Implement addition of Description in Service entry for Win32.
65 - Update manual to eliminate unclear autochanger points as mentioned
66   by Dan Langille.
67 - Implement DESTDIR everywhere.
68 - Rework spec files for 1.31 and combine the main spec and the client
69   only spec making a client package. At the same time, rename the packages
70   so it is a bit clearer to the user. Also fix the build to work
71   as non-root (scriptdir was not prefixed with $RPM_BUILD_ROOT).
72 - Correct Auto Changers and all other forms to Autochangers in the
73   manual.
74 - John reported needing to do two "mount" requests, and indeed that
75   was the case. It turns out that pthread_cond_timedwait() does not
76   always return zero when awaken by a pthread_cond_signal().
77 - Include RunBeforeJob and RunAfterJob output in job output report.
78 - Implement a "real" Admin job that prints a mini-job report.
79 - Clean up a few error messages in findlib and filed.
80 - Recent changes to gnome-console caused initial output to be
81   lost -- now fixed.
82 - The Win32 version crashed after each job. After hours, it turns out
83   that when running with LocalSystem privilege (and not as a user), when
84   Cygwin does pthread_kill(id, SIGUSR2), it gets a memory fault.
85 - Moved stored/fdmsg.c to lib/bget_msg.c, and moved SD messages to
86   stored.c.  So now bget_msg() can be used by both the SD and FD.
87 - Changed Director's bget_msg() to be called bget_dirmsg() to avoid
88   any possible confusion.
89 - Implemented bget_msg() in general everywhere in the FD except for
90   job.c where the Dir and FD are communicating.
91 - Implemented a Director only heartbeat in the FD for the cases where
92   there is either no connection to the SD or the FD is already reading
93   from the SD.  start_dir_heartbeat() ...
94 - Add heartbeat to restore and verify volume.
95 - Add "Heartbeat Interval" to Storage resource, which sets interval the
96   SD sends heartbeats to the FD and DIR, 0 disables heartbeats.
97 - Add "Heartbeat Interval" to FileDaemon resource, which sets the interval
98   the FD sends heartbeats to the DIR, 0 disables heartbeats. 
99 - Added heartbeat from FD to Dir every HB_TIME rather than forwarding
100   SD heartbeats.
101 - First cut label dialog.
102 - Turn on new semaphore code for simultaneous Jobs.
103 - Fix cancel trying to release semaphore's not acquired.
104 - Implement get_pint() and get_yesno() for UA.
105 - Implement find_arg_with_value() for UA.
106 - All command line "slot" to be specified for label command.
107 - Rework heartbeat code in FD to correctly terminate.
108 - Fix btraceback to use smtp and to eliminate double //
109 - Fix "storage" command to include ssl for verify and restores.
110 - Add Heartbeat code when SD is waiting on a tape -- heartbeat every 20 mins
111   to keep stateful firewalls from timing out the connections.
112 - Fix src/stored/Makefile.in typo causing problems in statically linking
113   btape.  Thanks to Lutz for reporting this.
114 - Create an is_client_alive script for checking if a client is alive.
115   Using this script prevents generating error messages.
116 - Added corrections and updates to manual provided by Phil -- thanks.
117 - Added RequireSSL to each program/daemon configuration.
118 - Added EnableSSL to each correspondent for each program.
119 - Added the Console resource to the Director (need to
120   implement individual Console authorization).
121
122 2003-04-28 Version 1.30 released
123 - Fix command history for gnome-console (must malloc).
124 - Add two cancel points in acquire_resources(). The job will not
125   be immediately terminated in all cases.
126 - The new AutoMount code broke File archives -- fixed.
127 - Correct watchdog mutex race introduced yesterday.
128 - Add JobLevel to Admin run started by UA.
129 - Add -v to daemon startup scripts
130 - Implement bmicrosleep(sec, msec);
131 - Implement When for "run" command.
132 - Remove unsigned from socklen_t definition in hopes it will work better
133   with older systems.
134 - Remove code that attempts to set PID dir and SUBSYS dir if they
135   do not exist because it set them to sbindir!
136 - Modify mount to initially attempt to read the volume if Bacula
137   wants a tape, none is mounted, and "Automatic Mount = yes" is set.
138 - Prohibit setting --sbindir and --with-subsys-dir the same.
139 - Fix missing argument that cause Kaboom in update slots.
140 - Fix orphaned bsock when UA gets error contacting FD or SD
141 - Nearly full implementation of Win Backup API, but it does not
142   work due to lack of permission! Arggg!
143 - Implemented restoring directory permissions as they should be.
144 - Implemented reasonable regression script.  It found a number of
145   restore errors.
146 - Implemented the following @ commands in the console that work directly
147   in the console rather than in the Director.
148     input - read input from a file
149     output - write output to file
150     tee    - tee output to file and terminal
151     time   - print current time
152     version - print current version
153     exit    - quit
154     quit    - quit
155 - Implemented new bfile io routines that will permit implementation of
156   Windows native APIs for reading/writing files.
157 - By default always update hard links with the prefix, but do
158   not update soft links.  It seems inconsistent, but it is what
159   cp does.
160 - Implement wait command in Console that waits until no jobs are running. 
161 - Fixed the < code in Include/Excludes, which forgot to skip over the <.
162 - Do NOT attempt to chmod() a soft link as it will change the file behind
163   the link!
164 - OOPS! Lutz ran into a problem. In attempting to prevent string overflows,
165   I used bstrncpy() on a variable that was malloc'ed thus truncating 
166   Volume names!  Arrrggggg!
167 - Lots of documentation of new features.
168 - Rework Volume name scanning in console, made much more logical
169   and corrected a bug (confusion in calling sequence).
170 - Cleaned up a few error messages in cats adding more info.
171 - Add the IP address to error messages due to bad connects to servers.
172 - Implement default File output in config files so user can start
173   saving right away without a tape drive.
174 - Protect inet_ntoa() with mutex in case it is not thread safe.
175 - Eliminate termcap from use in gnome console.
176 - Remove unused SD maximum volume files and maximum volume jobs. They
177   are implemented in the Director.
178 - Make the default for Incremental and Differential saves to compare
179   against both st_mtime and st_ctime rather than just st_mtime.
180   This includes files moved or copied.
181   Thanks to Matthias Wamser for bringing this fix to our attention.
182 - On Win32 clients, make a pass through the include/exclude patterns
183   and change any back slashes to foward slashes. Prevents creating
184   unusable directory names containing both conventions.
185 - Move ls -l output on restored files to M_RESTORED class.
186 - Make gnome-console compile correctly on RH8.0
187 - label barcodes now works.
188 - Implemented "update slots".
189 - Tweak btape "test" to always print suggestion for re-read last block.
190 - Implemented "Cleaning Prefix"
191 - Update alter_mysql_tables.in
192 - More work on barcodes.
193 - Zap VolHdr in SD when attempting to label a tape that is not
194   there.  Prevents false tape names the next label command.
195 - First cut of bar code reading is implemented. It doesn't do
196   anything but return the list to the Director.
197 - Implemented relabel command that relabels "Purged" Volumes.
198 - Check exit code in RunBeforeJob and err the job if it is non-zero.
199 - Remove old testsuite -- too complicated
200 - Print length when Authorization fails because of bad length.
201 - Fix problem of NumVols in Pool getting reset on startup.
202 - Implement full listing of DB records by listing them vertically
203   instead of horizontally.
204 - Make changes to mysql scripts as suggested by Lutz Kittler
205 - Fixed code to write Uname to Client record.
206 - Fixed a problem (in btape) where Pmsg() was not printing.
207 - Moved re-read last block test to last in "test" command of btape.
208 - Lots of new documentation.
209 - Fixed newvol.c to handle retrying 10 times if the volume name already exists.
210 - Removed int_least16_t from sha1.h because it does not exist on some systems.
211 - Release job in SD if canceled and waiting on a mount (better cancellation).
212 - Prompt for Client in restore if not specified.
213 - Print "Selection is empty!" if no selection list found.
214 - Add new spec files and bacula.desktop from Scott.
215 - Update client every time a job is run.
216 - Add verbose option to daemons for printing more user error info.
217 - Test if console works with readline 4.3 (yes, it is OK).
218 - Release new depkgs
219 - Release new winbacula.
220 - Add Uname info to Client DB record.
221 - Improve error messages and make them more consistent when a non-existent
222   Device is requested.
223 - Separated the -mwindows option so that only Windows programs
224   are built with it (bacula-fd, ...) the tty tools such as console
225   dbcheck, smtp, testfind, ... are now able to be run in a standard
226   Windows DOS box.
227 - Add | and < options to Exclude the same as in Include.  
228 - Add typed in input to the text window in the gnome-console.
229 - Change function that gets the entry text (previously had orphaned buffer).
230 - Fix multiple Director problem in gnome-console (thanks to Lutz Kittler).
231 - Thanks to Renato, I was able to test Bacula on a FreeBSD tape drive.
232   There are a number of significant differences: 1. reading less than
233   the number of bytes in a record returns an I/O error.  2. ioctl(MTEOM)
234   looses the file position. 3. Reading two two EOF marks (or ioctl(MTEOM))
235   leave you positioned after the second EOF, so you must backspace file
236   to be able to append.
237 - Added BSF at EOM = yes/no to Device resource to allow proper positioning
238   at the end of a FreeBSD tape.
239 - Made btape "test" do much better testing of error conditions (i.e.
240   it now ensures that the append went well). It will automatically
241   detect problems and apply fixes and then retry the test, if it
242   finally succeeds, it clearly says what directives need changing.
243 - Add Scott Barninger's rpm changes to the build environment
244 - Add changes to mtx-changer so users can add eject and sleep for
245   certain autochangers.
246 - Implemented FreeBSD chflags (user defined flags).
247 - Turn restore errors during setting of owner and modes into
248   warning messages -- for restoring files as non-root.
249 - Fix how prefixes are handled in restoring soft links.
250 - Modified btape "test" command to do only those things that
251   Bacula actually does. There is much more explanation, ...
252 - Update manual.
253 - Finally had to back up to gcc version 2 from version 3 to avoid version
254   3 nightmares.   
255 - Final cygwin tweaks.
256 - Move start time to *after* the resource locks are acquired.
257 - Unable to duplicate Phil's disabling of Bacula with nmap, but
258   did make the authentication code a bit more conservative for
259   dealing with bad input.
260 - Added code to the query command to escape all strings input
261   before substitution and sending to the SQL engine.
262 - Escape user entered filenames for restore command.              
263 - Cleaned up the waiting code a bit -- using broadcast instead
264   of signal and counting the waiters.
265 - Implement new pthreads semaphore code.
266 - #define new semaphore code rather than workq on USE_SEMAPHORE.
267 - Lots of improvements to the document to address recent support requests.
268 - Implement cycle through a set of tapes suggested by Eugeny
269   Fisher with the "RecycleOldestVolume=yes" record in the
270   Pool resource.  Basically this record causes Bacula to purge
271   to oldest tape when no more tapes are found.
272 - Correct a number of small incorrect interactions between limit
273   variables during recycling.
274 - Corrected a bug in db_create_media_record() where VolMaxFiles and
275   VolMaxJobs was not written to the database.
276 - When the Director starts, the Pool record is updated in the
277   database with the current contents of the Pool resource.
278 - Corrected bnet_connect() to immediately stop (rather than looping
279   for the timeout period) if there is a fatal error (socket, or
280   hostname to ip).
281 - Reworked "purge" code to make purging Volumes easier.
282 - Made "list volumes" list the volumes in all pools -- also
283   "list volumes pool=Default" does not produce and error message.
284 - List Pool record after doing "update pool".
285 - Remove pid file code from Win32 -- not really necessary.
286 - Make bnet handle null jcr during cancel rather than crash.
287 - Add CygwinInstall.bat and CygwinUnInstall.bat
288 - Add db_lock() around newvol.c code to prevent race condition if multiple
289   callers want a new Volume name.
290 - Lots of cleanup to Win32 code, with additional error messages.
291 - Make Bacula work on Win95 (test for GetAttributesEx).
292 - Add better error messages when end of media is reached or volume
293   capacity execed.
294 - Turned off signal catching in readline(), necessary to keep console
295   from crashing on ctl-Z with RedHat 8.0.  Thanks to David Craigon for
296   testing this.
297 - Make the 3rd and hopefully final change to the Finclude structures.
298   This new version permits multiple sets of options (more code to be
299   written) to be applied against the same set of files. Thus one can
300   have options that with match of *.gz and a different set of options
301   for *.c, ...
302 - Integrated GNOME Console font resource code supplied by Phil Stracchino.
303 - Check for job_cancelled() in bnet_connect() code to stop wait loop if
304   client not available.
305 - Fix early end of file scanning conf file in lex.c, which previously
306   caused ABORT -- now reports error.  This could happen with an unterminated
307   string for example.
308 - Move Maximum File Size code before write and detect error on writing EOF.
309 - Additional fix for Solaris 2.6 and a bdb.c fix submitted by Armin Buehler.
310 - Added detection for Solaris 2.6, which uses older setsockopt() calls.
311 - Defined sockopt_val_t for setsockopt() calls.
312 - Added fixes sent by Bevan Anderson that fix multiple connects to FD
313   (I zap keys for security, so must put back dummy key).  Also a fix
314   to the Internal database that wrote garbage after the filename in
315   the database.
316 - Back out the __SVR4 changes.
317 - Add automatic configuration of socklen_t
318 - Attempt to fix problems reported by Lutz with multiple simultaneous
319   open file Volumes (experimental code). Serialized acquire. This may
320   fix the problem, but more thought and testing is necessary.
321 - Add table of "supported" autochanger models.
322 - Add Solaris 2.6 (__SRV4) changes sent by Peter Schmitz.
323 - Correct tape selection code in SD (|| => &&). Thanks to Chuck Hemker
324   for the patch.
325 - Eliminate FileOptions. Implement new Finclude and Fexclude that
326   have file options contained in it.  New structure must be transmitted
327   to FD.
328 - Split Include/Exclude into new inc_conf.c file.
329 - Cleanup new Include/Exclude and FileOptions.  Structures in Director
330   now correct.  Must transmit FileOptions to FD.
331 - WARNING:  With the adddress and port code in the Catalog you MUST
332   remove old address= and dport= records!!!!!
333 - Added code to remove cancelled jobs from the workq -- needs testing.
334 - Added first cut AIX from output James MacLean sent me.
335 - Second cut of FileOptions.
336 - First cut of parsing FileOptions and Counters.
337 - Added address:port for MySQL as well as socket for local access.
338 - Fixed job.c in filed to properly handle excluded files. Apparently
339   I changed the daemon protocol but forgot to update the code.
340 - Enhance testfind to handle include and exclude files
341 - Fix getdomainname() prototype for Darwin
342 - Added new -u and -g options for specifying userid and groupid to
343   use when running, so that Bacula can reduce its privileges.
344 - When Bacula was hanging due to an NFS volume being down, I 
345   fixed a few places in the File daemon where is should have immediately
346   terminated the connection instead of waiting for the Director to do so.
347 - Added first cut support for Darwin.
348 - Temporarily comment out the O_NOFOLLOW to avoid possible subtle problems.
349 - Implemented O_NOFOLLOW in creating files in create_file.c to prevent
350   creating a file at the end of a symbolic link.
351 - Use chown() if lchown() does not exist (e.g. Darwin).
352 - Always close stdin on startup to avoid having /dev/console attached.
353 - Change all DATE occurrences to BDATE because it is used by Cygwin headers.
354 - Add printing of Volume names in SD status output.
355 - Display all open devices in device chain in SD status output.
356 - All changing Pool in console run command.
357 - Thanks to Eric Bollengier for pointing out that the run_program()
358   return status was not correctly generated. Now fixed (I hope).
359 - Corrected crash in Internal Database getting Volumes.
360 - Flush all daemon messages at the end of every job.
361 - Fix Install.bat script so that Bacula restarts after reboot on WinNT/2K systems.
362 - Minor changes in the gnome-console directory.
363 - Integrated in my old Tcl/Tk code into src/tconsole and moved it up
364   from C to C++.  Pretty crude, but it is a beginning.
365 - Close syslog() %n exploit in message.c
366 - Edit space before each line in gconsole.
367 - Added INCEXE structure so we can have FileOptions.
368 - Added support for multiple simultaneous open file volumes.
369 - Fix hard linked files so that the one saved is always restored.
370 - Add * to restore "dir" listing to indicate marked files.
371 - Add ability to make md5sum and sha1sum in lib directory.
372 - Work a bit more on the new daemon protocol.
373 - Use unmask of 022 or more restive
374 - Create File volumes with 0640 permissions
375 - Added support for SHA1 signature. Need to modify DB to have type.
376 - Document SHA1.
377 - Work a bit on getting proper child status from bpipe calls.
378 - Added Ludwig's mtx-changer to the examples/devices directory.
379 - Added a Warning not to use the Internal Database when it is initialized.
380 - Compiled and tested SHA1, and added it to the library.
381 - Added code to print the "load slot" status after autoloading.
382
383 =============================================================================
384 2003-01-24 Version 1.29 released
385 23Jan03
386 - Tightened up permissions on all .conf files to be 640 so they are not
387   world readable.
388 22Jan03
389 - Added prefixlinks=yes/no Job record to specify applying the Where
390   prefix to absolute soft links.  Code is not yet passed to FD, because
391   FD would then be incompatible with version 1.28.
392 - Added skeleton of installation for Gentoo release for Patrick Naubert.
393 - Add timer on open() for reading or writing a FIFO file.
394 - Put btraceback and btraceback.gdb in sysbin dir (a bit of polution,
395   but at least dumps will work).
396 20Jan03
397 - Added "append" all messages to a log to default bacula-dir.conf
398 - Added WriteBootstrap to default bacula-dir.conf
399 - Made smartall.c print "Out of memory" if malloc() fails.
400 - Added pthread btimer routines.
401 - Added timer to FIFO open statement
402 - George was still having problems with VolUseDuration failing.
403   On looking into it, one line of code subtracting 1900 was
404   mysteriously missing from the source -- bizarre.
405 18Jan03
406 - Yesterday's version corrects all the problems I was
407   previously having, and my production jobs are now completing
408   properly.
409 - Added a #define dev_cap() to test the capabilities bits. I just
410   makes the code a bit shorter and a bit simpler.
411 - Added phase 1 support for an output fifo device. The big 
412   difference here is that it is a STREAM device, which means that
413   Bacula will only write to it and not read. Thus, Bacula assumes
414   that the correct "Volume" is mounted and will construct a valid
415   label (without needing the Volume to be prelabeled), and write
416   to the device.
417 - Added phase 1 support for input from fifo device (suppress re-read,
418   add empty buffer flag).
419 17Jan03
420 - Improve printout of dbcheck with # files/path fixing.
421 - Zap SD authorization code after use.
422 - Added <> back to smtp (think about this some)
423 - Doc
424 16Jan03
425 - Massive change to add jcr as the first argument to nearly
426   every db_ call. This is because I was storing the jcr in the
427   db structure, which will not work because everyone shares
428   exactly the same structure.
429 - More cleanups of error termination status in filed.
430 - Found another bug in message.c where %s was missing in JmsgN. A lot
431   of cleanup in message.c
432 - Found places where filename listing was made (restore, verify
433   vol) where the buffer could possibly overrun.
434 - Chain include files on the end of the list so that the
435   order will be correct.
436 - Rewrote mtx-changer to output one slot per line terminated by
437   a colon followed by an optional Volume Tag for the "list" command.
438   Preparation for handling Volume Tags.
439 - My production crash remains elusive. Adding debug code or running
440   under the debugger eliminates the problem. I found a case in
441   message.c where I was extending the message string by two 
442   characters to send it to the console. VERY BAD. Rewritten.
443 - Started implementing fifo and program handlers (i.e. streams)
444   in the Storage daemon. Lots to do.
445 - Added a trace capability where trace statements are written
446   to a file. Tmsg(). Hopefully this won't be used much.
447 - Running lots of "production" saved by scheduling a few minutes
448   after the current time -- slow process ...
449 15Jan03
450 - Removed <> on From and To in smtp.c as suggested by James MacLean.
451 - Added code to suppress spurious error messages during cancel,
452   but I was unable to eliminate all errors -- to be worked
453   on later.
454 - Up size of print buffer from 2000 to 5000.
455 - My production run failed again. I'm beginnig to suspect 
456   hardware problems because running by hand or under the
457   debugger always works -- we will see.
458 - Added Update Volume VolFiles to reset correct tape files 
459   a bit dangerous.
460 - Use the mysql_escape_string() rather than internal version.
461 14Jan03
462 - Cleanup handling of JobStatus by creating a subroutine.
463 - Fix a number of minor things with JobStatus.
464 - Print FD and SD JobStatus on backup report.
465 - Add JCR to findlib -- so now FD stops normally when cancelled.
466 - My production Director segment faulted during the second Job.
467   I haven't been able to track it down. After rebuilding, all
468   jobs finished correctly.
469 - In investigating the duplicated Paths, I found that there
470   were 10,552 of them -- only Path records. After checking the
471   code, I do not see the reason, but I've enhanced the code to
472   print the full path name.
473 - I made a few improvements to tools/dbcheck. Mostly it provides
474   a bit more feedback with verbose mode on when eliminating
475   duplicate filenames or paths.
476 13Jan03
477 - During four simultaneous backups, the File daemon started
478   detecting buffer corruptions. It turns out to be due to the
479   fact that the smartall.c routines were not thread safe. They
480   are now.
481 - Based on input from James MacLean and team, I eliminated a number
482   of places where printf could be recursively called by using "%s".
483 - It turns out that because of an error of my understanding of
484   mysql_escape_string(), the last argument was taken as the length
485   of the string to be escaped rather than the maximum length.  I've
486   now corrected all my code -- Thanks James.
487 12Jan03
488 - George Motter reported problems with UseDurations, and it seems 
489   that there were a number of inconsistencies and problems with
490   FirstWritten and LastWritten.  Hopefully for the most part they
491   are now corrected.  Also fixed LabelDate if done through Console.
492 - Try to chase down reasons why there would be buffer overruns.
493   Added P & V around referencing last_fname for status.
494   Rewrote find_one.c with MEMPOOL, but not yet tested enough
495   to commit.
496 10Jan03
497 - Give extra margin to converting filenames from Unix to Windows
498   in attribs.c of findlib -- dumb cygwin API doesn't provide for
499   a length.
500 - Added file:line traceback to size_of_pool_memory, check... and 
501   realloc  in an attept to get closer to the memory overrun reported
502   by James MacLean.
503 09Jan03
504 - Made yet another fix to quoted string -- paths!  Thanks to
505   Scott Medlock for reporting this.
506 - Made | and < work.
507 - Implemented FIFO reading/writing. To do so, simply explicitly mention
508   the fifo file (named pipe) in the Include AND add the new option
509   readfifo=yes
510 08Jan03
511 - Started implementing | and < on Include names.
512 - Changed source to . in cats directory as requested by Andrew Kokarev.
513
514 =============================================================================
515 2003-01-05 Version 1.28b released
516 - Corrected a typo of working_directory in bacula-dir.conf
517   reported by James MacLean.
518 - Fixed the fact that path and filenames in some cases were not
519   being quoted before going into the database. Many thanks to
520   James MacLean for reporting this.
521
522 =============================================================================
523 2003-01-05 Version 1.28a released
524 - Corrected a missing quote in bacula-dir.conf reported by James MacLean
525
526 =============================================================================
527 2003-01-05 Version 1.28 released
528 General:
529 - Implemented Bare Metal Recovery for Linux and manual procedures for Solaris
530 - Now using only a single technotes file kes-1.28 and will add to
531   it as the development goes on.
532 - Wrote a general purpose bi-directional pipe command. This replaces
533   previous use of pipes as well as the run_program previously used.
534 - Make BSRs stop if no more matches are possible.
535 - Allow unliminted number of devices in Storage daemon.
536 - Allow connections to Storage daemon before all devices are initialized.
537 - Better documentation (and btape test command) on using fixed block
538   tape drivers.
539
540 Changes submitted this submission:
541 04Jan03
542 - Add cygreadline5.dll to Win32 release -- needed for console
543 03Jan03
544 - Add scripts make_catalog_backup and delete_catalog_backup that makes and
545   deletes an ASCII copy of the catalog for backup. An example of how
546   to use it is in the <bacula-src/src/dird/bacula-dir.conf file.
547 - Made a nicer column oriented listing of scheduled jobs for "status dir".
548 02Jan03
549 - Added backup/restore of raw partitions.
550 - Corrected restoration of files in root directory (problem with
551   splitting path from file).
552 01Jan03
553 - Finally decided to cleanup handling of splitting path and filenames
554   in the cats directory. Now the code is in one place sql.c and it
555   is done using Pool memory, so there are no length restrictions.
556 31Dec02
557 - Add start of Solaris bare metal recovery
558 - Add Site Visit usage statistics to Web page
559 - Got Bacula listed on www.backupcentral.com
560 30Dec02
561 - Retest bare metal recovery on Linux 2 times with verify
562 - Cleanup printout of verify differences using proper casting to
563   handle shorts and long longs.
564 29Dec02
565 - Added --enable-client-only to ./configure
566 - Modified --enable-static-sd to work better and documented it.
567 - Fixed Restore options (never,ifnewer, ...). They now work.
568 - Moved the stored.c Resource lock into the allocation thread so
569   that the same thread sets/clears it. This created a problem on
570   FreeBSD.
571 28Dec02
572 - Added more rescue documentation.
573 - Did a spell check of the Bacula doc.
574 - Modified bscan to use the working directory as specified in the
575   configuration file as the default.
576 25Dec02
577 - Fixed an important bug reported by George Motter that caused only
578   the last option on an Include record to be used (all previous options
579   were lost).
580 24Dec02
581 - Chase down some inconsistencies in creating Media records from
582   the Pool defaults, and in updating/creating the Pool from the
583   resource. Also fixed the cats DB routines to include all
584   fileds (VolUseDuration was missing for example).
585 21Dec02
586 - Added building static versions of daemon static-bacula-dir, ...
587 - Fine tuned the rescue (bare metal) code including support for grub.
588 - Added skeleton freebsd rescue
589 - Corrected SQL syntax error in autoprune code (JobType => Type).
590 - Added error messages for SQL errors in autopruning.
591 19Dec02
592 - Documented Bare Metal Recovery
593 - Create new "rescue" directory containg the Bare Metal Recovery code.
594 - Fiddle with SQL a bit for pruning as apparently the last InitCatalog
595   was pruned after the expiration date eventhough it was the ONLY copy!
596   I'm not sure this is fixed yet.
597 18Dec02
598 - Allow Director to pass a NUL where string to FD (fix in FD).
599 - Fix installation mv of query.sql.
600 - Make sure btraceback.gdb is not wiped on "make distclean"
601 - Corrected a bug in mod of replace options pointed out by Dave Anderson.
602 16Dec02
603 - Started adding FileOptions ...
604 - Fixed  and incorrect print out of the number of files restored (Jarif).
605 - Finally fixed EndBlock (and file address for Files) in catalog!
606 - Added hostname to tape header as always planned.
607 - Removed Level code (will not implement unless strong demand exists).
608 - Tweaked bscan to print number of errors ignored before first SOS.
609 - Enhanced btape "fill" to permit using one tape and to dump last
610   block before writing and upon read back.
611 - Make fsf_dev() return 0 on fail and 1 on success.
612 - Use new db_get_job_volume_parameters() to enhance Write Bootstrap to
613   contain more info (start/end file/block, file indexes).
614 - Added --enable-static-fd, sd, and dir to configuration to enable making
615   static versions of the daemons.
616 13Dec02
617 - The btape test program was indicating errors on Adrian's machine
618   using the ATAPI (ide-scsi) tape drive. It turns out that this
619   is a fixed block driver as a consequence, Bacula must be setup
620   to write fixed blocks. btape was not always using the fixed
621   blocks defined in the Bacula config, so that has been updated.
622   It now works fine. A lot of tips added to the Bacula test command 
623   to help guide the user.
624 - Documentation of the above significantly improved in the manual.
625 12Dec02
626 - Added code in watchdog to permit setting and clearing child timers. If
627   the timer expires, the child process is killed.
628 - Modified restore to handle differential jobs.
629 - Added a new test to the btape "test" command
630 09Dec02
631 - More documentation of new features (week position in scheduler, bsr).
632 - Re-read last block written on full tape to verify it.
633 - Fix segmentation fault with btape fill command due to missing FileSet MD5.
634 07Dec02
635 - Created better SQL input editing routines str_to_int64 and str_to_uint64()
636 - Pull Client from database in Console restore command.
637 - Create a Unique list of Volumes to be mounted (previously had repeats).
638 - Made many of the SQL searches better by using the ClientId rather than the name 
639   in the restore Console command.
640 - Modified reading of a tape to include the VolFile info. Once the
641   tape is past the specified file, reading stops.  The BSR now includes
642   both the VolFile and VolBlock. Currently VolBlock is not used.  
643 - Handle multiple volumes better by creating a real volume list with all
644   parameters in it.
645 - Display "At prompt waiting for input" in gnome console when at subcommand   
646   prompt.
647 - Broke ascii to internal and internal to string editing routines out into
648   new lib/edit.c file.
649 02Dec02
650 - Added a readme and an afs-bacula script to the examples directory
651   that permits Bacula to backup an AFS filesystem. Thanks to
652   Lucas Mingarro for the submission.
653 - Added A Sun-desktop autoloader script and Device definition to the
654   examples/devices subdirectory.  Thanks to Lucas Mingarro for the
655   submission.
656 - If the WriteBootStrap fails, the job will now be marked in error.
657 - Added a week position to the scheduler syntax that allows you to
658   specify 1st, 2nd, 3rd, 4th, or 4th, or first, ... fifth as a week
659   position specification in front of a day. So if you say
660
661     1st sun ...
662
663   the scheduler will start only on the first sunday of the month.  The
664   day specification can also be a day range e.g. sun-fri.
665   This code is untested.
666 - Implemented bpipe.h and bpipe.c in src/lib, which defines a bi-directional
667   pipe.  This allows executing other programs and sending them information
668   as well as getting info from them.   
669 - Replaced the previous pipe usage with bpipes in RunBeforeJob and   
670   RunAfterJob.
671 - The mail program now uses bpipes rather than pipes, which means that any
672   error output will appear in the job output (truly bi-directional).
673 - Modified BSR to handle counts and to stop when no more matches are possible.
674   This is untested.
675 - Improved error messages in smtp.
676
677 =============================================================================
678 2002-12-12 Version 1.27d
679 - This is a minor update that fixes a segmentation fault in btape
680   as well as reduces non-important error messages in bscan.
681
682 2002-11-29 Version 1.27c
683 - Yet another silly error duplicating a column name in the SQLite
684   make tables.  No code change, just a make file.
685
686 2002-11-29 Version 1.27b
687 - Set DB version to 5 in DB make files.
688
689 2002-11-28 Version 1.27a
690 - Use g++ instead of gcc for testfind in tools 
691
692 2002-11-27 Version 1.27 (26Nov02) released 28 November 2002
693
694 General: from kes25Nov02
695 - Mostly Cygwin changes
696
697 Changes submitted this submission:
698 - Updated bdb_find.c to have new calling sequence for db_find_job_start_time
699 - dird/catreq.c edit in Volume name in error messages to SD
700 - attribs.c switch to using the cygwin API to convert from POSIX paths
701   to Win32 paths. This now permits Win32 path specifications in Include
702   statements (all combinations not yet tested).  It also avoids the large
703   number of errors seen by Lutz if a Win32 path is specified in the Dir.
704 - Update testfind help and remove set_attribsEx debug code.      
705 - Build testfind as default.
706 - Turn off debug message in stored/askdir.c
707
708 General: from kes21Nov02
709 - Another change in the database. You MUST either re-initialize
710   your database or use the appropriate ./alter_xxx_tables in
711   the src/cats directory.
712
713 Changes submitted this submission:
714 - Additional documentation.
715 - Added MaxVolFiles to the database (not yet implemented in code).
716 - Increased the database version from 3 to 4.
717 - Change VolMaxBytes to MaxVolBytes, which is much more descriptive.
718 - Compressed unnecessary spaces out of a lot of SQL statements.
719 - Changed many %d to %u where unsigned integers are used.
720 - Added the Bacula version and build date to each backup output.
721   This will help knowing what version of Bacula was used.
722 - Implemented VolUseDuration MaxVolBytes, MaxVolFiles, and MaxVolJobs
723   based on maximums set in the Volume (Media) record rather than in the
724   resource. This means the values can be individually set on a Volume basis.
725 - Allow commas separating Include options (this was a subtle bug).
726 - Added maximum string length argments to a number of subroutines to
727   prevent buffer overflows. Most notably was do_prompt().
728 - Replaced MANY occurrences of strcpy() with bstrncpy(), which guarantees
729   both that the length is not exceeded and that the string is properly terminated.
730   This has a risk of a certain destabilization -- as does the changes to
731   the SQL noted above.
732 - In cram-md5 routine use my_name if gethostname() returns an error.
733 - Increase timeout from 2 minutes to 3 minutes in authorization code.
734 - Check the full string including \n in authorization.
735 - Throw away any response longer than MAXSTRING.
736 - Added a number of additional error checks on subroutine return statuses.
737 - Replaced as many lld's with edit_uint64 as I could find.
738 22Nov02:
739 - Added MaxVolBytes to Pool record - had forgotten it. Updated DB version.
740 23Nov02
741 - Update manual to document new Pool/Volume attributes
742 - Correct make_sqlite_tables (typo, plus missing value in Pool)
743 - Fix bizarre behavior in gnome-console and console when auth fails.
744 - Add Pool attribute query
745 - Add a few more error messages in askdir.c
746 - More strcpy() conversions to bstrncpy().
747
748 General: from kes18Nov02
749 - Did a number of cleanups of string copying to limit the length
750   and prevent buffer overflows.
751
752 Changes submitted this submission:
753 - Added a mutex arount the gethostbyname() so that multiple simultaneous
754   jobs get the correct address.
755 - Added the MaxVolJobs to the Media alter tables script for MySQL (forgot it).
756 - Changed arg to db_find_job_start_time to be POOLMEM for returning the string.
757 - Add the new VolUseDuration and MaxVolJobs to all the db_ routines.
758 - Use bstrncpy() in most places in the db_ routines to prevent a bad 
759   database from crashing Bacula (self protection).
760
761 General: from kes13Nov02
762 - You MUST either re-initialize your databases or use the 
763     ./alter_mysql_tables
764   or  
765     ./alter_sqlite_tables
766   in the <bacula-src>/src/cats directory to modify your database tables.
767 - Major improvements to dbcheck including an interactive mode.
768
769 Changes submitted this submission:
770 - Implemented VolumeUseDuration and MaximumVolumeJobs which control
771   when a tape can be marked Used.
772 - New tape status "Used" means it was used and cannot be used any more.
773 - Defined utime_t which is 64 bit epoch time in seconds.  btime_t is
774   64 bit epoch time in microseconds.
775 - Created alter_xxx_tables to add new columns (VolUseDuration, MaxVolJobs) to
776   database. Incremented db version.
777 - Changed a few subroutine names concerning dates to be more descriptive.
778 - Fixed several places where the last filename was not stored in JCR in
779   FD verify_vol.c and restore.c
780 - Major update to dbcheck.  Unfortunately I used subselects, which work
781   perfectly fine in SQLite, but not at all in MySQL.  I must now rework
782   it for MySQL. What a pain!
783 - Removed "Database found" from configure output. It was no longer used or valid.
784 - Corrected doc --working-dir => --with-working-dir  Thanks to Tuck for 
785   reporting this.
786 - Added the database name to the error message for mismatched DB version.
787 - Commented out GMP and CWEB from configure as they are not currently used.
788
789 General: from kes09Nov02
790 - Converted the manual over to a new format written in wml. This
791   gives navigation buttons on the top and bottom of each page
792   as well as a standard page size.
793 - Updated the main Web site, providing a menu bar to the left
794   and much better organization and presentation of the information.
795 - Added code to recognize a Volume written with a larger block
796   size than specified. The code automatically adjusts. 
797
798 Changes submitted this submission:
799 - Created a new scripts directory and moved most of the scripts
800   previously in the main directory there. This cleans things up
801   quite a bit.
802 - Moved the randpass stuff into autoconf.
803 - ensure that the generic make_bacula_tables and drop_bacula_tables
804   are installed.
805 - Added code to filed to allow it to be run from inetd.  Just add the
806   -i option.  I have not tested it.
807
808 General: from kes30Oct02
809 - Alex found a problem with GZIP compression -- fixed.
810 - bacula stript fixes.
811 - Segment fault in Director fixed.
812 - Added openbsd to platforms
813
814 Changes submitted this submission:
815 - GZIP compression was broken for large files due to a variable that
816   is changed during the compression. This was relatively easy to fix.
817   However, there were a number of fixes required to make GZIP and SPARSE
818   files work together. Found one more place in bextract where SPARSE_GZIP
819   testing was missing.
820 - During testing of the above, I ran into the restore problem of multiple
821   FileSet records. Fixed by including the FileSetId and the MD5 on the
822   selection string, then always using the FileSetId. It is a bit
823   confusing for the user, but ...
824 - Francis found a problem with bacula.in (fixed - thanks)
825 - I found another problem with bacula.in, so now it REALLY should work
826   on most systems.
827 - Added the Replace options code for restores. Not tested.
828 - Fixed an ugly stack overrun bug in reading the config file
829   that has been in for a long time.  I found this in testing on FreeBSD
830   where the Director seg faulted.
831
832 General: from kes29Oct02
833 - Major change to the bnet communications routines.
834
835 Changes submitted this submission:
836 - Modified the bacula script to use pid files, so this script should
837   now work on more platforms.  Updated devel_bacula as well.
838 - Added the full GNU hostname on the configuration print output.
839 - Added gettimeofday() to configure, and tweaked a few variables for
840   OpenBSD.
841 - Added a chapter to the manual on Porting Bacula to other platforms.
842 - Documented in Tips how to use the WriteBootstrap record.
843 - Modified bc_types.h to error if 64 bit types are not found.
844 - Pass replace option for restore to the FD (no code to use it yet).
845 - Modify the FD to pass back the GNU OS string as well as the DISTNAME
846   and DISTVER. This needs to be put in the Client record in the catalog.
847 - Major reworking of the bnet routines to eliminate the zero length which
848   previously indicated a signal. This risks to create some subtle communications
849   bugs.  The changes now permit blank lines to be sent from the user to the
850   Director.
851 - Found and corrected a few more places where the Win32 attributes were not
852   being recognized.
853 - Permit spaces in the Where string (restore) by bashing/unbashing them.
854 - Handle quotes correctly in the Console program (actually Dir ua code).
855   Previously they were not handled in the middle of a string.
856 - Corrected two error message (error reading file), which previously stated
857   it was a network error.
858 - Reworked the files in the binary Windows release. Removed unused programs 
859   and added a README with the copyright as suggested by John. Also added
860   console.exe to the release.
861 - Found and corrected an autoloader mount problem where the wrong tape
862   was specified.  Previously it looped, then gave up.  Now it correctly
863   detects the volume is not correct and zaps the Slot in the catalog.
864
865 General: from kes23Oct02
866 - I have mainly worked on getting all the details of a Restore
867   to work correctly (new tape format, support for Win32 
868   attributes, ...)
869 - Trademarked name Bacula.
870 - Implement Bacula tape format 11 (1.0 Immortal). This format
871   will be maintained forever.
872 - Accept Any Volume is yes by default. This modifies Bacula's behavior
873   when writing tapes.
874
875 Changes submitted this submission:
876 - Corrected a bug on FreeBSD where CFLAGS would get a "yes". I was
877   unable to reproduce this, but a user confirmed the correction.
878   It was a problem with detection of largefile support, which FreeBSD 
879   has by default.
880 - Added a new "license" chapter in the manual. Re-licensed a number of
881   library routines (bnet.c, hmac.c md5.c, cram-md5, ...) with LGPL so that they
882   can be used in proprietary software to access Bacula if so desired.
883 - Move Director's AutoChanger doc to correct location (in Storage      
884   resource). 
885 - Document why trademark (to protect compatibility).
886 - Implement and turned on Bacula tape format 11 (also BB02). This
887   format moves the VolSessionId and VolSessionTime from each record 
888   header into the Block header. This is MUCH more efficient when reading
889   records as now whole blocks can be skipped.   
890   Also added JobStatus in End Of Session record, and added MD5 for
891   FileSet, which is necessary to insure uniqueness.
892 - Implement a new Bacula time format for btime_t. It is Epoch time
893   in microseconds (i.e. base 1 Jan 1970 in microseconds).
894   This replaces previous floating point times.
895 - Added Win32 extended attributes. In doing so, I moved all attribute
896   handling from src/lib into src/findlib.  Added new streams for 
897   Win32 attributes and for GZIP Win32 attributes.
898 - Modified "Accept Any Volume" so that it really permits any volume
899   in the pool to be mounted.  
900 - Removed "Mount Anonymous Volumes" from Storage daemon config.
901 - Implemented sparse files. You must add "sparse=yes" on the include line
902   for it to be enabled.
903 - Print "None" in backup summary rather than 0.0% if there is no compression
904   enabled.
905 - Improved error checking in daemon connection/authentication code to prevent
906   garbage data from harming a Bacula daemon.
907 - All daemon tools MUST have a config file.
908 - Completely strip drive specification on Win32 if a Where prefix is specified.
909 - Corrected DB info for writing to files. Now the File Address is stored
910   in File-Block variables in the catalog.
911 - All Storage daemon tools now use common code for acquiring/reading
912   Volumes.
913 - If a device is unmounted, report it even if the device is not open. This
914   will help inform users who have BLOCKED Bacula by unmounting a drive.
915
916
917 =============================================================================
918 2002-10-12 Version 1.26 (10Oct02)
919 General: from kes10Oct02
920 - Changed Job name conventions to avoid : which is an illegal
921   character on Windows.
922
923 Changes submitted this submission:
924 - Added check for inet_pton to configure.in. If it does not
925   exist (e.g. Windows) use inet_aton
926 - Documentation on GZIP.
927 - Another restore doc example.
928 - Documented btape fill command.
929 - Set default restore directory from /tmp to /tmp/bacula-restores
930 - Add additional no find error messages to sql_get.c
931 - Creating a bootstrap file on Windows failed because the Job name
932   contained colons which are illegal on Windows. Replaced the
933   colons with periods.  This corrects the Windows restore problem.
934 - Print number of files to be restored in "restore" command.
935 - On Windows systems, if there is a prefix, completely eliminate
936   any drive: at the beginning of a path.
937 - Minor corrections to the tree routines to handle Windows
938   files such as c:/ better. Previously it insisted on /c:/, which
939   would then not be found in the catalog for a "dir" command.
940 - Modified cd command in restore to try /c: if c: fails.
941 - Add a new S_ISWIN32 bit to the st_mode word so that low level
942   routines that create files do not print error messages.
943 - More work must be done to restore all Windows files correctly.
944   Currently the following bits are not handled:
945     Archive
946     Hidden
947     System 
948   Also, all the dates are not properly restored.
949
950 General: from kes09Oct02
951 - More documentation.
952 - Implemented new fill command in btape that permits filling
953   a tape and then reading it back to ensure that it works
954   with Bacula.
955
956 Changes submitted this submission:
957 - Added ReadBytes to JCR, which contains Job bytes read by
958   FD, JobBytes contains compressed output of FD.
959 - Modified FD to pass back JobStatus, ReadBytes, JobBytes, ...
960   for backup jobs.  This is upward compatible.
961 - Modified backup termination status report to contain the
962   compression ratio 100 * (1 - compressed-bytes/uncompressed-bytes)
963   This will always be zero if no software compression was
964   done, or if you are using a version 1.25 or older FD.
965 - Pickup Job termination status of FD in backup, so now
966   the termination status represents the state of all three
967   daemons.
968 - Implemented new fill command in btape that permits filling
969   a tape and then reading it back to ensure that it works
970   with Bacula.
971
972 General: From kes06Oct02
973 - Implemented first major cut of bscan -- program to scan a tape
974   and recreate a Bacula catalog.
975 - Fixed lseek() relative negative seek that prevented writing multiple
976   jobs to a File volume.
977 - Implemented BB02 tape format -- currently turned off for writing.
978
979 Changes submitted this submission:
980 - Updated README
981 - Implemented new BB02 tape format, which moves the VolSessionId and
982   VolSessionTime from the record headers into the Block header.  It
983   is currently turned off.
984 - Implemented new btime time/date format on the tape. This is currently
985   turned off.
986 - Added JobStatus to EOS tape label. This is currently turned off.
987 - Changed start_block, ... to StartBlock in JCR for uniformity.
988 - Print a message telling which tables were dropped/made with  
989   ./drop_bacula_tables.
990 - Return JobType and JobLevel in db_get_job_record().
991 - Implemented get_current_btime(), which returns btime_t.
992 - Bump debug message max size to 2000 bytes.
993 - Add btime_t serial/unserial routines.
994 - Rework all tape label routines to integrate btime and other
995   label format changes (currently turned off -- for writing).
996 - Fix lseek() to always be positive -- block.c
997 - Consolidate record, block, and label major #defines in block.h.
998 - Major implementation of bscan. Some more minor tweaking will be
999   necessary.  E.g. add multiple records for multiple simultaneous
1000   Jobs.
1001 - Cleanup lseek() to always use off_t as second argument.
1002 - Add new "created" tape label (EOT_LABEL). This generates a callback
1003   to the read_records() routine when the final end of all tapes is
1004   reached allowing proper termination and updating of the media records.
1005
1006 General: From kes25Sep02
1007 - Added means to bind servers to specific address.
1008 - Documentation
1009
1010 Changes submitted this submission:
1011 - Added DirAddress, FDAddress, and SDAddress records to the corresponding
1012   resources that allow the server to bind to a specific address 
1013   rather than any address.  This security improvement was suggested by
1014   a user -- thank you.
1015 - Eliminated deprecated "Address" record from all sample Storage resources.
1016 - Made quite a lot of improvements to the bscan program. Much more
1017   to do. Aside from details, it is able to recreate a database
1018   from which you can do a restore.
1019 - The s option is not accepted on all versions of ar, so replaced it
1020   by an explicit ranlib call.
1021 - Fixed a bug that caused the Director to crash if you rudely bring
1022   down the console program in the middle of an SQL command.
1023 - Fixed a bug (missing break) that caused scheduled Admin jobs to
1024   be listed as "Unknown type".
1025 - Removed old code from Storage daemon that used a separate FD port.
1026
1027 General:  From kes14Sep02
1028 - Better key generation on non OpenSSL systems.
1029 - 64 bit file address support if available.
1030 - Implement autochanger for reading
1031 - Lots of cleanup of tape reading code.
1032 - Automatically create all Pool resources when Bacula starts.
1033 - Implement bscan.c
1034 - Implement autochanger use via the Console commands "add" and "label"
1035 - Begin implementation of a regression script 
1036 - Write bootstrap after ever job
1037
1038 Changes submitted this submission:
1039 - After noticing that the non OpenSSL random key generator was
1040   not good on Solaris, John wrote a very nice randpass generator.
1041 - Integrated John's makeSessionKey for generating the FD->SD
1042   authorization.
1043 - Statically link tools (doesn't work on Solaris).
1044 - Document how to debug Bacula (new chapter in the manual)
1045 - Remove unneeded printing of error message in sql_get.c
1046 - Free SD description config record (previous oversight)
1047 - Bash spaces when sending Director names, and unbash them when 
1048   received.
1049 - Ensure no divide by zero in rate computation in backup.c
1050 - Implement WriteBootstrap in backup.c
1051 - Allow tape reading to request volume information for any
1052   volume.
1053 - Create all Pool resources at startup.
1054 - Show only Backup jobs in Restore listing of last 20 Jobs.
1055 - Handle 64 bit stat packets in restore.
1056 - Don't do shell expansion on store_dir in config if string 
1057   starts with |.  This is used for piping the program for the
1058   WriteBootstrap.
1059 - Ignore SIGHUP -- DéjàGnu was triggering this. 
1060 - Implement autochanger for reading, many changes to 
1061   acquire_device_for_read()
1062 - Implement callback for reading Volume. Implement in bextract,
1063   bls, and bscan.
1064 - Implement bscan
1065 - Add count to bsr.
1066 - Fix Volume in bsr.
1067 - Move autochanger code to new subroutine in mount.c
1068
1069 =============================================================================
1070 2002-09-05 Version 1.25a (05Sep02) Released
1071 - Fix unitialized stack variable in bextract so it
1072   will always read the currently mounted tape.
1073
1074 =============================================================================
1075 2002-09-04 Version 1.25 (01Sep02) Released
1076   General:
1077 - Added .cvsignore files in each directory to cut down on the
1078   CVS output when scanning directories and finding Makefiles
1079   and such which are not part of the CVS tree.
1080
1081   Changes submitted this submission:
1082 - Cleaned up a lot of the error messages in Verify, including
1083   indenting.
1084 - Had to remove some of the "automatic" error message printing
1085   in the DB because they are in fact things that come up 
1086   for Verify but not really errors.
1087
1088
1089   2002-08-30 Version 1.25 (30Aug02) Beta
1090   From kes30Aug02
1091 - Fixed a bug where only the first file was restored if
1092   it is hard linked. The other links were lost.
1093 - In some cases of restoring to alternate directories, softlinks
1094   were not properly restored.
1095
1096   From kes28Aug02
1097   General:
1098 - Bacula backups now run up to 12 times faster than version 1.24
1099 - Bacula can run multiple simultaneous Jobs.
1100 - Had to turn off TRANSACTIONS in SQLite because it doesn't work
1101   with multiple simultaneous jobs (I'm working on this).
1102 - Added a better Job printout for Restore Jobs.
1103 - Added a save/restore Rate to backup and restore jobs. This
1104   does not yet subtract out operator wait time so it will be
1105   underestimated it the Job waits on the tape (mount/label).
1106 - Fixed a major bug caused by free()ing a buffer twice in
1107   the Restore code. This made the SD more or less useless after
1108   any restore Job. Arrggg!
1109 - DIR - SD protocol changed, both must be updated at the same time.
1110 - DIR - FD protocol changed in upward compatible way. Upgrade of   
1111   FD not required, but recommended.
1112
1113   Changes submitted this submission:
1114 - Added bell to "make" when errors are detected.
1115 - Changed default compile option from -g to -g -O2
1116 - Additional documentation as usual -- much based on questions or
1117   feedback from users. Thanks.
1118 - Fixed example config files to use new syntax and to have a 
1119   Restore Job.
1120 - Define ETIME to ETIMEOUT for Irix
1121 - Added JCR filed to DB structure permitting direct printing error
1122   messages from within the Database subroutines.
1123   Some error messages may be printed twice as a consequence.
1124   When I see them or someone reports them, I will remove the double.
1125 - Added JCR to the bsock structure. This allows direct printing
1126   of network errors from within the network code.
1127 - Made most "trivial" debug messages have level 100 or greater. This
1128   allows for easier debugging of new code using the range below 100.
1129 - Began replacing all Emsg() with Jmsg() using a NULL as the JCR in    
1130   Jmsg() is the same as Emsg().
1131 - Fixed several crashes in the Director because of malformed config files.
1132 - Added SpoolAttributes to Job resource.
1133 - Pass CatalogFiles to SD. If set to no, the attributes are dropped 
1134   within the SD rather than being sent to the DIR.
1135 - Cleaned up a number of information/error messages in user interface.
1136   This includes eliminating the "pretty please" response in favor of
1137   "yes/no" to delete volumes and pools.
1138 - Cleaned up quite a number of uninitialized variables reported when going
1139   to -O2, most were harmless, but a couple could cause problems.
1140 - The cd command in restore was not working correctly (it didn't allow some
1141   legal cds).
1142 - Fixed a segmentation violation in the directory tree handling code in 
1143   the restore command.
1144 - Handle a few error conditions in the restore command better.
1145 - Permit "Where" to be set to nul in modification of a run command.
1146 - Clarified the error message for Verify if an InitCatalog has not previously
1147   been done -- thanks Chuck.
1148 - Add MaximumConcurrentJobs to FD.
1149 - Added code to mem_pool to die if a buffer is released twice.
1150 - Lots of work done on SD for multiple simultaneous jobs. Split device.c
1151   into device.c, mount.c and acquire.c
1152 - Started writing new lock code for SD, but may back it out -- needs more
1153   thought. Current code works, but is too complicated. Maybe can simplify it.
1154 - Cleaned up the SD tools code quite a bit. Added bootstrap to all tools.
1155 - Ensure that tape session labels are not split across two blocks. This makes
1156   reading them back much easier.
1157 - Fixed another restore bug concerning tape labels on multi-volume saves.
1158
1159 =============================================================================
1160 2002-08-14 Version 1.24
1161   From kes12Aug02
1162 - Made a new tools directory.
1163 - Moved smtp into the tools directory.
1164 - Created a dbcheck program in the tools directory that
1165   checks for certain database errors and if requested fixes them.
1166 - Put the database link flags on DB_LIBS so that it now only is
1167   on binaries that actually need it.
1168 - Document dbcheck and testfind programs.
1169 - Move testfind to tools directory.
1170 - Check for FileSet after getting Client name in Restore command.
1171   Modify all necessary SQL commands to accept FileSetId.
1172 - Add a db_get_fileset_record in cats directory.
1173 - Correct list last 20 files concatenation to be MySQL 
1174   dependent. They aren't SQL standard. Use SQL standard || for
1175   other SQL programs.
1176 - Modify dir command in file selection to produce a long form
1177   listing of the file/directory name.
1178 - Add platforms/irix/*.in files to CVS
1179 - Make Console command scanner accept quoted value fields.
1180 - If after selecting Client to restore, there are multiple
1181   FileSets, ask user to select one.
1182 - After obtaining JobIds for restore, ensure that there is only
1183   one MediaType, and select a Storage resource to be used.
1184
1185   From kes11Aug02
1186 - Made restore actually work.
1187 - Made console and gconsole be configured (requested by Chuck)
1188 - Updated kernstodo
1189 - changed fs in Job record to fileset for clarity
1190 - The console run command was not properly picking up the command
1191   line arguments.  Fixed!
1192 - Changed add/remove/rm to mark/unmark
1193 - Volume keyword VolumeName was wrong, changed to Volume (in restore bsr).
1194 - Pass jcr to parse_bsr, and if non-NULL, it will output error messages
1195   to Job stream rather than Emsg.
1196 - Modified lexical scanner to include caller context so that jcr can
1197   be stored in lex context allowing error messages to be properly 
1198   routed.
1199 - Renamed the Job message chain to be jcr_msgs. This eliminated the      
1200   previous confusion with the default value, now named jcr->messages.
1201 - Implemented multi-volume bsr records.    
1202 - Implemented pm_strcat() and pm_strcpy() to cat/add to memory pool
1203   buffers in same way as strcat/strcpy, but expanding buffer.
1204 - Modified db_get_volume_names to handle arbitrarily long Volume list.
1205
1206   From kes07Aug02
1207 - If the Console program terminated during the printing of messages,
1208   the message file was left locked. This was corrected by using the
1209   new read-write lock code.  
1210 - Implemented Pw() and Vw() for obtaining and releasing a write lock
1211   using the rwl_xxx routines.
1212 - Deleted some old pthread_mutex code from mysql.c
1213 - In making the Irix port, I previously corrected the base64 routine so 
1214   they were not sensitive to the machine definition of char. This made
1215   them incompatible with previous versions invalidating MD5 signatures
1216   which are in base64 format. I have now corrected this, making the
1217   routines compatible with the previous version but also insensitive
1218   to the default definition of char.
1219 - Removed some unnecessary NPRT() usage in signal.c (pointed out by
1220   the Irix compiler).
1221 - Add back BNET_NONO for compatibility with older File daemons.
1222 - Implement runing a restore Job in the restore command.
1223 - Make installation of query.sql unconditional. To prevent you own file
1224   from being overwritten, give it a different name.
1225 - Made parse_command_args() in ua take command from ua->cmd, this
1226   simplifies it and allows usage in other places -- e.g. building
1227   arguments for created run command in restore.
1228 - Cleaned the naming of s_full_ctx to be s_jobids.
1229 - Write the bsr created in restore to "working-directory"/restore.bsr
1230 - Fix bugs in command line scanner in run command -- also some misplaced
1231   breaks!
1232 - Eliminate static cmd in ua_server.c
1233 - Eliminate segmentation fault when using the Run command in the
1234   Console -- forgot to init_msgs().
1235
1236   From kes06Aug02
1237 - Did a good amount of documentation.
1238 - Added sql_cmds.c to CVS, forgot, pointed out by Chuck.
1239 - Added new platforms/irix directory to CVS
1240 - Turn off transaction debug code in sql.c
1241 - Reworked the scheduler so that it handles the same Job starting
1242   twice in the same hour. Previously it took one or the other.
1243 - Tightened up the "slop" in the timings that I programmed to ensure
1244   that the same job isn't run twice or that no job was missed.
1245 - Increase the sleep time.
1246 - Used job_type_to_str() in status so that Admin jobs are correctly reported.
1247 - Add internationalization message chars to a number of routines
1248   in util.c
1249 - Make the watchdog timer clear the mutex when it exits.
1250 - Some tweaks to the Restore command. It needs fixing when a Job spans
1251   two or more volumes.
1252
1253   From kes05Aug02
1254 - Initial cut at adding Irix File daemon support.
1255 - Lots of work on the restore command.
1256 - Take a stab at eliminating the "broken pipe message"
1257   when the console program prematurely terminates.
1258 - Reimplemented transactions for SQLite by keeping
1259   them all in the same thread.
1260 - quit in the Console program now waits for Bacula to
1261   quit. To immediately quit, you must enter .quit
1262 - Eliminated BNET_EOF -- this COULD have some negative consequences
1263   on interdaemon communications.
1264 - Define Job termination status for Admin jobs.
1265 - Write new bstrncpy() function that guarantees that strcpy is
1266   properly terminated.
1267 - Fixed command input in ua_input.c to accept quoted items as a
1268   single field. 
1269
1270   From kes01Aug02
1271 - The changes that added indexes to the SQLite database were
1272   lost -- thanks to Chuck for pointing this out. Redone.
1273 - Fixed a problem quoting strings in SQLite. This showed up
1274   as database errors with files containing ' or " in the filename.
1275 - Implemente restore command -- still in progress.
1276 - Added indexes to all fields in SQLite that exist in MySQL.
1277 - Moved unused immortal files from src/lib to src/immortal.
1278   This will permit splitting depkgs.
1279 - Started work on adding embedded MySQL. Cannot get the tables
1280   to work for the moment. Please don't try to use this option.
1281 - Convert to using single quotes for enclosing all strings.
1282 - Implement correct quoting algorithm for SQLite strings.
1283   Is dequoting needed?
1284 - Started centralizing SQL statments in the Director in sql_cmds.c
1285 - Changed a number of M_ABORTs to M_ERROR_TERM so that program terminates
1286   but does not produce a dump.
1287 - Allow wild-card matches in bsr for Client name, and Job.
1288 - Change OflineOnUnmount=no as default.
1289 - Fixed improper printing of filenames containing a space in bls.c
1290   Thanks to Carlos for reporting this.
1291
1292 ===========================================================================
1293 2002-07-26 Release 1.23a
1294 - Fix segmentation fault is FD status.
1295 - Turn off TRANSACTIONs for SQLite.                        
1296
1297 ===========================================================================
1298 2002-07-23 Release 1.23
1299   From kes22Jul02
1300 - Updated Bacula to handle some minor differences in MySQL 4.0.2
1301   (still works with older MySQLs).
1302 - Updated MySQL documentation to correct some minor errors.
1303 - Added kernstodo to CVS
1304 - Fixed create_mysql_database, which I recently accidently broke.
1305 - Disallow zero length volume names in Console program.
1306 - Create alter_mysql_tables and alter_sqlite_tables for conversion
1307   from 1.22 table format to 1.23 table format.
1308
1309   From kes20Jul02
1310 - Investigation of SQLite performace problems reported by Chuck.
1311 - Updated ChangeLog
1312 - Updated README
1313 - made root@localhost the default email address because many smtp
1314   servers reject root but accept root@localhost
1315 - Added an autochangers chapter to the manual.
1316 - Documented most of the new features in 1.23
1317 - Modified the SQLite interface code to start a transaction at the
1318   beginning of a job and commit it at the end of the job. It
1319   also commits it after 10000 changes. Hopefully this will
1320   improve performance.
1321 - Set the default cache pages from 2000 to 10000 for SQLite (i.e.
1322   about 15Megs of memory) hoping to improve performance.
1323 - Terminate last filename referenced in FD prior to copy to
1324   avoid race problem with multiple threads and no locking.
1325 - Enhanced the status output to include the JobType                
1326 - Print an error message if the email program terminates in error.
1327 - If your machine has an MTUNLOCK, do it before doing an OFFLINE to
1328   ensure that the door is unlocked.
1329 - Added code to stored/append.c to spool attributes. This is in
1330   a testing stage and must be explicitly enabled.
1331 - Added a no_attributes variable to stored/append.c that prevents
1332   the attributes from being sent to the Director. As yet, no way
1333   to turn it on.
1334 - Modified SQLite code so that after 10000 updates any transaction
1335   is committed, then restarted. This keeps it from using too much
1336   memory.
1337 - Set the default cache size to 10000 pages (previously 2000).
1338 - Fixed a segmentation fault on Sun due to no default value for
1339   the JobStatus.
1340 - Added the same indexes to SQLite that I exist in MySQL. This
1341   VASTLY reduces CPU usage for lots of inserts.
1342 - Added spooling to bnet_send().
1343
1344   From kes18Jul02
1345 - The following two changes were prompted by questions/suggestions
1346   from A Morgan.
1347 - If you have "AlwaysOpen = no" in your SD Device
1348   resource, Bacula will free() the drive when it
1349   is finished with the Job.
1350 - If you have "Offline On Unmount = yes", in your
1351   SD Device resource, Bacula will offline (or eject)
1352   the tape prior to freeing it.
1353 - Added Maximum Open Wait to allow open() to wait if drive is busy.
1354 - Added RunBeforeJob and RunAfterJob records to Job records.
1355   This permits running an external program with the following editing
1356   codes:
1357     %% = %
1358     %c = Client's name
1359     %d = Director's name
1360     %i = JobId
1361     %e = Job Exit
1362     %j = Job
1363     %l = Job Level
1364     %n = Job name
1365     %t = Job type
1366
1367   From kes17Jul02
1368 - Added autochanger support to devices.c
1369 - Allow user to change Slot in the Volume record.
1370 - Implemented code in lib to run an external program
1371   (tape changer)
1372 - Implemented a changer script for mtx.
1373 - Currently the changer commands used are:  
1374     loaded -- returns number of slot loaded or 0
1375     load   -- loads a specified slot
1376     unload -- unloads the device (returns casette to slot)
1377 - Other changer commands defined but not yet used:
1378     list   -- returns list of slots containing a cassette
1379     slots  -- returns total number of slots 
1380 - Implemented ChangerCommand, specified in the SD Device
1381   resource, permits editing of:
1382       %% = %
1383       %a = archive device name
1384       %c = changer device name
1385       %f = Client's name
1386       %j = Job name
1387       %o = command
1388       %s = Slot base 0
1389       %S = Slot base 1
1390       %v = Volume name
1391 - Implemented MaximumChangerWait default 120 seconds. It is 
1392   specified in the SD Device resource.
1393
1394   From kes15Jul02
1395 - Moved techlogs from main directory to be subdirectory of doc
1396 - Added code for strerror_r, and detection of gethostbyname_r().
1397 - The protocol between the Director and the SD has changed.
1398 - Major rework of SD tape mounting to prepare for Changer commands.
1399 - Separated Update Media record and Create JobMedia record. These
1400   are done from the SD by calling the Director. Need separate Create
1401   JobMedia so that when a Job spans a volume, all other Jobs writing
1402   the same volume will also have JobMedia records created.
1403 - Added message to user indicating selection aborted if he enters .
1404   to a Console selection request.
1405 - Create a jobstatus_to_ascii() routine for use in status commands.
1406   This makes a single routine from three separate pieces of code.
1407   Updated the code to properly handle more (all) termination statuses.
1408 - Tried to fix the gnome-console to handle history a bit better. There
1409   are still some problems with focus not being properly set to the edit
1410   box after history replacement.
1411 - Removed the shutdown() from bnet_close() hoping to fix Console termination
1412   errors that are occassionally seen -- no luck.
1413 - Moved add_str() to lib/util and renamed it add_str_to_pool_mem() so that
1414   it can be used to edit Job termination codes and Changer command codes.
1415 - Reworked how the SD mounts tapes (in device.c) so that control passes through
1416   only a single routine. The logic is much simpler than previously, and now
1417   adding AutoChanger code is straight forward.
1418 - Made SD tape mounting much more fault tolerant -- more cases retry instead
1419   of terminating the Job.
1420 - Wrote code to edit_device_codes() for Changer commands. Not yet fully     
1421   implemented.
1422 - Added a ChangerDevice directive to the Device resource. Still need to add
1423   ChangerCommand.
1424
1425   From kes07Jul02
1426 - This documents what I did while on vacation. 
1427 - A fair amount of documentation.
1428 - Implemented Verify Volume to Catalog (needs renaming)
1429 - Modified the database to include new MarkId field as
1430   well as Counters. Database level is incremented from 1 to  2.
1431 - Added first cut of managing autochangers by implementing Slot in DB.
1432 - Fixed a good number of M_ERROR messages to be M_FATAL where appropriate.
1433   Also converted a number of Emsg() to Jmsg() permitting better Job error
1434   messages.
1435 - First cut at implementing a general packet passing mechanism for bsock
1436   to replace printf and sscanf for passing data.     
1437 - Made make_xxx_tables and drop_xxx_tables and create_xxx_database
1438   for bdb as well as sqlite. With this each database has the
1439   same set of scripts (with the exception that MySQL has grant_privileges).
1440 - Modified Makefile to only install the database scripts for the
1441   database that you are using.
1442 - Updated the pdf script to include all the html files.
1443 - Did quite a lot of documentation.
1444 - Made Bacula compile correctly with DEBUG turned off.
1445 - Implemented Pmsg() macros that permit using the debug print
1446   routines even with DEBUG off.
1447 - Updated job_cancelled() macro to handle JS_FatalError.
1448 - Changed db_find_last_full_verify() to db_find_last_jobid(). This
1449   permits working with Verify Volume to Catalog.
1450 - Removed TRANSACTION code from incrementing NextId for SQLite. 
1451 - Implemented quick and dirty (not fully functional code) so that
1452   console program does not die if ctl-Z is entered. 
1453 - Cleaned up backup.c a bit adding a bail_out goto to ensure proper
1454   handling of errors with minimum code.
1455 - Added passing Slot back and forth to Storage daemon with Volume info.
1456 - Implemented Slot in Media record in DB.
1457 - Implemented first cut of Counter resource in dird_conf.c. A counter
1458   resource is part of the Pool resource.
1459 - Implemented necessary database record. However, the resource doesn't
1460   yet create a DB record.
1461 - Implemented onefs (One File System) and recurse options on Include
1462   resource.
1463 - Implemented autopruning of Verify and Restore Jobs.
1464 - Did a better job of calculating thread_concurrency() for Sun systems.
1465   This permits better multi-threading allowing all the threads to run
1466   at the same time.
1467 - Implemented a wait_for_storage_daemon_termination(), which is used by
1468   backup and verify volume.
1469 - Clarified a number of UA prompts, and add feedback where certain commands
1470   completed but printed nothing. (More work to be done here).
1471 - Added a pile of new code to implement Verify Volume to Catalog. It is sort
1472   of a hybrid of "restore" and "verify" in that it actually reads the tape,
1473   then compares it to the catalog.  Need Verify Volume to Client.
1474 - Added a good number of checks for job_cancelled() this should permit
1475   quicker and more reliable cancelling of jobs.
1476 - Fixed one bug in restore where I used ofile instead of lname, which means
1477   that if the lname was too long, the memory was not properly reallocated.
1478 - Cleaned up find_one.c in findlib quite a bit.
1479 - Link smtp static so that it works even if the libraries are messed up.
1480 - If mail host is not found, retry with local host in smtp.
1481 - Added slot and stream to the bootstrap record processing.
1482 - Do offline on tape cartrige for unmount command. This can be turned off
1483   by the user in the config file. OffLineOnUnmount in Device resource.
1484 - Implemented AutoChanger = yes/no in Device resource.
1485
1486 ===========================================================================
1487 2002-07-07 Release 1.22
1488 - All the basic Restore code to handle the boostrap file is
1489   now implemented with the exception of the Console Restore command.
1490 - Retained compatibility with previous Restore providing no 
1491   bootstrap file is specified. However, the old code (JobId based)
1492   will go away in a future release.
1493 - Fixed a number of segmentation faults in the Console program due
1494   to printing of NULL pointers -- thanks to Chuck and his Sun for
1495   finding and reporting them -- mostly in ua_output.c.
1496
1497   From kes25Jun02
1498 - Null pointers now are printed as *None* if NPRT() is used.
1499 - At the request of Phil, all resources are now chained in in the
1500   order they appear in the config file.
1501 - Implement Bootstrap record in the Director's config file, which
1502   allows you to specify a predefined bootstrap file for Restore Jobs.
1503 - Allow Bootstrap on the Restore record. This is deprecated.
1504 - Implemented code to pass the Bootstrap file, if defined, to the
1505   File daemon, then from the File daemon to the Storage daemon.
1506 - Added ability to set Bootstrap file in the Console when running a Restore.
1507 - Allow scan_error() routine to be passed to lex_open_file(). This permits
1508   using lex in the Storage daemon without worrying that it will ABORT on
1509   a syntax error.  More work is needed to direct the error messages correctly.
1510 - Improved error messages a bit when config syntax errors are found.
1511 - Tested and corrected some errors in match_bsr.c
1512 - Removed askdir.c from bls and bextract by defining dummy entry points.
1513 - bextract now has bootstrap pretty well integrated.
1514 - Changed bextract ABORTs into FATAL and exit(1) or ERROR_TERMINATE.
1515   More user friendly.
1516 - Eliminated at least one lld and replaced it by edit_uint64() 
1517 - Eliminated a few more _PROTO()s.
1518 - Corrected a problem with the SQL for in query.sql for 
1519   Listing Volumes to Restore All Files
1520
1521   From kes22Jun02
1522 - Additional documentation.
1523 - Reduce the time the jcr mutex is locked in lib/jcr.c
1524 - More null pointer printing fixes in lib/parse_conf.c (debug output only).
1525 - Added daemon filename to Kaboom message so I know what daemon died.
1526 - Fix big bad bug introduced in watchdog.c last update that caused
1527   a segmentation violation (forgot to check for NULL pointer).
1528 - Add a bit more info to bad returns from Stored when starting
1529   a job fails.
1530
1531   From kes21Jun02
1532 - Fixed scan_to_eol
1533 - Fixed backup scanning forgot one T_STRING -> T_UNQUOTED_STRING
1534 - changed all rwlock_t to brwlock_t to avoid conflicts with
1535   Solaris library.
1536 - Added NPRT() macro to allow printing of NULL pointers, which
1537   segment fault on Solaris.
1538 - Cast printing of pid_t to int for Solaris compiler.
1539
1540   From kes20Jun02
1541 - Added expect argment to lex_get_token().
1542 - Added tree.c and tree.h to lib directory.
1543
1544   From kes19Jun02
1545 - Improvements to the bootstrap compiler
1546 - Implemented first cut of bootstrap code in the Storage daemon
1547 - Modified the authentication code to be more explicit during 
1548   failures.
1549 - Added a few more debug message numbers with more arguments (Dmsg10, ...)
1550 - Added more and more precise error messages when authentication fails.
1551 - Implemented new "expect" codes in the lexical scanner that allows
1552   the caller to specify what he wants.                   
1553 - Added integer, positive integer, 64 bit integer, and integer ranges,
1554   and name scanning to lex.
1555 - Implemented new lex code in parse_conf.c, this reduces significantly
1556   the code.
1557 - Hopefully fixed a watchdog race bug that caused the watchdog to time
1558   out a line after 1 hour rather than 6 days.
1559
1560   From kes15Jun02
1561 - Implemented a Bootstrap file parser and matcher.
1562 - Implemented first cut of bootstrap code in bextract  
1563 - Started clarifying different termination codes.
1564 - Added M_ERROR_TERM to immediately terminate the daemon -- no dump.
1565   Also changed a few termination codes as appropriate.
1566 - Fixed create_jobmedia_record() to include all the fields such as
1567   StartFile/EndFile, StartBlock/EndBlock.
1568 - Print user friendly message when query mode ends.
1569 - Fixed ls style print routines (bextract, bls, restore) to check
1570   buffer size, to print the link if any, and to used edit_uint64()
1571   instead of %lld.
1572 - Moved scan_to_eol() and s_err() to lex.c to avoid dragging in 
1573   parse_conf.c for new bsr scanning code.
1574 - New files: bsr.h, parse_bsr.c and match_bsr.c. parse_bsr.c parses
1575   a Bootstrap file, and match_bsr.c matches a bsr against a tape.
1576 - use strcasecmp() in several places instead of lcase().
1577 - Add first cut of bootstrap to bextract.
1578 - Added File Size limit -- writes EOF after limit exeeded.
1579
1580 ===========================================================================
1581 2002-06-12 Release 1.21
1582 - Fixed several problems with filenames being truncated if
1583   they contain spaces. Thanks to the user that reported this.
1584 - N.B. To get the new queries, after the "make" and 
1585   "make install" you must explicitly replace the
1586   existing query.sql by query.sql.new.  query.sql is a
1587   user configuration file, so it is not overwritten.
1588 - Added GZIP compression of Included files.  
1589 - Added additional fields to tape SOS record permitting better
1590   recovery with no database.
1591 - Be sure to remove any !terminate statements you may have
1592   in your config files.
1593 - MUST UPDATE ALL DAEMONS due to protocol change to handle new
1594   tape format.
1595
1596   From kes11Jun02:
1597 - Updated examples directory with my most recent config files.
1598 - Modified the M_TERM meaning to mean that Bacula has
1599   terminated in error without producing a dump. Previously,
1600   it meant that Bacula terminate (with or without error).
1601   You should remove any !terminate from your messages
1602   resources.
1603 - Changed the order of the libraries in the link so that
1604   tcp wrappers link properly. Thanks Phil for reporting this.
1605 - A user reported that filenames containing spaces were truncated
1606   in bextract. This was indeed the case. They were also truncated
1607   in Restore as well as in Verify. They are, hopefully, all fixed
1608   now.
1609 - Made a few error conditions in Verify non-fatal.
1610 - Modified the Console "query" command to permit multiple SQL
1611   statements per command. 
1612 - Implemented three new "query" options: 
1613     List last 10 Full Backups for a Client
1614     List Volumes used by selected JobId
1615     List Volumes to Restore All Files
1616   To use them, simply type "query" to the Console program, and
1617   select the one you want.
1618 - Modified bextract to default to extracting all files (i.e. /).
1619 - Cleaned up the code in bextract a bit.
1620
1621   From kes03Jun02:
1622 - Improve Verify command to include files examined.
1623 - Eliminate fcntl() locking of the console file and replaced
1624   it with a pthreads mutex.
1625 - Note Director - SD protocol is changed to handle new tape
1626   information (Fileset, JobType, JobLevel).
1627 - Create config.out that contains a summary of ./configure
1628   to see what you previously configured: "cat config.out"
1629 - Implemented GZIP compression.  Added addition syntax to
1630   Include { } resource to permit setting of any GZIP compression
1631   level:
1632      compression=GZIP
1633      compression=GZIP1
1634      ...
1635      compression=GZIP9
1636
1637   Level 1 is minimum compression and level 9 is maximum. Using just
1638   GZIP gives the default (level 6).
1639 - Enhanced the tape format to include the unique Job name, FileSetName,
1640   JobType, and JobLevel in the Start/End of Session records. The code
1641   detects that tape level difference and acts accordingly. You can 
1642   add data in the new format to old tapes.
1643 - Fixed an incorrect display message in the prune command.
1644 - Began implementation of Verify Volume and Verify Data.
1645 - Cleaned up File daemon restore.c a bit ensuring that termination 
1646   cleanup is done and all possible Emsgs are converted to Jmsgs.
1647 - Modify bls.c to use common setup routines. This reduced the big
1648   code duplication that creeped in when I added different listing
1649   options. Also, changing tapes is now handled uniformily in a subroutine.
1650
1651 ===========================================================================
1652 2002-05-27 Release 1.20
1653 - Started documenting Catalog Pruning and Recycling.
1654   Added catmaintenance.html and recycling.html
1655 - Fixed the query command bug.
1656 - Implemented PID files to prevent two copies of Bacula
1657   from running at the same time. Be sure you --with-pid-dir
1658   points to a working directory.
1659 - Modified ASSERT() to cause a segmentation violation. This
1660   permits a core dump.
1661 - Worked on gnome-console. It paints better, it tells you if it
1662   is ready to accept a command or processing one, and it is
1663   almost entirely GTK+ (rather than GNOME, I'm removing GNOME
1664   a bit at a time).
1665 - Limit to 100 the number of tape labeling errors in a single Job.
1666 - Add some additional ASSERT()s to the database routines. I don't
1667   like ASSERTs but they do catch bugs.
1668 - Tested and debugged recycling of Volumes.  Needed to change
1669   the Director-SD protocol slightly.
1670 - Removed the experimental SIGHUP in the Director as it is a
1671   potential source of errors.
1672 - Added Level, Pool, Messages, and Storage keyword/value scanning
1673   to the Schedule Run record.
1674 - Improved printing of Schedule resources with "show schedules"
1675 - Do not autoprune Jobs/Files if the Job errs.
1676 - Updated newvol() to pass back the updated Media record.   
1677 - Fixed the "update pool" command, which was broken during a much
1678   earlier code reorganization.
1679 - Improved a few of the pruning messages.
1680 - Removed readline inclusions from gnome-console (hang over from console).
1681 - Make Jmsg use daemon message handler if no message handler is defined.
1682   This is always the case in the SD and FD.
1683 - Started removing __PROTO(). With C++ prototypes are manditory, so why
1684   keep around legacy code.
1685 - Added a good deal of message internationalization -- more to be done.
1686 - Move cached Path into mdb structure and use POOLMEM.
1687 - Fix verify bug introduced last update causing incorrect diffs 
1688   by turning off autopruning.
1689 - Started adding code to distinguish Errors from Fatal Errors.
1690 - Errors are now counted in message.c for a Job.
1691 - More POOLMEM cleanups.
1692 - Implemented Automatic pruning.
1693 - Implemented Automatic recycling of Volumes.
1694 - Added PruneJobs/Files/Volumes=yes or no to Job resource. If set,
1695   it forces the specified pruning.
1696 - Modified rwlock to accept multiple nested write lock
1697   requests.
1698 - Modified the cats directory to use the new rwlock mechanism
1699   in place of P() and V(). 
1700 - Defined db_lock(mdb) and db_unlock(mdb). They are in effect
1701   transaction locks. 
1702 - Add CVS Id's to most files.
1703 - Made first cut at AutoPrune
1704 - Added new autoprune file that is called at the end of
1705   each Job. It then decides when and what to prune and
1706   calls the UA prune routines.
1707 - Modified Run (in Schedule resource) to permit overrides of
1708   Level, Pool, Storage, and Messages. (not tested).
1709 - Added more POOLMEM in place of char.
1710 - Implemented daemon pid files. This prevents multiple 
1711   daemons from running simultaneously. You can run multiple
1712   daemons if they listen on different ports.
1713 - Documented the Schedule resource a bit better.
1714 - Began gently adding a POOLMEM type (perviously void).
1715   For the moment it is a #define to char, but long term
1716   it should be its own typedef.
1717 - Corrected a bit of spacing on the status bar of gnome-console
1718 - Added Admin and Archive Job types.
1719 - Implemented multiple Messages resources. Each daemon has
1720   its own message resource, which defaults if not defined.
1721   Jobs may now have different message handlers.
1722 - Cleaned up a bit of duplicate code in backup, verify, and
1723   restore by creating appropriate subroutines in job.c
1724 - Added Type, Client, FileSet, and Level resource record
1725   definitions to the Director. These can be used in place
1726   of the Backup = ..., Verify = ..., ... commands.  This needs
1727   documenting.
1728 - Corrected an incorrect message in the prune code and added
1729   the number of Files pruned in the message.
1730 - Corrected several paint problems with gnome-console.
1731 - Added a bit of printout in signal handler during traceback.
1732 - Cleaned up most of sm_check() to be turned on/off by define
1733   in version.h
1734
1735 ===========================================================================
1736 2002-05-10 Release 1.19
1737 - Allow the user to select a new period for pruning.
1738 - Lots of additions to the manual -- prune and purge
1739   commands documented.
1740 - Applied Phil's configure.in fix for --prefix, ...
1741 - Fixed bug found by Phil (patch supplied) in updating
1742   MD5 signatures (revert to 32 bit FileId, move "static"
1743   variables into JCR) (catreq.c fd-cmds.c).
1744 - Reverted to using INTEGER for FileId in make_sql_tables
1745   due to a bug in MySQL.
1746 - Change editing code to %d for FileId.
1747 - Remove sqlite in make distclean in cats directory.
1748 - Remove console.conf in console during make distclean.
1749 - Remove gnome-console.conf during make distclean.
1750 - Remove bacula-dir.conf during make distclean.
1751 - Set default level when using Console if none specified.
1752   Bug reported by Phil.
1753 - A simple . command from Console is ignored.   
1754 - Change program named from filed to bacual-fd in winmain.cpp
1755 - Change default config file for Win32 in winmain.cpp
1756 - Free namebuf on early return from find_one.c. Bug reported by Phil.
1757 - Modify testfind.c to dump orphaned buffers.
1758 - Removed terabytes from parse_conf.c because of problems with
1759   older gcc compilers.
1760 - Turn off gnome options in gnome-console by constructing empty argv.
1761 - Fixes to Verify when only MD5 differs.
1762 - Insert 0 for MD5 as default rather than space.
1763 - Allow .messages "transparent" command while reading input
1764   in UserAgent server.
1765 - In dird/verify.c ensure that correct filename is printed if only
1766   the MD5 differs. Minor reindenting caused large diff.
1767 - Delete unused code from backup.c
1768 - In filed/verify.c ensure that same algorithm as backup.c is used
1769   to pass back MD5 signatures -- especially for directories and files
1770   that cannot be read. Change dummy filename from X to *MD5-id*.
1771   This dummy value should never be printed.
1772 - Make gnome-console poll Director every 5 seconds for output.
1773   This means that queued up messages are displayed at reasonable
1774   intervals. Delete some unused code hanging around from the tty
1775   console program.
1776 - Begin implementation of prune commands.
1777 - Add command line history to gnome-console. Not yet saved across sessions.
1778 - Fixed some broken URLs in the manual.
1779 - Added JobId type.
1780 - Wrote first cut of "prune files" and "prune jobs".
1781 - Added command line history to gnome-console 2500 lines max.
1782 - Widened store_time() and associated variables to 64 bits using
1783   new btime_t definition.
1784 - Removed GNOME about box and replaced it with 
1785   a somewhat crude Gtk+ about box in the gnome-console.
1786 - Widened StartDay in the Job DB record to be 64 bits.
1787 - Changed edit_uint_ to edit_uint64_ everywhere. Much more
1788   descriptive of what is done.
1789 - Removed most llds and replaced them with %s and edit_uint64.
1790   This makes the code a bit easier to read for beginners.
1791 - Added a btime_t typedef which is 64 bits wide.
1792 - Added most of the code needed to do Purge and Prune of
1793   database. Not yet tested. Please do not use.
1794 - Additional config options for Console.
1795 - Started adding code for Automatic Recycling of Volumes.
1796 - Allow arbitrary length filenames in Verify code.
1797 - Fix incorrect filename in Verify code.
1798 - Significant enhancement to number scanning in config parser.
1799 - Requires initializing MySQL tables, or applying cats/alter.sql
1800   to modify Media table.
1801 - Modified Makefile to printer a much more visible
1802   message if the make ends in error.
1803 - Added the Purge value to the VolStatus in the Media table.
1804   This value is set if the Volume is purged.
1805 - Enhanced the db_delete_media_record() routine to delete
1806   all associated records in the database.
1807 - Modified Console to always write to the variable "output"       
1808   rather than stdout. This will permit directing output to a file.
1809 - Enhanced the Console configuration file to have a Console 
1810   resource. This will allow us to add an rcfile and history file.
1811 - Modified Find_next_vol in catreq.c to search for "Recycle"
1812   volumes if there are none marked Append. Also made Get_Vol_info
1813   return the VolStatus to the Storage daemon.
1814 - Allow upper/lower case match on job level names.
1815 - Added another warning message to the Console "delete media" command.
1816 - Corrected a number of FileId types from uint64_t to FileId_t in
1817   ua_retention.c.
1818 - In ua server close database before freeing JCR (because pointer is
1819   kept in ua and jcr structures).
1820 - parse all numbers as doubles. Do lots of checking for valid number
1821   formats. Allow numbers in scientific form (e.g. 1.5e+10).
1822 - Remove terabyte modifier as it doesn't work in some compilers.
1823 - Fix bug in handling some modifiers.
1824 - Added all necessary code for Recycle to Storage daemon. A Volume
1825   marked Recycle will now be overwritten.
1826 - Filled out the prune command a bit and did some testing.
1827 - Make console accept redirected input.
1828 - Altered the Table definitions to include Recycle,
1829   FileRetention, JobRetention, and AutoPrune.
1830 - Widened StartDay to 64 bits.
1831 - Use JobId_t in more places. 
1832 - Added the new table fields to the database record definitions.
1833 - Changed Recycle from string to a binary quantity.
1834 - Added a Version table with a VersionId to detect.
1835   future changes in the database. This should prevent
1836   a Bacula from working with a database that is not in sync.
1837 - Modify Console to accept input from a file. This will permit
1838   the .read command and allow reading a .rc file.
1839 - Added new retention and recycle variables to the Director's configuration.
1840 - The UA subroutines or commands can now be called from core
1841   code because the output routines detect the absence of a 
1842   UA socket and direct output to the Job.
1843 - Added a verbose flage to the ua packet to permit reduction of
1844   output while running a UA command (prune) from a Job.
1845 - Did a fair amount of work on the prune command. Prune Volume now works.
1846 - Purge Volume now works.
1847 - Made last changes for integrating prune and purge commands.
1848 - Add -ltermcap to CONS_LIBS when readline is configured.
1849   More work to be done to search for termcap.
1850 - Added cats/drop_sqlite_tables.in, which will delete the SQLite database.
1851 - Got CWEB working so that we can compile filesys.w and immortal.w
1852 - Modified depkgs to include cweb.             
1853 - Note, CWEB is not yet used by the core Bacula code.
1854 - Made cats/alter.sql, which alters an old database to bring it
1855   up to the new format. This only works with MySQL since SQLite does
1856   not have the ALTER SQL command.
1857 - Changed the old StartDay field in the db to be JobTDate, which is
1858   the latest time/date in widened Unix time format that the Job ran.
1859   This value is used when doing pruning.
1860 - Added code in cats/sql.c to verify that the database internal version
1861   corresponds to the db version compiled in Bacula. It is set to 1 currently.
1862 - Lots of changes to cats to bring the SQL up to date with the new 
1863   retention period changes.
1864 - Added Console command code to permit changing a Volume's retention period.
1865 - Removed old code that used date_encode() and replaced it with widened
1866   Unix time().
1867 - Started modifying Message resource scanner so that we can have multiple
1868   message resources. Much more work to be done.
1869 - Moved scanning for time into new library routine string_to_btime().
1870
1871 ===========================================================================
1872 2002-04-22 Release 1.18
1873 - Applied Phil's configure.in fix for --prefix, ...
1874 - Fixed bug found by Phil (patch supplied) in updating
1875   MD5 signatures (revert to 32 bit FileId, move "static"
1876   variables into JCR) (catreq.c fd-cmds.c).
1877 - Reverted to using INTEGER for FileId in make_sql_tables
1878   due to a bug in MySQL.
1879 - Change editing code to %d for FileId.
1880 - Remove sqlite in make distclean in cats directory.
1881 - Remove console.conf in console during make distclean
1882 - Remove gnome-console.conf during make distclean
1883 - Remove bacula-dir.conf during make distclean
1884 - Set default level when using Console if none specified.
1885   Bug reported by Phil.
1886 - A simple . command from Console is ignored.   
1887 - Change program named from filed to bacual-fd in winmain.cpp
1888 - Change default config file for Win32 in winmain.cpp
1889 - Free namebuf on early return from find_one.c. Bug reported by
1890   Phil.
1891 - Modify testfind.c to dump orphaned buffers.
1892 - Removed terabytes from parse_conf.c because of problems with
1893   older gcc compilers.
1894 - Turn off gnome options in gnome-console by constructing empty
1895   argv.
1896
1897 ===========================================================================
1898 2002-04-18 Release 1.17 Kern Sibbald
1899 - Ensure that platforms Makefiles are called for clean  
1900   and distclean.
1901 - Hide a lot of Makefile messages with @
1902 - Applied Phil's configure.in patch. Thanks.
1903 - Doc updates, many to clarify points brought up by Phil.
1904 - Applied Phil's make_mysql_tables.in patch. Thanks.
1905 - Made authenticate.c in dird test bnet_send status.
1906 - Make label a bit more friendly with extra info message.
1907 - Add level 200 to debug info in run command.
1908 - Remove old code from findlib/testfind.c so that it compiles.
1909 - Add two minute max wait to cram-md5 authentication. Hopefully,
1910   this will catch non-responding WinNT daemons.
1911 - Allow time and size modifiers to be upper or lower case.
1912 - Turn off old CYGWIN patch for pthread_cond_timedwait() bug that
1913   now causes File daemon hangs on WinNT.
1914 - Fix mount messages for restore. Previous updates to save
1915   broke the restore code.
1916 - By default write fixed block sizes rather than variable block
1917   sizes.  My Sony DAT simply does not work (reread failures) with
1918   variable block sizes.
1919 - Data split across tapes was not being correctly restored
1920   (at least on DAT tapes). 
1921 - Implement MaximumBlockSize and MinumBlockSize statements in
1922   Storage daemon so user can specify variable block sizes if
1923   desired.
1924 - Return error if block checksum error on read (previously 
1925   ignored).
1926 - Fixed some error messages in bls, and in some cases exit(1)
1927   rather than ABORT. There remain ABORTs to be examined.
1928 - Made a local copy of tcpd.h and corrected the function 
1929   prototype problem for C++.
1930
1931 ===========================================================================
1932 2002-04-14 First public release 1.16 Kern Sibbald
1933  - Many intervening changes/updates.
1934
1935 2001-09-29 Release 1.0 Kern Sibbald
1936  - Fixes to problems found at John's installation.
1937  - See techlogs/kes25Sep01 for details
1938
1939 2001-09-25 Release 1.0 Kern Sibbald
1940  - Helped John install at his site.
1941    He is backing up one Linux machine and
1942    one Win2000 machine.
1943
1944 2001-mm-dd Many releases
1945  - Released internally.
1946   
1947 2000-04-09 Release 0.4 Kern Sibbald
1948  - Added a lot of Director configuration code. In      
1949    part (a small part), the Director now uses the
1950    bacula.conf file to know what to do. There still
1951    remains a lot to do.
1952  - The file search code is now integrated into the
1953    MySQL database routines, and Bacula is now hooked
1954    into the MySQL database (if so configured). Thus
1955    all the database records are being created, though
1956    there still remains some work in getting all the
1957    details into the records (such as the Storage 
1958    coordinates).
1959  - I've defined how Volume pools work (see manual).
1960  - I've defined error message handling though no code
1961    is yet written.
1962  - The following resources and records are implemented
1963    in the Director configuration file (bacula.conf):
1964     
1965    Director
1966      Name (passed to Storage daemon)
1967    Client
1968      Name, Address, Port
1969      Password (not yet used)
1970    Storage    
1971      Name, Address, Port, Password, MediaType
1972    Job
1973      Name    
1974      Type (not yet used)
1975      Backup (only one permitted) 
1976        Client, FileSet
1977      Storage
1978      Schedule, Messages, Pool (not used)
1979    FileSet
1980      Name  
1981      Include (options ignored)
1982      Exclude (no options)
1983    Schedule (not used)
1984      Name
1985    Messages (not used)
1986      Name       
1987      Debug, syslog, mail, append (not used)
1988    Catalog
1989      Name
1990      Address, Port, Password (not used)
1991    Pool (not used)
1992      Name
1993      PoolType, MediaType (not used)
1994
1995  - Added Storage configuration routines.
1996    Director
1997      Name, password (verified against those sent by Director)
1998    Storage
1999      Name, Address, Port (address, port must correspond to Director's values)
2000      Password, MediaType
2001    Device
2002      Name, MediaType (must correspond to those sent by Director)
2003      Archive Device (defines device name)
2004
2005
2006 2000-03-10 Release 0.3 Kern Sibbald
2007  - Implemented new base64 encoding for attributes.
2008    This eliminates some of the error messages in the
2009    sprintfs on the Solaris due to different stat() sizes.
2010  - Implemented  the first cut of the file search routines for
2011    the File daemon.  The exclusion lists work including wild
2012    cards.   There is a lot of work to be done, but the basic
2013    structure is now in place (wild cards do not yet work for
2014    the include).
2015  - Completed writing the memory pool code.  Now I must
2016    implement it in the daemons.
2017  - Modified the bacula start/stop script so that it has a
2018    better chance of working on SGI and Solaris.
2019  - The catalog code has not been converted to the new file
2020    search code.
2021
2022 2000-03-06 Release 0.2 Kern Sibbald
2023  - Integrated John's fixes.
2024  - Made Makefiles self configuring when Makefile.in is changed.
2025  - Added a runit script in the top level that runs bacula
2026  - Added a "bacula" script in the top level directory that
2027    starts and stops the File daemon and the Storage daemon.
2028
2029 2000-03-03 Release 0.1 Kern Sibbald
2030  - Basic Director, File, and Storage daemons.
2031    Standalone Catalog services using MySQL
2032
2033 2000-01-22 Kern Sibbald
2034    * Setup basic file structure with ./configure