]> git.sur5r.net Git - bacula/bacula/blob - bacula/technotes-1.39
Send M_ERROR_TERM and M_ABORT messages to stdout on Windows.
[bacula/bacula] / bacula / technotes-1.39
1               Technical notes on version 1.39  
2
3 General:
4 11Oct06
5 kes  Correct mtx-changer bug that I introduced in a recent commit, and
6      pointed out by Robert Nelson -- thanks.
7 rbn  Fix Windows' daemons so that messages print to stdout if not 
8      running as a service.
9 rbn  Add daemon name to trace file name (eg bacula-dir.trace).
10 rbn  Fix environment variable expansion in directory names on Windows.
11 rbn  Fix autochanger support in fill command.
12 rbn  Update SQL scripts to match Unix versions.
13 rbn  Fix daemon usage displays.
14 rbn  Cleanup bacula-dir.conf template.
15 rbn  Install openssl.cnf so that the openssl.exe installed in the
16      Bacula\bin directory can be used to generate keys and 
17      certificates for TLS and encryption.
18 rbn  Fix cleanup of spool files on Windows.
19 rbn  Remove /silent option from daemons on Windows.  The new default 
20      is the same as the old /silent.  To enable the message boxes that 
21      previously were suppressed by /silent you must add /debug instead.
22      NOTE: As a result of this change, the first time you upgrade from 
23            a previous version of 1.39.x you will receive the message 
24            boxes when the remove of the old services succeeds.  This 
25            is the same behaviour as when migrating from a version prior 
26            to 1.39.0.
27      However, going forward, these message boxes will not appear on 
28      upgrades or new installs.
29 rbn  Add new /debug option. This option enables the message boxes that 
30      previously were suppressed by the /silent option.  In addition the 
31      daemons running as services will open a console window if this 
32      option is used.
33 rbn  Fix bug with service not being removed on migrated installs.  This 
34      should correct those cases where the file daemon install was failing
35      when upgrading from versions prior to 1.39.x.
36
37 08Oct06
38 kes  Turn on heap reporting in Dir with zero debug level.
39 kes  Send a message to the sys log when Bacula forces a SEG FAULT, and
40      send the same message to stdout.
41 07Oct06
42 kes  Begin work on new GUI "console".
43 kes  Make configure look in non-standard MySQL library directory 
44      for Solaris.
45 kes  Make mtx-changer automatically configure the autochanger wait
46      procedure for Solaris, FreeBSD, and Linux.  Previously, only Linux
47      was implemented.
48 kes  Correct drop_sqlite_tables.in script to not delete the database.
49 kes  When writing to a log file, close and reopen the file descriptor
50      if there is an error writing the file.
51 kes  Modify the autochanger loaded?, load, and unload commands to print
52      the full text of any mtx output if there is an error.  Helps to
53      ease diagnosis of autochanger problems.
54 kes  Correct a few Win32 errno returns in the VSS code so that hopefully
55      a resonable Win32 error message will be printed.
56 kes  Convert a few strcat()... to bstrncat() in the Win32 code.
57 06Oct06
58 rbn  Added Windows version of bsmtp.
59 rbn  Fixed path search for Windows so that Bacula\bin is automatically 
60      searched for programs and scripts.
61 rbn  Fixed bugs in mtx-changer.cmd and made template bacula-sd.conf
62      Windows specific.
63
64 Version 1.39.24 released:
65 02Oct06
66 kes  Apply dvd find volume patch from Richard Mortimer.
67 kes  Eliminate the dvd specific mount routines using only the
68      dev->mount/unmount.
69 kes  Make update_free_space a method of DEVICE and rename 
70      update_freespace.
71 01Oct06
72 kes  Require a messages command acl to be able to receive messages
73      in a console.
74 kes  Add console, system, and scan job types in util.c.
75 28Sep06
76 kes  Print the Volume purged message only for real jobs to keep
77      from cluttering up the daemon messages.
78 kes  Lock the tape drive door while Bacula is using the device.
79 kes  Add back the 'No Jobs running' message to FD and SD status because
80      my regression script depends on it, and I'm too lazy to change the
81      scripts.
82 kes  Start using structure assignments (not too happy about it ...).
83 kes  Fix a bug in the tools Makefile that broke on Solaris.
84 kes  Unload any autochanger drive during a 'release' command.
85 26Sep06
86 kes  Enhance error message when restoring without bootstrap file.
87 kes  Check restored size only for regular files.
88 kes  Store Python job level in job record in Dir.
89 kes  Add back code to open tape device nonblocking, but if rewind fails
90      release file descriptor.
91 kes  Modify acquire.c to first try autoloading the device. Also, ask operator
92      to mount tape if drive cannot be opened.
93 rbn  Made Windows service tray status windows resizable.
94 rbn  Fixed horizontal scrolling of text in status window.
95 rbn  Preserve horizontal and vertical scroll position while 
96      updating.  This prevents the display being reset to the
97      top line every 5 seconds.
98 rbn  Fix Windows cross-compile compatibilty problems with 
99      *nix variants such as OS X without the zic command.
100 rbn  Eliminate dependency on man2html.
101 25Sep06
102 kes  Update src/win32/dll/bacula.def for change in BPIPE definition for
103      Win32 build.                 
104 kes  Fix a compiler warning in compat.cpp
105 kes  Change strcpy to bstrncpy in compat.cpp
106 kes  Remove some broken code in bdb_list.c
107 kes  Fix, hopefully the last, ACL problem in the restore command.
108 kes  Update the README.mingw32
109 kes  Add new version of upgrade-win32-client.txt to examples directory.
110      Submitted by Michel Meyers.
111 kes  Print an INFO message in the job report when a Volume is marked Purged.
112 rbn  Fixed handling of external program and script execution
113      so that the format of the command line is more flexible.
114      Now executable path names containing spaces are translated
115      to the equivalent short name automatically.  The result is
116      passed to cmd.exe with the quotes removed.
117 24Sep06
118 kes  Apply the recycle patch from Richard Mortimer.
119 kes  Convert a few if statements in dev.c to switch statements.
120 kes  Start using print_errmsg instead of bstrerror().
121 kes  Print a job message in SD when a job is marked to be canceled.
122 23Sep06
123 kes  All code added back. Fixed block.c read/write to loop only 3
124      times. This apparently keeps the OS from crashing (at least     
125      most of the time).
126 kes  The kernel bug still persists. Backup something then immediately
127      do a bscan on the same tape, and the kernel will crash.     
128 kes  Simplifed tape open().  It no longer uses nonblocking mode, which 
129      means that opening with no tape loaded will probably take at least
130      6 minutes before an error is reported.
131 kes  Do not use MTSETDRVBUFFER if not running as root.  Do a MTRESET
132      when doing set_os_device_parameters.
133 kes  Report open error in mount.c
134 kes  Remove all .exe files from the installer directory on make clean.
135 20Sep06
136 kes  Start adding back removed code.
137 kes  Back out a number of changes because backups to tape crash my
138      system.
139 kes  Remove the inetd code from the File daemon.
140 18Sep06
141 kes  Add -c option to pg_dump so that it initializes tables when   
142      restored.
143 kes  Fix FirstWritten time on Volume to be obtained from SD so that
144      it is the actual time the volume was first written.
145 kes  Minor Makefile changes.
146 kes  Handle EBUSY during read(). Improve how EBUSY is handled in write().
147 ebl  Add yes keyword to prune/purge command
148 16Sep06
149 kes  Correct a test in block.c that prevented restore of a DVD from
150      looking at the last part in the spool directory.
151 kes  Make some error messages clearer mostly by using the word DVD
152      in the message. Improve infor message in read_record for DVDs.
153 kes  Remove DVD kludges in dircmd.c label/relabel.
154 kes  Move the dvd relabel code from dircmd.c into      
155      write_new_volume_label_to_dvd() adding a relabel argument.
156 kes  Rewrite the truncate_dvd() code to be much simpler and
157      more logical. First blow away any spool part, then create a
158      new empty part and write to the DVD.
159 kes  Rewrite the can_write_on_non_blank_dvd() code making it
160      only ensure that no valid data is on the DVD -- i.e. it
161      can be overwritten.
162 15Sep06
163 kes  Minor Makefile fixes.
164 kes  Put attach_dcr_to_dev in a subroutine.
165 kes  Make attaching/detaching to/from a device use a flag and 
166      only detach if actually attached.
167 kes  Add dvd-simulator.in to scripts directory and add to configure.
168 kes  Fix code in acquire.c that checks fd != 0 to use dev->is_open().  
169      This could be a cause of a number of drive reservation problems.
170      Note, this code is now in attach_dcr_to_dev().
171 kes  Suppress doing Volume updates if it is a system job.  This should
172      prevent the DVD label blocking.
173 kes  Clear the freespace ok flag in a couple of strategic places.
174 14Sep06
175 kes  Put removing zero sized spool part file in subroutine and
176      call from release_device().
177 kes  Add Richard's patch for relabel to dircmd.c, but save and restore
178      dev Volume name.
179 kes  Rework a lot of subroutines in dev.c to take dcr as an
180      argument. This is done to eliminate the usage of attached_dcrs
181      in lseek().
182 kes  Change truncated_dvd to blank_dvd, which seems more suitable.
183 kes  Apply most of Richard Mortimer's truncate patch.
184 kes  Create lseek() method for DEVICE that takes dcr as an
185      argument. This is to eliminate the use of attached_dcrs in
186      lseek().  The calls to lseek_dev() must still be changed.
187 13Sep06
188 kes  Apply Richard Mortimer's patches for printing an error 
189      message in btape when a DVD is used, and to initialize traceback.
190 kes  Added error message to btape when trying to access a file.
191 kes  Move prototype of update_slots() to protos.h.
192 12Sep06
193 kes  Add JobErrors, JobFiles, SDJobFiles, SDJobErrors, SDJobStatus,
194      and FDJobStatus to the Director Python variables.
195 kes  Make sure valid argument passed to str_to_utime() where Arno
196      had a seg fault.
197 kes  Apply Richard Mortimer's patch for bcopy, bextract, and bscan.
198      I.e. part of two different patches.
199 11Sep06
200 kes  Modify disk changer to simulate some of the error conditions
201      of mtx-changer.
202 kes  Make sure the close() call in the SD tools is just before the
203      getchar() call.
204 kes  Implement dir_get_volume_info() in bls using the patch from
205      Richard Mortimer but call find_num_dvd_parts().
206 kes  Implement find_num_dvd_parts() that mounts and scans a DVD
207      and counts the parts. 
208 kes  Move the omode code in open_dvd() up so that the cannot
209      write on blank disk can check can be bypassed for read mode.
210      Not yet implemented.
211 10Sep06
212 kes  Disable normal data spooling for DVD writing which uses  
213      a different spooling mechanism.
214 kes  Apply patch from Richard Mortimer to ensure that the number
215      of DVD parts is correctly updated.
216 rbn  Save installer details log in the Bacula directory as 
217      install.log.
218 rbn  Add installer generation of client and storage templates
219      suitable for @inclusion on the director.
220 rbn  Mark previously installed Win32 components read-only since 
221      deselection doesn't do anything.
222
223 Version 1.39.22 beta released:
224 08Sep06
225 kes  Fix logic error in handling error return from mtx-changer 
226      script.
227 kes  Make status from SD aware of -1 (unknown) Slot status.
228 kes  At Eric's suggestion make both the 'slots' and 'drive' commands
229      to the Storage daemon work even if the drive is busy.
230 kes  Make two separate Win32 menu links for starting bconsole and
231      wx-console in winbacula.nsi
232 kes  Apply DVD part_spooled patch from Richard Mortimer 
233      richm@oldelvet.org.uk 
234 kes  Put installer/Readme.txt into Win32 EOL format for Notebook.
235 rbn  Fixed problems migrating settings from previous releases in
236      Win32 installer. Add Readme.txt with an option to show it on 
237      the installer Finish page.
238 07Sep06
239 kes  Use get_catalog_resource() to open catalog database
240      to ensure that ACLs are respected and that user is
241      correctly prompted for database.
242 kes  Integrate multiple console/director patch from 
243      Carsten Paeth calle@calle.in-berlin.de
244 ebl  Add character substitution in Job/JobDefs WriteBootStrap.
245      You can use now 'WriteBootStrap = '/path/%c_%n.bsr''
246 kes  Apply patch supplied in bug #656 to pass priority field
247      in the run dialog to the Director in gnome console
248 kes  Restore DCR after VOL_NAME_ERROR in mount.c.  Hopefully
249      this will fix bug #627 where Bacula eventually gets 
250      confused about what Volume it wants.
251 kes  Add a new close_part() class in the SD to save the device
252      state around open/close_part/open for DVD writing.  This
253      should fix the num_dvd_parts getting zeroed as reported by
254      Richard Mortimer.
255 kes  Apply patch from Richard Mortimer that correct edit code
256      for debug output of st_size.
257 ebl  Add support of encrypted data stream to bscan.
258      display data_len instead of data content (may be binary)
259 06Sep06
260 kes  Add dev->close() in dir_ask_sysop_to_mount_volume() in
261      bcopy. Fixes bug #669 reported by Eric.
262 kes  Fix incorrect number of arguments in SQL statement in
263      sql_get.c as reported by Eric.
264 kes  Manual updates.
265 kes  Update examples directory.
266 kes  Remove unused variable in winservice.cpp
267 kes  Make Win32 make command build installer.
268 rbn  Add new Install Type page, used to select between Automatic
269      and Custom installs.  Automatic installs only prompt for
270      configuration items that can't be reasonably defaulted.
271 rbn  Added Bacula logo to page headers.
272 rbn  Added Upgrade support
273      - Configuration and component selection are migrated from
274        pre-1.39 installs.
275      - Configuration of upgraded components is preserved and 
276        not prompted for
277      - Configuration of new components is handled according to
278        the Automatic / Custom selection.
279      - Component selection is defaulted to previously selected 
280        components.
281 rbn  Installation of Server components is disabled on 
282      Windows 95, 98 and ME.
283 rbn  Added URLs for support, info and upgrades to Bacula entry
284      in Add/Remove Programs.
285 rbn  Added Version info to Bacula entry in Add/Remove Programs.
286 04Sep06
287 kes  Correct dvd code that breaks tape labeling.      
288 kes  Implement Enabled on update slots.
289 02Sep06
290 kes  When doing a label, pass the VolBytes back to the Director,
291      which puts it in the catalog.
292 kes  Print an error message if the user attempts to prune an
293      archived Volume.
294 kes  Need to start using %ld when sscanfing 32 bit values.
295 kes  Update the free
296 kes  Correct the counting of VolCatBytes for DVDs. 
297 kes  Add code to mount.c to require that VolCatBytes corresponds to
298      what is actually found when doing an append.
299 kes  Update freespace only after writing on the DVD.
300 kes  Remove code that blows away the current part in the spool file.
301 01Sep06
302 kes  Apply new dvd-handler patch from Richard Mortimer.
303 kes  Tweak so that debug level 20 shows only DVD commands.
304 kes  Correct spooled_part flag in dev.c close() so that it is cleared
305      when the spool file is deleted or does not exist.
306 kes  Print part number in read_records when eof hit (restore).
307 rbn  Installer default changed to start services on new install.
308 31Aug06
309 kes  Make find with no args in tree restore return error rather than
310      stopping the selection. Fixes bug #665
311 kes  Rework DVD writing to ensure that the last part is written
312      on open_next_part when dealing with a spool file.
313 kes  Correct the lseek_dev() routine to handle end point correctly
314      (bug introduced by me).
315 kes  Allow part number to exceed num_dvd_parts in lseek_dev().
316 rbn  Change make_session_key on Windows to use WIN32 APIs to produce 
317      a better seed.
318 rbn  Add new tool scsilist.exe which displays the changer, tape and 
319      CD/DVD (1394, SCSI, SATA, ATAPI) devices and the information required 
320      to add them to bacula-sd.conf.
321 30Aug06
322 kes  Apply dvd-handler patch from Richard Mortimer.
323 kes  Apply dvd error check patch from Richard Mortimer.
324 kes  Apply bpipe race patch from Richard Mortimer.
325 kes  Rework how DVD labels are handled and set append only
326      when part > num_dvd_parts.
327 27Aug06
328 kes  Rework many features of DVD writing and reading. Added many error
329      messages.  Most importantly changed part to represent the current
330      part number base zero. This makes current DVD writing incompatible
331      with previous version.
332 26Aug06
333 kes  Add host:port to connect failure messages to FD and SD from Dir.
334 kes  Add WhereACL to console ACL list.  If nothing is specified, only
335      the default is permitted for restore. Otherwise, *all* allows any
336      path, or you can specify permitted paths. This should allow control
337      over where users can restore files. This is untested.
338 kes  Modified message to add a ? (as in loaded?) when querying the autochanger
339      for what Slot is loaded.  
340 kes  Fixed the use of Slot, so that is more correctly maintained, thus
341      eliminating unneeded duplicate calls to determine what Slot is loaded.
342 25Aug06
343 kes  Install man pages with 'make install'
344 kes  wx-console crashes because of differences between Bacula and wxWidgets
345      malloc()/free().  Tweak wx-console to use bmalloc()/bfree() for Bacula
346      calls.     
347 kes  correct improper indenting in wx-console/console_conf.c
348 kes  update wx-console header copyrights
349 kes  Fix bug #658 where wx-console mangles file/directory names containing
350      commas.
351 24Aug06
352 kes  Add Media.Enabled flag to client backups for dotcmds.c
353 kes  Enforce Media.Enabled=1 for a current restore to work.
354 kes  Require restore case 3 to have sqlquery permission to work.
355 kes  Remove obsolete del_MAC sql command.
356 kes  Ensure that bscan creates Volumes with Enabled=1.
357
358 Version 1.39.20 beta released:
359 22Aug06
360 kes  Correct missing Client table reference in SQL pointed out by
361      Marc.
362 21Aug06
363 kes  Fix Win32 build (new entrypoint, start baculafd).
364 20Aug06
365 kes  Add -n option to bconsole to turn off conio.
366 kes  Print JobIds to be migrated in Job Report.
367 kes  Add additional user supplied notes to the messages part of 
368      bacula-dir.conf concerning multiple email addresses.
369 kes  Fix an incorrect comment pointed out by a user in dvd_handler.in
370 kes  Add more recent Feature requests to Projects file.
371 19Aug06
372 kes  Apply Maritn's fix to src/win32/Makefile.
373 kes  Apply Martin's fix to configure.in for pthreads on FreeBSD 4.x
374 kes  Implement pruning for Migration and migrated jobs.
375 kes  Implement PoolOccupancy migration.
376 kes  Implement PoolTime migration.
377 16Aug06
378 kes  If doing a mount, look for a slot, and if specified pass it to
379      the SD so that it can load the autochanger.
380 kes  Return DVD=1 flag if a label command is done to a DVD. This
381      permits setting VolParts to 1.
382 kes  Apply DVD patch from Richard Mortimer <richm@oldelvet.org.uk>, but
383      rework ua_label code based on DVD media type to use DVD flag returned.
384 15Aug06
385 kes  Eliminate some compile warnings in dird_conf.c
386 kes  Format the bytes field in the terminated jobs part of the status
387      command for the three daemons with suffixes to reduce print size 
388      of backup bytes.  Suggested by a user.
389 kes  When not descending into a directory, print the File= name that
390      triggered it -- makes why not descending a bit clearer.
391 kes  Do not unload autochanger when doing a list command -- basic code
392      from Eric Bollengier.
393 12Aug06
394 rbn  Reworked the MinGW32 build-dependencies script, it has been renamed
395      to build-depkgs-mingw32.  It now handles two options -h to display
396      help and -C to reextract the source and apply the patches.  The -C
397      option is useful for updating the source after new patches are 
398      released.
399 rbn  Moved the 3rd party package URLs to a separate file External-mingw32.
400      This allows updating to new versions without having to modify the
401      script and makes it easier to figure out which packages and which
402      versions are used.
403 rbn  Added a new script build-depkgs-msvc.cmd which does the same thing
404      as build-depkgs-mingw32 except they are built using Microsoft Visual C
405      and placed in the depkgs-msvc directory.  There is also an 
406      External-msvc file to describe the packages.
407 08Aug06
408 rbn  Fix Windows cross-compile compatibilty problems with FreeBSD.
409 07Aug06
410 kes  Fix bug #462 incorrect error message printed when client script called
411      from File= was not found.
412 kes  Fix bug #558 (waiting for feedback) where Bacula needs too much time to
413      do a rewind on Solaris when no tape is in the drive (Solaris does not
414      have the detailed errno found on Linux).  Added Solaris specific code.
415      Note, this may apply to other OSes as well.
416 06Aug06
417 kes  Defined BUILDING_CATS in src/cats/cats.h so that *nix builds.
418 dsb  Updated rpm spec for 1.39 - updatedb 9 to 10, add new man pages,
419      fix bug 648 - update sqlite script patches, lock out gnome2console
420      builds for platforms with gtk+ < 2.4.
421      Updated build_rpm.sh - add remote source directory, add switch for 
422      signing, refine file names.
423      Updated spec file again for Mandriva build as they have this curious
424      custom of silently converting all manpages to bzip2 format just before
425      the final packaging step.
426 05Aug06
427 rbn  Fixed the Windows Makefiles so that they won't accidentally try and
428      pickup binaries for the Unix build.  This allows both the Unix
429      build and the Windows build to be built in the same tree without
430      interfering with each other.
431 rbn  Fixed error handling and cleaned up mtx-changer.cmd.
432 rbn  Added the rest of the database scripts.  These are installed but are
433      not yet edited for variable replacement.
434 rbn  Broke out the cats functionality from bacula.dll and put into new
435      separate dlls for each database type.  At installation time the
436      correct one is copied to bacula_cats.dll.
437 rbn  Eliminate the need to install the mysql.dll on client only builds.
438 rbn  Moved dird/sql_cmds.c into the cats directory so all the database
439      specific #ifdefs were in the cats directory.
440 rbn  Added a new sql_cmds.h with all the declarations for the variables
441      exported from sql_cmds.c.
442 rbn  Moved catalog_db[] from lib/message.c to a new routine db_get_type()
443      which is implemented in bdb.c, mysql.c, postgresql.c and sqlite.c in
444      src/cats.
445 kes  Correct improperly formatted list command output reported by Dan.
446 04Aug06
447 kes  Correct despool time calculation.
448 03Aug06
449 kes  Remove previous changes to compat.cpp as they create problems.
450 kes  Use old style MD5 for FileSets to avoid Full saves on every Job.
451 kes  Attempt to fix problems with the msg_queue crashing on Solaris
452      when Bacula is terminating, but problems remain.
453 kes  Add WIN32_VSS to HAVES in src/Makefile.inc.in to correct VSS
454      name editing problems with too many \\?\es.
455 kes  Fix some Bacula source code style problems in compat.cpp.
456 kes  Add debug code to compat.cpp and convert non-Bacula debug code
457      to Bacula style.
458 02Aug06
459 kes  Change the name of the technical notes file from kes-1.39 to
460      technotes-1.39.  Prefix my messages with 'kes  '.
461 kes  Allow dequeue_messages() to be called twice. Should fix bug  
462      # 649.
463 kes  Add Job type to bscan Job information output.
464 01Aug06
465 kes  Update copyright date in program files, and for the most part
466      put it on a #define.
467 kes  Implement %q in bsnprintf.c apparently I forgot it.
468 31Jul06
469 kes  Make disk-changer sed command compatible with FreeBSD.
470 kes  Make a first cut at a ReleaseNotes and ChangeLog for a 
471      beta release.
472 kes  Make make clean descend into the src/win32 directory.
473 kes  Fix some #ifdefing so that Solaris and FreeBSD compile 
474      sys/stat.h was turned off.
475 kes  Use suffix editing for new transfer rate messages.
476 kes  Attempt to come up with a workaround which seems to be an OS
477      bug where write() returns EBUSY.  IMO this should not happen.
478      It triggered in truncatebug test. The workaround retries using
479      a 100 ms wait.
480 kes  Eliminate a strerror() call in a class method that failed with
481      older C++ compilers.
482 kes  Use rm -rf rather than rmdir to delete the src/win32/release
483      directory during make clean.
484 30Jul06
485 kes  Make bscan ignore ACL streams.
486 kes  Update projects files with new Feature Requests.
487 kes  Generate current English and French manuals and upload
488      them to the site.
489 kes  Update the home page to include the new British/French flags to
490      switch between translations. Work done by Alexandre Baron.
491 kes  Make disk-changer script print an error message if the changer
492      directory is not defined.
493 kes  Create a generic DB routine for getting an int (32/64 bit) from
494      the DB.
495 kes  Add more migration code.
496 kes  Add a few more files to .cvsignore here and there.
497 kes  Minor fixes for SD write rate and despooling rate.
498 kes  Turn off new test code in src/console.c
499
500 Version 1.39.18
501 29Jul06
502 kes  Incremented the version number to signify that all of Robert's code
503      for Win32 that was in the branch is now integrated into the HEAD,
504      and that Eric has submitted code that we hope will provide limited
505      backward compatibility with 1.38 file daemons (more testing to be
506      done).
507 kes  I rationalized a few of the names of the variables (mainly jcr names)
508      that are used during migration as keeping three different jcrs at the
509      same time clear in ones head is not easy.
510
511 Version 1.39.17
512 28Jul06
513 eb   Tweak new runscript feature to work with 1.38.x FDs. 
514 eb   Correct crypto.c to fix segfault when restoring an encrypted stream 
515      on fd which don't use rsa keys.
516 eb   Add yes/no English keywords on localized yes/no questions.
517 27Jul06
518 kes  Several important commits from Robert Nelson for code cleanup and
519      Win32 build.
520 kes  Modify console.c so that when conio is enabled, it converts \n to
521      \n\r before outputting to the console.  Hopefully this will fix
522      the problems with expect in Perl that Eric saw.
523 24Jul06
524 kes  Change cats/sql.c to eliminate %-*s format, which I think is turned
525      off in bsnprintf.
526 kes  Add Comment field to llist of a volume.
527 kes  Allow true/false in some yes/no questions.
528 kes  Implement update volume enable=(on|off|true|false|archived|0|1|2)
529 kes  Remove a few /n's when scanning commands from another daemon. This
530      permits adding additional fields later.
531 kes  Modify dbcheck to handle ctl-d and to delete Log table entries.
532 kes  Update README.mingw
533 22Jul06
534 kes  Tweak authentication to work with 1.38.x FDs. 
535 kes  Tweak catalog make scripts.
536 kes  Fix catalog upgrade scripts so that they work.
537 kes  Correct despooling debug code to eliminate race condition.
538 19Jul06
539 kes  Add additional fields as specified by Arno to LocationLog.
540 kes  Add comment field to the Media record.
541 kes  Add Time field to the Log record.
542 kes  Correct migration SQL (thanks to Bill Moran) so that it
543      runs with PostgreSQL also.
544 kes  Add spooling/despooling info in status output of SD.
545 17Jul06
546 kes  Spend a lot of time integrating mkcdrec with the rescue disk.
547 kes  Add VOLMGMT message class for volume management messages (none yet).
548 kes  Add CATALOG as a destination.     It goes into the LOG table.
549 kes  Implement the Log table in the DB.
550 kes  Implement the Location Log table in the DB (for user use).
551 kes  At Eric's request add a run_scripts() just after blast_data in
552      src/filed/job.c
553 10Jul06
554 kes  Add Enabled column to Location, correct some typos in DB schemas.
555 kes  Correct bug I introduced into RunScripts enum.
556 kes  Add log table to Catalog
557 kes  Purge original job migrated if the migration terminates normally.
558 kes  Cleanup purging of files/jobs so that it is done only in a 
559      single subroutine.
560 kes  Add new VOLMGMT message class.
561 kes  Add Catalog message destination (user conf code remains to be written).
562 09Jul06
563 kes  Modify read_record and friends to properly deal with migration         
564      needs.
565 kes  Update debug code in read_record.       
566 08Jul06
567      ======================= Warning ==========================
568      Separate read and write storage in Jobs in the Director. This
569      is a major rewrite of some of the low level code and hence has
570      a high probability of introducing bugs.
571      ==========================================================
572
573 kes  Move the job init code up to *before* the job is put into
574      the job queue (resource allocation queue). This permits the
575      job to establish whether it will read or write or do both.
576 kes  Add name() methods to all the resource classes.
577 kes  Implement separate read and write storage resource 
578      allocation/deallocation in jobq.c
579
580      ======================= Warning ==========================
581      Implemented new method of getting the default Storage from the Media
582      record rather than from the MediaType for restore.  As a fall
583      back, if no Storage is defined, use the MediaType.  This
584      eliminates most all prompts if there are multiple MediaTypes
585      used. This is an important and fundamental change.
586      ==========================================================
587
588 kes  Add more detail (Storage, Device) to list of volumes printed
589      for restore.
590 kes  More code in migrate. In particular start multiple jobs if
591      migrating a volume.
592 kes  Probably overkill, but ensure that the bsr is unique even within a 
593      job in FD and SD.
594 kes  Rework bsys.c drop() so that it now should work as expected.
595 kes  Update a bunch of old copyrights -kes  particularly in .h files.
596 kes  Remove src/lib/bshm.c/h
597 05Jul06
598 kes  Migration fixes
599 04Jul06
600      ======================= Warning ==========================
601         All hash codes in the database are now kept in world
602         compatible base64 format (no = filling). This means that
603         all FileSets will be updated and if you are running
604         verify jobs, you must do an InitCatalog.
605         Authentication uses the new algorithm, but should be
606         backward compatible with 1.38.x
607      ===========================================================
608
609 kes  Modify the authentication routines so that the 1.39.15 Director
610      always runs with the compatible binary to base64 code (same as
611      the rest of the world).  It will however detect if an SD or
612      FD is running the old code and if that is the case, will use
613      the old algorithm for authentication.  However, all consoles must
614      use the compatible algorithm, and all data entered into the database
615      (all hash signatures, MD5, SHA1, ..., and all FileSet hashes) will
616      use the compatible algorithm.
617 kes  Rename the cram_md5 routine names to be slightly more appropriate
618      to what they are doing (challenge and respond).
619 kes  Robert committed his #ifdef and header cleanup.
620 30Jun06
621 kes  Fix a compiler warning in files/backup.c
622 kes  Cleanup NOT NULL vs DEFAULT 0 in database creation.
623 kes  Tweak btape.
624 kes  Robert committed his low impact changes.
625 kes  I removed a size_t from the jcr.h definition.
626 kes  Update the tape regression scripts (still to be tested).
627 kes  Add gcc and gcc-c++ requires to srm as suggested by a user.
628 kes  Require done or quit to exit from in memory tree restore.
629 26Jun06
630 kes  Write install/uninstall of new manpages. There are now a
631      pile of man pages. Some of which need a lot of work.
632
633      ======================= Warning ==========================
634         The --mandir ./configure option now points to the top level
635         man directory.  The man files will be installed under
636         mandir/man8 and mandir/man1 as appropriate.
637      ==========================================================
638
639 kes  Add complete text of GPL to LICENSE.
640 kes  Implement job report that indicates where Storage and Pool
641      came from -kes  with overrides and Pool storage and NextPool,
642      it is all very complicated.
643 kes  Create a few common subroutines for backup.c and migrate.c
644 kes  Eliminate warning messages from tray-monitor.c
645 25Jun06
646 kes  Apply fix for scheduler for missing unlock_jobs().
647 kes  Clean out autoconf caches before rebuilding configure
648 kes  Fix the FreeBSD pthreads lib define updated by Dan.
649 kes  Add missing semicolon in src/console/console.c
650 kes  Add Robert's enhanced version of build-win32-cross-tools
651      as well as his patch file.
652 kes  Note, the new gcc options are likely to break building of
653      wx-console or the tray-monitor ...
654 24Jun06
655 kes  Implement Robert's suggestion to suppress printing compile lines.
656 kes  Detect GCC correctly (I hope)
657 kes  If using GCC (actually g++) add the following compiler flags
658      -fno-strict-aliasing -fno-exceptions -fno-rtti
659
660      ===================== Warning =============================
661      Turn on new bsnprintf() code.  This could cause print output
662      to look different.
663      ===========================================================
664
665 kes  Fix crypto when not using openssl. I previously overlooked this.
666 kes  Eliminate crypto type punning problems by eliminating void * and
667      using uint8_t * instead.
668 kes  Harden authentication failure in FD by single threading errors
669      and forcing a 6 second wait.
670
671      ===================== Warning =============================
672           Removed  'Accept Any Volume' directive.
673      ===========================================================
674
675 kes  Major cleanup and simplification of regress using shell functions
676      (more tests to be converted to new format)   
677 kes  Add detection of 64 bit Irix as indicated by user.
678 kes  Increment catalog database id from 9 to 10.
679 kes  Add a few of the new database fields to the various C++
680      structures.
681 kes  Implement code to fill in the most important new fields (e.g.
682      Media Enable).
683 kes  Ensure that most of the new fields are in create/get/insert/update.
684      More work to be done.
685 22Jun06
686 kes  Update some very old licenses in src/cats.
687 kes  Modify the database format for handling Migration jobs:
688       Add PriorJobId, RealEndTime to Job table
689       Delete MAC table
690       Remove Stripe from JobMedia record (not used, wasting space)
691       Add ScratchPoolId, RecyclePoolId, Enabled to Media record
692       Add Cost to Location table.
693 kes  Delete mac_record subroutines.
694 kes  Add new table values to create/update/get routines as appropriate.
695 kes  Update the update_tables and make_tables scripts.
696 kes  Make a first cut in using a union where multiple pointers (actually
697      pointers to pointers) are stored.
698 kes  Make some changes to base64.c suggested by Robert and others and add
699      a small amount of documentation.
700 kes  Add some changes suggested by Peter for Solaris (bregex...)
701 kes  Make runscript.h always built because it needs to be pulled into
702      more places.  In particular its RES was left out of a union.
703 kes  Renumber the enum{} list in runscript.h to avoid starting from zero.
704      This makes it slightly easier to detect uninitialized variables.
705 14Jun06
706 kes  Remove xpg4 lib from FreeBSD build as it is no longer needed and
707      sometimes creates install problems.
708 kes  Change a couple of %T in strftime to %H:%M:%S as seen in Robert
709      Nelson's code.  More to do.
710 kes  Convert a few store_bit to store_bool in filed_conf.c.       
711 kes  DVD tweak to block.c as supplied by Uwe Muessel.
712 04Jun06
713 kes  Modify configure.in to check for typeof().
714 kes  In findlib/attribs.c use typeof instead of templates if possible.
715 01Jun06
716 kes  Implement partial error messages for src/filed/acl.c
717 kes  Fix return code to fail when doing update barcodes and
718      Pool resource is not found. This previously caused Volumes
719      to be labeled as cleaning tapes.
720 kes  Small updates to projects.
721 27May06
722 kes  Add Eric Bollengier patch for new RunScript directive. It breaks
723      compatibility between dird and fd.
724 26May06
725 kes  Prevent DVD code from rewriting label if the device cannot be
726      opened read/write.
727 kes  Used __GNUC__ to detect GNU g++ as suggested by John Goerzen to
728      fix Debian build bug.
729 kes  Fix Dir/SD run race in migrate.c, verify.c, and restore.c
730 kes  Integrate manpages contributed by Jose Luis.
731 kes  Update projects file.
732 kes  Add manpages Makefile.in to configure.in
733 kes  Remove installation of bacula.8 in scripts directory.
734 24May06
735 kes  Implement patch submitted by cesarb in bug #606 to implement O_NOATIME
736      support.
737        O_NOATIME is a open() flag which makes it possible to read a file without
738        updating the inode atime (and also without the inode ctime update which
739        happens if you try to set the atime back to its previous value). It also
740        prevents a race condition when two programs are reading the same file, but
741        only one does not want to change the atime. It's most useful for backup
742        programs and file integrity checkers (and bacula can fit on both
743        categories).
744
745        Recent versions of the Linux kernel and glibc have support for it (the
746        glibc support being mostly copying the O_NOATIME definition to
747        bits/fcntl.h). If there's no support for it on the kernel, trying to use
748        it does nothing (since the kernel ignores unknown flags).
749
750        If the kernel has support for it, trying to use it either works, fails
751        silently (mostly in remote filesystems), or returns errno=EPERM (if you
752        are not either the owner of the file or root). A simple way to prevent the
753        failure is to open the file without the flag and set it later with
754        fcntl(F_SETFL), ignoring any EPERM errors.
755 kes  Applied patch posted by Jaime Ventura to bug #570 to correct failure
756      of restarted jobs to complete (due to a destroyed pthreads conditional
757      variable used by the message thread).
758 kes  Fixed bug #619 where Bacula would not restart jobs with MaxRestartTimes
759      set to zero. 
760 kes  Apply patch from John Goerzen bug #611 to fix bad manual links in the code.
761 kes  Apply patch from Rudolf Cejka bug #614 to removed trailing
762      colons in query.sql file.
763 kes  Apply patch from Rudolf Cejka bug #613 to correct prunning of files
764      not to create orphans.
765 kes  Apply patch from Rudolf Cejka bug #617 to use mtime instead of ctime
766      in restore long listing.
767 kes  Apply patch from Rudolf Cejka bug #609 to use MarkId in verify.c instead
768      of incorrect MarkedId.
769 kes  Apply patch from adioso bug #616 to correct text in manual (replace
770      Director with File daemon).
771 kes  Rework a few of the zlib changes so that they build properly.
772
773 21May06
774 kes  Move DIR 'run' command to SD before starting the message thread
775      as suggested by Cristopher Hull to avoid a race deadlock from
776      two threads using the bsock structure.
777 kes  Modify LICENSE to correct some problems pointed out by Debian.
778 05May06
779 kes  Correct EOF with no \n lex.c problem.
780 kes  Tweak compat.h compat.cpp and merge with apcupsd
781 kes  Add additional INFO messages if autochanger cannot be used.
782
783 02May06
784 kes  Simplify Win32 Makefile
785 kes  Correct count of buffers/bytes used by smartall.c
786 kes  Updated compat.h after porting apcupsd to MinGW.
787 01May06
788 kes  Work on getting wx-console building on MinGW. wxWidgets now builds
789      started adding Makefile ...
790 kes  Moved MinGW library objects to src/win32/lib to reduce clutter.
791 30Apr06
792 kes  Reloading a bad configuration file doesn't kill director any more.
793      Thanks to fix from Eric Bollengier.
794 29Apr06
795 kes  Fix problem of accents with new Win32 code.
796 kes  Integrate Howard's VSS patch. Tweak it a bit. VSS now
797      works in the MinGW build with the exception that there
798      is a problem with accented characters -kes  i.e. there is
799      some mapping problem with wide characters.
800 kes  The code no longer compiles with Microsoft VC++.
801 28Apr06
802 kes  Start implementing Christopher's St.Bernard code.
803 kes  Add Christopher's mods for opening files.
804 kes  Strip \r \n from Win32 error messages (Christopher)
805 kes  Add more info about Win32 system if unknown (Christopher)
806 kes  Use bstrn(cpy, cat) routines to avoid overrun in compat.cpp
807 kes  Fix a number of incorrect strings marked for translation, when
808      they should not be (e.g. commands).
809 kes  Fix StartTime bug reported for ClientRunBeforeJob and RunBeforeJob
810      Patches supplied by user in bugs #608 and #599.
811 kes  Use most recent of st_ctime and st_mtime in restore tree DIR
812      listing. This fixes some problems with Win32 printing incorrect
813      values.
814 kes  Correct the clock shift comm time calculation between the DIR
815      and the FD. It was added rather than subtracted.
816 kes  Strip all backslashes in filenames to be restored on Win32
817      machines -kes  the names should all be in Unix format, and if
818      there are any backslashes it is most likely due to an improper
819      FileSet definition, and the files will not otherwise be 
820      restorable.
821 kes  Remove lib/regex.c (replaced by bregex.c).
822 kes  Delete src/win32/License.txt
823 kes  Modify installer to install LICENSE
824 26Apr06
825 kes  Fix bug in build-win32-cross-tools script reported by Howard
826 kes  Implement cross compiled bconsole
827 25Apr06
828 kes  Fix barcode test, eliminate BOOL (doesn't exist on Linux).
829 kes  Write first cut of README.mingw32
830 kes  Add back ua_label barcode fix from Rufolf Cejka.
831 kes  Integrate the majority of the Mingw cross-tools submission
832      made by Howard Thomson. Everything compiles, with zlib, openssl,
833      and VSS turned off. Linking needs a pthreads library ...
834 23Apr06
835 kes  Add 'Dir Status' button to the gnome console.
836 kes  More work on migration.
837 kes  Restore non-compatible base64 coding to permit compatibility.
838 kes  Display heap stats in Storage daemon without debug level.
839 22Apr06
840 kes  Integrate most of the MinGW changes -kes  more to do.
841 21Apr06
842 kes  Implement using pg_config for finding PostgreSQL files.
843      Fixes bug #600. Patch supplied by user.
844 kes  Remove -t option from mktemp in mtx_changer.in and use
845      working directory. Fixes bug #578.
846 kes  Update job start time after the any run before job so that
847      files created by the script are only backed up once. Fixes
848      bug #599.
849 kes  Strip trailing newline only from filenames entered in
850      the restore command when reading a file. This permits
851      the user to enter filenames with trailing spaces. Fixes
852      bug #549. The user supplied a patch that I modified slightly.
853 kes  Use the most recent time (st_mtime, st_ctime) in the dir
854      command in restore. This gives the user a better idea of what
855      the newest file really is. This fixes bug #574. The fix
856      was suggested by the user.
857 kes  Implement a compatible version of base64. This permits external
858      programs to duplicate Bacula's base64 algorithm using standard
859      routines. This fixes bugs #296, and 565. Patch submitted by   
860      author of bug #565.  
861      ================= Note ========================
862      Previous Signatures stored in the database are no longer
863      compatible with this. The main downside is for Verify jobs,
864      and doing an InitCatalog run will fix the problem. Also, the
865      authentication between the deamons is changed, so all daemons
866      must be simultaneously upgraded.
867      ==============================================
868      If you don't like this fix, set:
869        const bool compatible = true;
870      to
871        const bool compatible = false;
872      in src/lib/base64.c
873 20Apr06
874 kes  Ensure that DB signature is never NULL.
875 kes  Ensure that DB table names are not translated.
876 kes  Fix scheduler to handle time skew (eg daylight savings).
877 kes  Fix scheduler to use lock_jobs() to avoid most problems
878      with reload. Window is now milliseconds.
879 19Apr06
880 kes  Apply patch from Christopher Hull
881      kes  Allow multiple connections to database with different
882        parameters.
883      kes  Invalidate the scheduler when doing a reload. Fixes seg
884        fault, but still 60 second window.
885      kes  Additional info in Reschedule message.
886      kes  Use set_jcr_job_status() everywhere to prevent loss of
887        cancel, error.
888      kes  Display peer IP in FD if error from connecting DIR.
889      kes  Don't increment file count for DIRBEGIN.
890      kes  Replace illegal characters in Win32 filename by _.
891      kes  Add SE_CREATE_PERMANENT_NAME privilege in Win32.
892      kes  Hash hard link filenames rather than linked list.
893      kes  Fix for security failure in chdir on Win32.
894      kes  Add CreateDirectoryA/W win32 API entry points.
895 kes  Add /silent option to Win32 FD for Install/Remove service.
896 kes  Always print Heap statistics in FD.
897 18Apr06
898 kes  Remove the -f option from the chown in Makefile.in for more
899      portability.
900 kes  Change setting the group in Makefile.in to use chgrp for
901      more portability.
902 kes  Implement a write_store and read_store to replace
903      dirstore in reserve.c
904 kes  Implement a Bacula read/write lock for Python rather
905      than using the Python lock to avoid recursive problems.
906 kes  Correct the uninstall directory names in filed/Makefile.in
907      as reported by a user.
908 17Apr06
909 kes  Correct some problems with database creation (new tables).
910 kes  Replace a bunch of old 0x%x by %p.
911 kes  Get first cut of Migration with Job selection working.
912 16Apr06
913 kes  Change store_bit() to store_bool() for the Spooling in 
914      dird_conf.c -kes  bug reported by Robert Nelson.
915 15Apr06
916 kes  Correct Makefile bug found by Dan Langille.
917 14Apr06
918 kes  Correct Makefile for Solaris /bin/sh
919 kes  Correct mtx-changer.in for Solaris /bin/sh
920 kes  Abort if a conf resource does not have a Name =
921 12Apr06
922 kes  Change the name of the regex program to bregex.
923 kes  Add the bwild program to the tools directory. It is similar
924      to the bregex program.
925 kes  Implement create bregex.h and bregex.c in src/lib from the
926      Python regexp program.  
927 kes  Use the new bregex.c to implement Regex expressions on Win32.
928 11Apr06
929 kes  More work on migration.
930 kes  Implement wild program in tools directory for testing
931      wild-cards. Almost identical to the regex program.
932 kes  Up port VSS single thread locking code.
933 kes  Replace N_(..) by NT_(...) to inhibit translation of
934      commands.
935 kes  Modify Makefile to change the permissions on Working Directory
936      to 770 if the directory is created.
937 kes  Do not fail the Makefile if changing the permissions or 
938      owner/group on WorkingDir fails.
939 kes  Remove early selection of Scratch Volumes in the recycling
940      algorithm.
941 kes  Correct the old recycling algorithm so that Scratch Volumes
942      are selected when looking for a Volume in the changer.
943 kes  Correct a typo in the Verify SQL reported by Joe Park.
944 10Apr06
945 kes  Remove automatic case folding on Windows FDs. You must
946      explictly use the 'Ignore Case = yes' option.
947 kes  Remove the code added to 1.38.6 and 1.38.7 that pulls a
948      scratch volume in an Autochanger early in the 'recycling'
949      algorithm.  
950 09Apr06
951 kes  Make weof() and clrerror() methods of class DEVICE.
952 08Apr06
953 kes  Tweak license to include Microsoft restrictions.
954 kes  Move mysql.reconnect to after real_connect().     Thanks to
955      Frank Sweetser for the patch.
956 kes  Disallow a backslash in a File = directive (Windows junk)
957      unless the string is quoted.                     
958 kes  Apply Eric's patch to ua_label.c so that daemon protocol
959      is not translated.
960 kes  Add NT_ definition for strings that should not be translated.
961 kes  Apply NT_() to ua_label.c
962 kes  Remove timed wait for VSS on Win2K3 as it is not yet
963      implemented.
964 kes  Correct bacula.in script to reference bacula-ctl-xx in the
965      sysconfig directory rather than the bin directory.
966 26Mar06
967 kes  Fix a long standing bug in the bacula start/stop scripts.
968 kes  Attempt to add the new bacula-ctl-* files to the rpm.
969 kes  Switch to using typeof() for list traversing to avoid
970      as many FC5 g++ compiler warnings as possible.
971 25Mar06
972 kes  Split the bacula start/start script into four files:
973       bacula         -kes  starts and stops calling other scripts
974       bacula-ctl-dir -kes  starts/stops the director
975       bacula-ctl-fd  -kes  starts/stops the File daemon
976       bacula-ctl-sd  -kes  starts/stops the Storage daemon
977 24Mar06
978 kes  Create datestyle fix for PostgreSQL. Fixes bug #574.
979 kes  Correct editing of JobId from int to int64 in fd_cmds.c
980 kes  Eliminate FileSet name race with bash_spaces() and multiple
981      threads by bashing in a local.
982 kes  Fix error return from 'use storage' to print a correct error
983      message rather than nothing.
984 kes  Correct false re-read last block error message when two jobs 
985      are simultaneously writing at the end of a tape.
986 kes  Simplify exit conditions in the reserve.c code to avoid     
987      possible non-release of reservation_lock().
988 kes  Suffle lock order in reserve to avoid deadlock between
989      reservation lock and device mutex.
990 21Mar06
991 kes  Initialize jcr mutex before first use. Thanks to Thorsten for
992      tracking this down for me !!!! as it broke the Win32 build.
993 20Mar06
994 kes  Integrate addition of line count limitation to bsmtp -l from
995      Sebastian Stark <stark at tuebingen.mpg.de>
996 17Mar06
997 kes  Implement regex test program in tools directory.
998 kes  Attempt to fix time problem with bsmtp with foreign langs.
999 kes  Add strip_trailing_newline() submitted by user.
1000 kes  Implement regex matching in migrate.c
1001 16Mar06
1002 kes  Fix bug #537 to allow arbitrary time to mount a volume for
1003      restore, if polling is turned on.     
1004 kes  If dir_user or dir-group is specified in ./configure apply it to
1005      the working-dir. Fixes bug #533.
1006 kes  If rescheduling a job cancel the previous incarnation with the SD.
1007      Fixes bugs #566 and 557.
1008 kes  Fix bug #567 do_message() definition type conflict.
1009
1010 14Mar06
1011 kes  Add more jcr methods and make mutex and use_count private.
1012 kes  Create lock/unlock methods for jcr.
1013 kes  Fix PostgreSQL bug doing sql_data_seeek() by explicitly reading
1014      records to get to seek position.
1015 kes  Integrate patch from bug #561 to correct conio.c signal definitions.
1016 kes  Fix Rescheduling failed Jobs. Ensure that SD message thread 
1017      terminates correctly by doing pthread_kill(). Do not destroy
1018      SD cond wait variable between executions of the job. Use local
1019      mutex for cond variable to avoid blocking jcr chain. Fix poor 
1020      use of jcr use count in jobq.c for restarted jobs.
1021 kes  Fix obsolete usage of foreach_dlist() to use foreach_jcr() in
1022      lib/jcr.c -kes  prevents locking the jcr chaing.
1023 kes  Apply patch from bug #564, which corrects listing volumes with
1024      multiple autochangers. Apply same fix to next volume list.
1025 kes  Fix bug #562 where restore bootstrap file is not unique.
1026 kes  More details in implementing David's migration syntax proposal.
1027 kes  Save and restore dcr when swapping drives so that if we have
1028      a write dcr it is not lost.
1029 kes  Use new routine lock_reservations() to lock the reservations
1030      system, and call it while looking for a volume in askdir.c.
1031      This could possibly fix bug #543.
1032 kes  Stop SD command loop if job is canceled.
1033
1034 08Mar06
1035 kes  Remove old code from findlib/create_file.c
1036 kes  Rename mac.c migrate.c
1037 kes  Add user friendly display of VolBytes in job report.
1038 kes  Rename target... to previous... to make it a bit easier to
1039      understand.
1040 kes  Add selection type and selection pattern to Migration (idea
1041      given by David Boyes). 
1042
1043 04Mar06
1044 kes  The po files should now be current.
1045 kes  Fix new sql_use_result() code to properly release the
1046      buffers in all cases.
1047 kes  Use the keyword ujobid to mean the unique job id; job or jobname
1048      to mean the Job name given on the Name directive, and jobid to
1049      be the numeric (non-unique) job id.
1050 kes  Allow listing by any of the above.
1051 kes  Add the user friendly job report code for reporting job elapsed time
1052      and rates with suffexes from John Kodis <kodis at comcast.net>.
1053 kes  Add Priority and JobLevel as Python settable items.
1054 kes  Use TEMPORARY table creation where the table is created by
1055      Bacula.
1056 kes  Add new code submitted by Eric for waiting on specific jobid.
1057 kes  Add ACL checking for the dot commands.
1058 kes  Fix restore of writable FIFOs.
1059 kes  Fix a bug in bpipe where the string was freed too early.
1060 27Feb06
1061 kes  Modify the Python class examples to inherit object -kes  new way
1062      of defining classes. Patch from Felix Schwarz.
1063 kes  Implement jobuid to replace old usage of job in keywords as
1064      suggested by Eric Bollengier.
1065 kes  Apply patch for enhancing wait from Eric Bollengier. On can now:
1066       wait  (wait for all jobs to stop)
1067       wait jobid=nn
1068       wait jobuid=unique id
1069       wait job=job-name
1070 kes  Implement write variables for Python to set Priority (anytime), and
1071      Job Level, only during JobInit event.
1072 26Feb06
1073 kes  Fix the block listing bug pointed out by Arno.
1074 kes  Update the po files at Eric's request.
1075 24Feb06
1076 kes  Fix Maximum Changer Wait, Maximum Open Wait, Maximum Rewind Wait to 
1077      accept time qualifiers.
1078 kes  Make catalog respect ACL.
1079 kes  Add recycle count to Media record.
1080
1081 Changes to 1.39.6-beta1 24Feb04
1082 23Feb06
1083 kes  Add Rudolf Cejka's new rc-chio-changer.
1084 kes  Implement pulling Volume from Scratch Pool if the
1085      Volume is in the autochanger.
1086 kes  Implement additional command arguments for update Volume.
1087
1088 Changes to 1.39.5 
1089 22Feb06
1090 kes  Back port changes to 1.38.5
1091 kes  Fix recycle SQL for StorageId.
1092 kes  Fix misplaced quote in mtx-changer script.
1093 20Feb06
1094 kes  Note. Your database must be updated, or you must create 
1095      a new database. I have not yet incremented the database level.
1096 kes  Add Location table. 
1097 kes  Add LocationId, DeviceId, and MediaTypeId to Media record.
1098 18Feb06
1099 kes  Implement create/get mac record in database for adding extended
1100      Migration data to the job record.
1101 kes  Add new MAC table to update/make database scripts.
1102 kes  Return Storage name used when getting VolumeNames for a job.
1103 kes  Change bsr file keyword Storage to Device, which is more accurate.
1104 kes  Ensure that Mac records are pruned/purged.
1105 kes  Tweak SD tools to deal with changing media type.
1106 kes  Integrate more dev.c subroutines as methods (e.g. strerror, bsr, ...)
1107 kes  Pass pointer to dcr pointer to acquire_device_for_read() so
1108      that the subroutine can switch devices, and hence dcrs.
1109 kes  Modify the multiple MediaType read code to re-use the same
1110      dcr when switching devices. This makes the code much more
1111      robust.
1112 kes  Integrate patch from Karl Hakimian that reads JobIds, FileIndexes
1113      from a table for restore.
1114 kes  Add Storage name to VolParams, but it really should be Device.
1115 14Feb06
1116 kes  Add disk-changer to scripts directory + configure/Makefile
1117 kes  Eliminate PoolId from jcr -kes  it is in jcr->jr.PoolId
1118 kes  Implement store_bit scanner to replace store_yesno.     Mostly done.
1119 kes  Implement new store_bool that stores in a bool. 
1120 kes  Add true/false to yes/no conf directives.
1121 kes  Make first cut at changing appropriate store_yesno to store_bool.
1122 kes  Complete implementation of Pool storage devices.
1123 kes  Move starting clones to job.c
1124 kes  Move create_restore_bootstrap_file() to job.c
1125 kes  Make copy_storage() more general to be able to handle
1126      Pool storage.
1127 kes  Cleanup a lot of migration code for manual running, including
1128      using Pool storage.
1129 kes  Move getting a scratch Volume into a subroutine.
1130 kes  Make all places a Volume that is added to a pool to 
1131      respect max vols.
1132 kes  Fix bug in autochanger recycle code (improper edit 64 bit).
1133 kes  Fix segfault in restore command when no value specified.
1134 kes  Start adding code to handle multiple MediaTypes in restore.
1135 kes  Eliminate race condition in getting Volume name for
1136      two drive autochanger.
1137 kes  More debug code in autochanger.
1138 kes  Add storage keyword to bootstrap file, add parsing.
1139 kes  Move slot in bsr file into Volume record as there will be
1140      a different slot for each Volume.
1141 kes  Create reserve.h
1142 07Feb06
1143 kes  Implement Pool storage overrides.
1144 06Feb06
1145 kes  Implement first cut of Migration.
1146 kes  Implement mysql_use_result() from patch by Karl Hakimian.
1147      This reduces significantly the memory consumption during
1148      the restore tree building, and hence runs faster too.
1149 kes  Implement StorageId patch supplied by user (reggie) in bug
1150      #536.  This should permit Bacula to work correctly with two
1151      autochangers.
1152 kes  Implement Job listing variations suggested by a user.
1153 kes  Move updating bootstrap code in backup.c to subroutine
1154      update_bootstrap_file().
1155 kes  Add new job status elapsed time and bytes written user
1156      friendly job report output patch sent by John Kodis
1157      <kodis at comcast.ne>.
1158 kes  Implement a storage list in Pools.
1159 kes  Separate out setup_job() code from run_job().
1160 kes  Get migration working -kes  lots of changes in mac.c in both
1161      DIR and SD.
1162 kes  Apply patch from user (Eric Bollengier I think) that fixes a     
1163      DIR crash when no arguments are supplied to a dot command.
1164 kes  Fix typo (strcpy->strcmp) in ua_prune.c as reported by Martin.
1165 kes  Fix command arg name->volume in label command of gnome-console.
1166 kes  Fix SD acquire.c to release correct DCR by explicitly testing
1167      on the dcr address rather than trying to devine if it is a read
1168      or write dcr.  This failed in error conditions when the device was
1169      not fully setup.
1170  
1171 30Jan06
1172 kes  Apply user supplied patch for more readable rate output
1173      in job report.
1174 kes  Continue implementing migration.
1175 kes  Implement support for removable filesystems in SD.
1176 kes  Ensure that btraceback scripts can be read by anyone.
1177 kes  Replace dvd-freespace and dvd-writepart by dvd-handler.
1178 kes  Correct bug where canceling restore before the FD contacts
1179      the SD causes the drive to be left in read mode.
1180 kes  Move ofline_or_rewind into DEVICE::close().
1181 kes  Eliminate close_device.
1182 kes  Convert several dev subroutines to methods (e.g. bsf,
1183      eod, ...)
1184 kes  Eliminate force_close_device().
1185 kes  Implement Device Type directive in Device resource that
1186      can have values File, Tape, Fifo, DVD, or Prog.
1187 kes  Add has_cap() method to Device.
1188 Changes to 1.39.4
1189 17Jan06
1190 kes  Add patch from bug #527 to allow RedHat user to specify
1191      options/user/group for starting each daemon in      
1192      /etc/sysconf/bacula.
1193 16Jan06
1194 kes  Add two new queries to query.sql provided by Arno. One
1195      list volumes known to the Storage device, and the other
1196      lists volumes possibly needing replacement (error, ...).
1197 15Jan06
1198 kes  Add periodic (every 24 hours) garbage collection of memory 
1199      pool by releasing free buffers.
1200 14Jan06
1201 kes  Correct bug counting sized (for display only) in smartall.c
1202 kes  Print FD mempool stats if debug > 0 rather than 5.
1203 12Jan06
1204 kes  Make db_lock() mutex error fail the job rather than abort
1205      Bacula.  Canceling the job caused the mutex to fail.
1206 kes  Correct bug in alist.c that re-allocated the list if the
1207      number of items goes to zero.
1208 kes  Move the reservation system thread locking to the top level
1209      so that one job at a time tries all possible drives before
1210      waiting.
1211 kes  Implement a reservation 'fail' message queue that is built            
1212      and destroyed on each pass through the reservation system.
1213      These messages are displayed in a 'Jobs waiting to reserve
1214      a drive' list during a 'status storage='.  Note, multiple
1215      messages will generally print for each JobId because they
1216      represent the different problems with either the same drive
1217      or different drives.  If this output proves too confusing
1218      of voluminous, I will display it only when debug level 1
1219      or greater is enabled in the SD.
1220 11Jan06
1221 kes  Add enable/disable job=<job-name>.     This command prevents
1222      the specified job from being scheduled. Even when disabled,
1223      the job can be manually started from the console.
1224 kes  During 'update slots' clear all InChanger flags where the
1225      StorageId is zero (old Media records).
1226
1227 Beta release 1.38.4:
1228 09Jan06
1229 kes  Fix autochanger code to strip leading spaces from returned
1230      slots number. Remove bc from chio-changer.
1231 kes  Back port a bit of 1.39 crypto code to reduce diffs.
1232 kes  Fix first call to autochanger that missed close()ing the
1233      drive. Put close() just before each run_program().  Fixes
1234      Arno's changer bug.
1235 07Jan06
1236 kes  Add PoolId to Job record when updating it at job start time.
1237 06Jan06
1238 kes  Pull in more code from 1.39 so that there are fewer file
1239      differences (the new ua_dotcmds.c, base64.h, crypto.h
1240      hmac.c jcr.c (dird and lib) lib.h md5.h parse_conf.c 
1241      util.c. Aside from ua_dotcmds.c these are mostly crypto
1242      upgrades.
1243 kes  Implement new method of walking the jcr chain. The
1244      incr/dec of the use_count is done within the walking
1245      routines.  This should prevent a jcr from being freed
1246      from under the walk routines.
1247
1248
1249 Changes to 1.39.3:
1250 04Jan06
1251 kes  Start implementing Verify list output.
1252 kes  Move the suitable_drive flag to a better place to prevent
1253      premature termination of the reservation if all drives
1254      are busy -kes  should fix Arno's diff/inc pool failures.
1255 26Dec05
1256 kes  Add mutex to single thread VSS code in Win32.
1257 22Dec05
1258 kes  Simplify code in askdir.c that waits for creating an appendable
1259      volume so that it can handle multiple returns from the wait
1260      code.
1261 kes  Modify the wait code to permit multiple returns.
1262 kes  Return a zero when 'autochanger drives' is called and
1263      it is not an autochanger.
1264 kes  Make rewind_dev() a method taking a DCR as an argument.
1265      This permits closing and reopening the drive if the
1266      rewind fails as happens if the drive was loaded while the
1267      file descriptor was open. This refreshes the file descriptor.
1268 kes  Remove the ST_OPENED flag and always rely on fd < 0 for knowing
1269      if the device is open or not.  This should eliminate
1270      Arnos problem.
1271 kes  Return error if reserve cannot find at least one suitable device.
1272 kes  Make wait_for_sysop() return correct state information.
1273 kes  Fix Win32 state file problem. write was not using compat
1274      code. This should fix bug #500.
1275 21Dec05
1276 kes  Modify gui on command to set only GUI mode and not batch.
1277 kes  Modify .messages command to always print messages regardless
1278      of the mode.
1279 kes  If GUI mode is on, suppress automatic printing of 
1280      You have messages. 
1281 kes  Delete old bnet packet code.
1282 kes  Ignore new BNET_START_SELECT and BNET_END_SELECT signals in
1283      wx-console. -kes  not implemented because bconsole must be updated.
1284 kes  Modify restore command in wx-console to set gui on and to use
1285      only .messages instead of messages.  Hopefully this fixes bug
1286      #514.
1287 kes  Fix seg fault in exit of acquire when canceling a job --
1288      reported by Wolfgang Denk
1289 kes  Pull in latest reservation system changes from 1.38
1290 kes  Make .messages command always print messages regardless
1291      of the automessages flag.
1292 17Dec05
1293 kes  Fix seg fault if user labels a drive directory bug #513
1294 kes  Remove quotes around Version as it breaks things.
1295 16Dec05
1296 kes  Merge in Aleksandar Milivojevic's mods to the spec file.
1297 kes  Apply sparse code fix for raw drives and fifos. Bug 506
1298 kes  Thorsten fixed Unicode cd problem with wx-console bug 505.
1299 14Dec05
1300 kes  Correct reservation system to do a last ditch try
1301      for any mounted volume, then anyone anywhere.
1302 kes  Add quotes around table Version because of
1303      error in MySQL 4.1.15 -kes  bug report submitted.
1304 kes  Correct some minor problems with btape in the fill
1305      command.
1306 kes  Updates to ssh-tunnel from Joshua Kugler.
1307 kes  Added a report.pl program from Jonas Bjorklund.               
1308 kes  Simplify the O_NONBLOCK open() code for tape drives,
1309      and always open nonblocking.
1310 kes  Do not wait for open() if EIO returned (shouldn't happen).
1311 kes  Eliminate 3 argument to tape open().
1312 kes  Correct the slot # edited in the 3995 Bad autochanger unload
1313      message.
1314 kes  With -S on bscan (show progress) do not divide by zero.
1315 13Dec05
1316 kes  Make cancel pthread_cond_signal() pthread_cond_broadcast().
1317 kes  When dcr is freed, also broadcast dev->wait_next_vol signal.
1318 kes  Remove unused code in wait_for_device.     
1319 kes  Make wait_for_device() always return after 60 seconds of wait.
1320
1321 Changes to 1.39.2:
1322 13Dec05
1323 kes  Add stubs for non-crypto build.
1324 12Dec05
1325 kes  Use localhost if no network configured
1326 11Dec05
1327 kes  Eliminated duplicate MaxVolBytes in cat update -kes  bug 509.
1328 kes  Remove debug print.
1329 kes  Add bail_out in error during state file reading.
1330 10Dec05
1331 kes  Merge changes made to 1.38.3 into HEAD
1332 kes  Add stubs for pygtk-console code
1333 kes  Create Makefile.in for pygtk-console code
1334 09Dec05
1335 kes  Merge updates into 1.38 branch
1336 kes  Update specs to include mysql4 define.
1337 kes  Fix when attributes are sent, must be after binit().
1338 kes  Stop read_record() if status not ok in second loop.
1339 kes  Return rec->FileIndex in dcr->VolLastIndex for normal
1340      and partial records in read_record().  This allows bscan
1341      to get FileIndex at EOT correct.
1342 kes  Fix butil.c to correctly set dcr -kes  fixes seg fault in bls.
1343 08Dec05
1344 kes  Fix Win32 built to work with new crypto code.
1345 kes  Apply patch supplied by user (slightly modified) to fix
1346      correct detection of holes in block devices and FIFOs. 
1347      Bug # 506.
1348 kes  Apply patch supplied by user (slightly modified) 
1349      to fix SD hang with multiple pools and bad client
1350      IP. Fixes bug # 508.
1351 07Dec05
1352 kes  Add nagios plugin to the examples directory. Submitted by
1353      Christian Masopust.
1354 kes  Remove warning message about multiple saves of hardlinked files
1355      from find_one.c as it can generate too many warning messages.
1356 kes  Modify most restore error messages to be queued so that they
1357      appear at the end of the job rather than mixted with the restore
1358      listing where they could be 'lost'.
1359 06Dec05
1360 kes  Reset timeout values before select() per patch from 
1361      Frank Sweetser for problems with non-blocking sockets.
1362 kes  Unlink the state file if either reading or writing it gets
1363      errors.  Hopefully this will fix Win32 exit problems.
1364 kes  Add sanity check in append.c to ensure that dcr is not NULL.
1365      This can happen if multiple drive autochanger SCSI control
1366      channel and drive indicies do not correspond.
1367 05Dec05
1368 kes  Get next volume from Scratch pool before creating a volume.
1369 kes  Set new Pool defaults in Vol when moved from Scratch Pool.
1370 kes  Remove argument from create_bacula_database for SQLite as it
1371      caused an error.
1372 kes  Add back index code so that two drive autochangers can get
1373      a second tape.
1374 kes  Change a bunch of debug levels to aid debugging autochangers.
1375 kes  Fix reservation so that mutexes are properly applied.
1376 kes  Rework reservation algorithm so that two drives can be used
1377      at the same time.
1378 04Dec05
1379 kes  Landon merged his data encription changes into the HEAD
1380 kes  Apply days keyword patch from Alexander.Bergolth at wu-wien.ac.at 
1381      If this patch is applied, the number of days can be specified with
1382      'list nextvol days=xx'
1383      or
1384      'status dir days=xx'
1385      My use case is to be able to preview the next scheduled job (and the 
1386      next tape to be used) on fridays if there are no scheduled jobs during 
1387      the weekend.
1388 Changes to 1.39.1:
1389 03Dec05
1390 kes  Fix font code in gnome2 console user patch. Fixes bug #501.
1391 kes  Fix malformatted bnet error message that caused seg fault
1392      fixes bug 502
1393 kes  Applied user patch to improve README.vc8 in src/win32.
1394 29Nov05
1395 kes  Add Migrate, Copy, Archive Job types (some where there)
1396 kes  Correct some more editing of JobId's (for 64 bit compatibility).
1397 kes  Ensure that StorageId is stored in Media record when ever possible.
1398 kes  Add Migration Job to Job.
1399 kes  Add Migration Time, Migration High Bytes, Migration Low Bytes
1400      Next Pool to Pool resource.
1401 kes  Add more code to mac.c (migration archive copy).
1402 kes  Change Start Storage daemon job to require read and write storage
1403      pointers.
1404 kes  Pass read storage data to SD as well as write storage data.
1405 kes  Remove old code from winservice.cpp
1406 kes  Break on error in scan.
1407 kes  Fix typo in signal.c
1408 kes  Separate read/write DCR in SD.     Add jcr->read_dcr.
1409 kes  Cleanup how find_device() works.
1410 kes  Add read output to Status in SD.
1411 Changes to 1.39.0:
1412 23Nov05
1413 kes  Add red-black btree routines
1414 21Nov05
1415 kes  Remove abs() in bfile.c so that it compiles on Solaris. 
1416      Bug #491.
1417 20Nov05
1418 kes  Fix crash in tray-monitor when daemon disconnects. Bug #479.
1419 kes  Fix bnet-server bug found on OpenBSD. Bug #486
1420 kes  Fix cancel failure bug. Bug #481
1421 kes  Fix failure when Pool name has spaces. Bug #487      
1422 kes  Fix SD crash in autochanger code. Mutex failure. Bug #488
1423 kes  Fix a couple of free()s in src/filed/acl.c
1424 kes  Fix memory overrun in bfile.c in building OS X resource
1425      fork filename. Bug #489 
1426 kes  Add Pool name to SD status output.
1427 14Nov05
1428 kes  Apply SunOS patch for ACLs submitted by David Duchscher.                     
1429 kes  Make sure to set storage before trying to set drive.
1430 kes  Add bacula_mail_summary.sh to examples directory. It makes
1431      a single email summary of any number of jobs. Submitted
1432      by Adrew J. Millar.
1433 kes  Make sure when we do a mount to unblock the device even
1434      if the drive could not be opened.  
1435 13Nov05
1436 kes  Remove the USE_WIN32STREAMEXTRACTION #defines (always on)
1437      and correct a few minor problems to make it build on Linux.
1438 10Nov05
1439 kes  Remove delete of CVS from all Makefiles
1440 kes  Fix seg fault when clicking on Add button in wx-console
1441      restore panel.  Bug #470.
1442 kes  Fix copyright date and URL typo -kes  bug #468.
1443 kes  Change autostart install for FreeBSD to look for rc.conf     
1444      rather than rc.local as suggested fix for bug #466.
1445 kes  Apply patch supplied by Eric Bollengier to fix PostgreSQL       
1446      grant on status. Bug #465
1447 kes  Apply patch supplied by Eric Bollengier to fix PostgreSQL
1448      update script. Bug #464
1449 kes  Tweak #ifdefing a bit in new Win32 stream code.
1450 kes  Fix #ifdeffing for FD_NO_SEND_TEST.
1451 kes  Add documentation of performance #defines