kes Stop searching for Volumes in SD askdir if DIR returns the
same volume name twice in a row.
kes Close bat console windows first to eliminate error message
from the notifier.
kes Tweak the swap Volume from one drive to another code so that
it now seems to work.
kes Resolve several problems with recycling that broke the new
code (these problems are in 2.2.9 as well).
kes Remove the volume lock when calling the sysop code.
kes Don't mark a reserved volume with no writers as unused otherwise
jobs fail.
kes Rework class structures for VOLRES, DCR, and DEVICE to make
the method names a bit more logical, and for more logically
handling the responsibilities.
kes Remove redundant code in terminating the scheduler that just
causes a seg fault in many cases.
kes Cleanup releasing a volume and make it a DCR method.
kes Correct name overloading in mount.c
kes Replace released flag in VOLRES with reserved and add access
methods for the VOLRES class.
kes Prevent volume from being released while being swapped.
Eric Bollengier [Wed, 9 Apr 2008 19:55:36 +0000 (19:55 +0000)]
ebl Add sanity checks for VolWriteTime and VolReadTime
ebl Take care of bad clock changes while computing VolWriteTime
and VolReadTime. This should fix or limit #1066
kes Correct error string numbers in dird/catreq.c
kes Restructure reserving, acquiring, and mounting volumes. Calls to
autochanger are deferred for mount.c -- simplifes the code.
kes Correctly detect Ubuntu systems, and add ubuntu platform directory.
kes Fix bug #1063, reuse of freed ptr in list nextvol.
kes Release regex compile buffer in filed/job.c
kes Add proper type of const char in sql_create.c
kes Turn off debug in daemon termination routines
kes Move free_volume_list() before devices are freed in stored.c
kes Fix reference to uninitalized stack variables in bregex.c.
This should correct bug #1067.
kes Modify run_program() and run_program_full_output() to use
call by reference for the results string. This corrects a long
standing problem where the address of the string may be changed
in the subroutine but not in the calling program.
Kern Sibbald [Mon, 31 Mar 2008 16:52:42 +0000 (16:52 +0000)]
kes Remember what volume is in VTLs (previously turned off for
testing).
kes Analysis of JobMedia records by Tom Ivar Helbekkmo <tih@hamartun.priv.no>
pointed out some problems in creating JobMedia records during
spooling with concurrent jobs. Fix the problem by updating the
start file position before despooling and generate a jobmedia
record at the end of despooling.
Kern Sibbald [Wed, 26 Mar 2008 20:51:14 +0000 (20:51 +0000)]
kes Implement bsock code to permit locking. Use the new code in Verify
in the FD to prevent the heartbeat thread from disrupting the Verify
data sent to the Dir.
kes Modify SD locking to eliminate locking the reservations system from
outside the system. Use the volume lock when getting media data
and reserving a new volume at end of media.
kes Add Eric's volume_unused() fix to stored.c so that Volumes found
when SD starts are not locked into place.
Kern Sibbald [Mon, 24 Mar 2008 13:30:48 +0000 (13:30 +0000)]
24Mar08
kes Tweak Win32 mount point code.
kes Fix a couple of bugs in the accurate code (bad sscanf, buffer not
cleared giving bad file estimate).
kes Implement BIG_MALLOC in htable code. Runs 2.5 times faster for
5 Million entries.
Kern Sibbald [Sat, 22 Mar 2008 09:34:45 +0000 (09:34 +0000)]
Fix bug pointed out by Peter Much that causes the StorageId to
be updated when reading a tape (during migration, it could have
been incorrectly set to the write StorageId).