Kern Sibbald [Mon, 2 Oct 2006 11:42:21 +0000 (11:42 +0000)]
kes Apply dvd find volume patch from Richard Mortimer.
kes Eliminate the dvd specific mount routines using only the
dev->mount/unmount.
kes Make update_free_space a method of DEVICE and rename
update_freespace.
kes Print the Volume purged message only for real jobs to keep
from cluttering up the daemon messages.
kes Lock the tape drive door while Bacula is using the device.
kes Add back the 'No Jobs running' message to FD and SD status because
my regression script depends on it, and I'm too lazy to change the
scripts.
kes Start using structure assignments (not too happy about it ...).
kes Fix a bug in the tools Makefile that broke on Solaris.
kes Unload any autochanger drive during a 'release' command.
Dan Langille [Tue, 26 Sep 2006 20:04:44 +0000 (20:04 +0000)]
Update the "Filesystem change prohibited. Will not descend into /misc"
message to refer to the new format: "/misc is a different filesystem. Will
not descend from / into /misc"
Elaborate upon what this message means, and how it does not necessarily
indicate that the filesystem/partition has or has not been backed up.
Dan Langille [Tue, 26 Sep 2006 19:22:52 +0000 (19:22 +0000)]
Improve the old "Filesystem change prohibited" message to remove possible
confusion. Instead, say "%s is a different filesystem". We need to follow
up with documentation changes, and explain how this situation arises.
kes Enhance error message when restoring without bootstrap file.
kes Check restored size only for regular files.
kes Store Python job level in job record in Dir.
kes Add back code to open tape device nonblocking, but if rewind fails
release file descriptor.
kes Modify acquire.c to first try autoloading the device. Also, ask operator
to mount tape if drive cannot be opened.
kes Update src/win32/dll/bacula.def for change in BPIPE definition for
Win32 build.
kes Fix a compiler warning in compat.cpp
kes Change strcpy to bstrncpy in compat.cpp
kes Remove some broken code in bdb_list.c
kes Fix, hopefully the last, ACL problem in the restore command.
kes Update the README.mingw32
kes Add new version of upgrade-win32-client.txt to examples directory.
Submitted by Michel Meyers.
kes Print an INFO message in the job report when a Volume is marked Purged.
Robert Nelson [Mon, 25 Sep 2006 09:13:43 +0000 (09:13 +0000)]
Fixed the routine that handles executing external programs and scripts so that it is a lot more flexible about the format of the command line. It now translates path names containing spaces to the equivalent short name. It then passes the name with the quotes removed to cmd.exe.
kes Apply the recycle patch from Richard Mortimer.
kes Convert a few if statements in dev.c to switch statements.
kes Start using print_errmsg instead of bstrerror().
kes Print a job message in SD when a job is marked to be canceled.
kes All code added back. Fixed block.c read/write to loop only 3
times. This apparently keeps the OS from crashing (at least
most of the time).
kes The kernel bug still persists. Backup something then immediately
do a bscan on the same tape, and the kernel will crash.
kes Simplifed tape open(). It no longer uses nonblocking mode, which
means that opening with no tape loaded will probably take at least
6 minutes before an error is reported.
kes Do not use MTSETDRVBUFFER if not running as root. Do a MTRESET
when doing set_os_device_parameters.
kes Report open error in mount.c
kes Remove all .exe files from the installer directory on make clean.
kes Add -c option to pg_dump so that it initializes tables when
restored.
kes Fix FirstWritten time on Volume to be obtained from SD so that
it is the actual time the volume was first written.
kes Minor Makefile changes.
kes Handle EBUSY during read(). Improve how EBUSY is handled in write().
kes Correct a test in block.c that prevented restore of a DVD from
looking at the last part in the spool directory.
kes Make some error messages clearer mostly by using the word DVD
in the message. Improve infor message in read_record for DVDs.
kes Remove DVD kludges in dircmd.c label/relabel.
kes Move the dvd relabel code from dircmd.c into
write_new_volume_label_to_dvd() adding a relabel argument.
kes Rewrite the truncate_dvd() code to be much simpler and
more logical. First blow away any spool part, then create a
new empty part and write to the DVD.
kes Rewrite the can_write_on_non_blank_dvd() code making it
only ensure that no valid data is on the DVD -- i.e. it
can be overwritten.
kes Put attach_dcr_to_dev in a subroutine.
kes Make attaching/detaching to/from a device use a flag and
only detach if actually attached.
kes Add dvd-simulator.in to scripts directory and add to configure.
kes Fix code in acquire.c that checks fd != 0 to use dev->is_open().
This could be a cause of a number of drive reservation problems.
Note, this code is now in attach_dcr_to_dev().
kes Suppress doing Volume updates if it is a system job. This should
prevent the DVD label blocking.
kes Clear the freespace ok flag in a couple of strategic places.
kes Put removing zero sized spool part file in subroutine and
call from release_device().
kes Add Richard's patch for relabel to dircmd.c, but save and restore
dev Volume name.
kes Rework a lot of subroutines in dev.c to take dcr as an
argument. This is done to eliminate the usage of attached_dcrs
in lseek().
kes Change truncated_dvd to blank_dvd, which seems more suitable.
kes Apply most of Richard Mortimer's truncate patch.
kes Create lseek() method for DEVICE that takes dcr as an
argument. This is to eliminate the use of attached_dcrs in
lseek(). The calls to lseek_dev() must still be changed.
kes Create lseek() method for DEVICE that takes dcr as an
argument. This is to eliminate the use of attached_dcrs in
lseek(). The calls to lseek_dev() must still be changed.
kes Make sure valid argument passed to str_to_utime() where Arno
had a seg fault.
kes Apply Richard Mortimer's patch for bcopy, bextract, and bscan.
I.e. part of two different patches.
kes Modify disk changer to simulate some of the error conditions
of mtx-changer.
kes Make sure the close() call in the SD tools is just before the
getchar() call.
kes Implement dir_get_volume_info() in bls using the patch from
Richard Mortimer but call find_num_dvd_parts().
kes Implement find_num_dvd_parts() that mounts and scans a DVD
and counts the parts.
kes Move the omode code in open_dvd() up so that the cannot
write on blank disk can check can be bypassed for read mode.
Not yet implemented.