Technical notes on version 1.39 Kern Sibbald General: Changes to 1.39.3: 20Dec05 - Modify gui on command to set only GUI mode and not batch. - Modify .messages command to always print messages regardless of the mode. - If GUI mode is on, suppress automatic printing of You have messages. - Delete old bnet packet code. - Ignore new BNET_START_SELECT and BNET_END_SELECT signals in wx-console. - Modify restore command in wx-console to set gui on and to use only .messages instead of messages. Hopefully this fixes bug #514. - Fix seg fault in exit of acquire when canceling a job -- reported by Wolfgang Denk - Pull in latest reservation system changes from 1.38 - Make .messages command always print messages regardless of the automessages flag. 17Dec05 - Fix seg fault if user labels a drive directory bug #513 - Remove quotes around Version as it breaks things. 16Dec05 - Merge in Aleksandar Milivojevic's mods to the spec file. - Apply sparse code fix for raw drives and fifos. Bug 506 - Thorsten fixed Unicode cd problem with wx-console bug 505. 14Dec05 - Correct reservation system to do a last ditch try for any mounted volume, then anyone anywhere. - Add quotes around table Version because of error in MySQL 4.1.15 -- bug report submitted. - Correct some minor problems with btape in the fill command. - Updates to ssh-tunnel from Joshua Kugler. - Added a report.pl program from Jonas Bjorklund. - Simplify the O_NONBLOCK open() code for tape drives, and always open nonblocking. - Do not wait for open() if EIO returned (shouldn't happen). - Eliminate 3 argument to tape open(). - Correct the slot # edited in the 3995 Bad autochanger unload message. - With -S on bscan (show progress) do not divide by zero. 13Dec05 - Make cancel pthread_cond_signal() pthread_cond_broadcast(). - When dcr is freed, also broadcast dev->wait_next_vol signal. - Remove unused code in wait_for_device. - Make wait_for_device() always return after 60 seconds of wait. Changes to 1.39.2: 13Dec05 - Add stubs for non-crypto build. 12Dec05 - Use localhost if no network configured 11Dec05 - Eliminated duplicate MaxVolBytes in cat update -- bug 509. - Remove debug print. - Add bail_out in error during state file reading. 10Dec05 - Merge changes made to 1.38.3 into HEAD - Add stubs for pygtk-console code - Create Makefile.in for pygtk-console code 09Dec05 - Merge updates into 1.38 branch - Update specs to include mysql4 define. - Fix when attributes are sent, must be after binit(). - Stop read_record() if status not ok in second loop. - Return rec->FileIndex in dcr->VolLastIndex for normal and partial records in read_record(). This allows bscan to get FileIndex at EOT correct. - Fix butil.c to correctly set dcr -- fixes seg fault in bls. 08Dec05 - Fix Win32 built to work with new crypto code. - Apply patch supplied by user (slightly modified) to fix correct detection of holes in block devices and FIFOs. Bug # 506. - Apply patch supplied by user (slightly modified) to fix SD hang with multiple pools and bad client IP. Fixes bug # 508. 07Dec05 - Add nagios plugin to the examples directory. Submitted by Christian Masopust. - Remove warning message about multiple saves of hardlinked files from find_one.c as it can generate too many warning messages. - Modify most restore error messages to be queued so that they appear at the end of the job rather than mixted with the restore listing where they could be "lost". 06Dec05 - Reset timeout values before select() per patch from Frank Sweetser for problems with non-blocking sockets. - Unlink the state file if either reading or writing it gets errors. Hopefully this will fix Win32 exit problems. - Add sanity check in append.c to ensure that dcr is not NULL. This can happen if multiple drive autochanger SCSI control channel and drive indicies do not correspond. 05Dec05 - Get next volume from Scratch pool before creating a volume. - Set new Pool defaults in Vol when moved from Scratch Pool. - Remove argument from create_bacula_database for SQLite as it caused an error. - Add back index code so that two drive autochangers can get a second tape. - Change a bunch of debug levels to aid debugging autochangers. - Fix reservation so that mutexes are properly applied. - Rework reservation algorithm so that two drives can be used at the same time. 04Dec05 - Landon merged his data encription changes into the HEAD - Apply days keyword patch from Alexander.Bergolth at wu-wien.ac.at If this patch is applied, the number of days can be specified with "list nextvol days=xx" or "status dir days=xx" My use case is to be able to preview the next scheduled job (and the next tape to be used) on fridays if there are no scheduled jobs during the weekend. Changes to 1.39.1: 03Dec05 - Fix font code in gnome2 console user patch. Fixes bug #501. - Fix malformatted bnet error message that caused seg fault fixes bug 502 - Applied user patch to improve README.vc8 in src/win32. 29Nov05 - Add Migrate, Copy, Archive Job types (some where there) - Correct some more editing of JobId's (for 64 bit compatibility). - Ensure that StorageId is stored in Media record when ever possible. - Add Migration Job to Job. - Add Migration Time, Migration High Bytes, Migration Low Bytes Next Pool to Pool resource. - Add more code to mac.c (migration archive copy). - Change Start Storage daemon job to require read and write storage pointers. - Pass read storage data to SD as well as write storage data. - Remove old code from winservice.cpp - Break on error in scan. - Fix typo in signal.c - Separate read/write DCR in SD. Add jcr->read_dcr. - Cleanup how find_device() works. - Add read output to Status in SD. Changes to 1.39.0: 23Nov05 - Add red-black btree routines 21Nov05 - Remove abs() in bfile.c so that it compiles on Solaris. Bug #491. 20Nov05 - Fix crash in tray-monitor when daemon disconnects. Bug #479. - Fix bnet-server bug found on OpenBSD. Bug #486 - Fix cancel failure bug. Bug #481 - Fix failure when Pool name has spaces. Bug #487 - Fix SD crash in autochanger code. Mutex failure. Bug #488 - Fix a couple of free()s in src/filed/acl.c - Fix memory overrun in bfile.c in building OS X resource fork filename. Bug #489 - Add Pool name to SD status output. 14Nov05 - Apply SunOS patch for ACLs submitted by David Duchscher. - Make sure to set storage before trying to set drive. - Add bacula_mail_summary.sh to examples directory. It makes a single email summary of any number of jobs. Submitted by Adrew J. Millar. - Make sure when we do a mount to unblock the device even if the drive could not be opened. 13Nov05 - Remove the USE_WIN32STREAMEXTRACTION #defines (always on) and correct a few minor problems to make it build on Linux. 10Nov05 - Remove delete of CVS from all Makefiles - Fix seg fault when clicking on Add button in wx-console restore panel. Bug #470. - Fix copyright date and URL typo -- bug #468. - Change autostart install for FreeBSD to look for rc.conf rather than rc.local as suggested fix for bug #466. - Apply patch supplied by Eric Bollinger to fix PostgreSQL grant on status. Bug #465 - Apply patch supplied by Eric Bollinger to fix PostgreSQL update script. Bug #464 - Tweak #ifdefing a bit in new Win32 stream code. - Fix #ifdeffing for FD_NO_SEND_TEST. - Add documentation of performance #defines