Robert Nelson [Tue, 24 Oct 2006 23:28:49 +0000 (23:28 +0000)]
Change daemons and utilities so that if -c is omitted from the command line AND there is no configuration file in the current directory then the "standard" configuration file (eg /etc/bacula/bacula-*.conf) will be used. If the argument to -c doesn't contain any path separators AND there is no configuration file by that name in the current directory then the "standard" configuration file directory will be searched for a file by that name.
Fixed restore on Windows so that backslashes as path separators works.
Kern Sibbald [Fri, 13 Oct 2006 09:01:26 +0000 (09:01 +0000)]
kes Apply the three patches from Richard Mortimer.
bacula-reposition.patch, bacula-tape-reopen.patch, and
bacula-eod.patch. This corrects tape positioning on older devices,
and also a problem with btape.
kes Apply fix from bug report #696 where writing to a FIFO does not
work due to a dumb typo.
kes Unlock the tape door before the file descriptor is released. This
should fix lots of somewhat subtle failures when using an autochanger.
Robert Nelson [Wed, 11 Oct 2006 22:40:53 +0000 (22:40 +0000)]
Send M_ERROR_TERM and M_ABORT messages to stdout on Windows.
Fix cleanup of spool files on Windows.
Fix Windows 9x compatibility.
Remove /silent option from daemons on Windows. The new default is the same as the old /silent. To enable the message boxes that previously were suppressed by /silent you must add /debug instead.
Add new /debug option. This option enables the message boxes that previously were suppressed by the /silent option. In addition the daemons will open a console window if this option is used.
Fix bug with service not being removed on migrated installs.
Kern Sibbald [Wed, 11 Oct 2006 16:50:41 +0000 (16:50 +0000)]
kes Turn on heap reporting in Dir with zero debug level.
kes Send a message to the sys log when Bacula forces a SEG FAULT, and
send the same message to stdout.
Kern Sibbald [Sat, 7 Oct 2006 21:09:43 +0000 (21:09 +0000)]
kes Begin work on new GUI console.
kes Make configure look in non-standard MySQL library directory
for Solaris.
kes Make mtx-changer automatically configure the autochanger wait
procedure for Solaris, FreeBSD, and Linux. Previously, only Linux
was implemented.
kes Correct drop_sqlite_tables.in script to not delete the database.
kes When writing to a log file, close and reopen the file descriptor
if there is an error writing the file.
kes Modify the autochanger loaded?, load, and unload commands to print
the full text of any mtx output if there is an error. Helps to
ease diagnosis of autochanger problems.
kes Correct a few Win32 errno returns in the VSS code so that hopefully
a resonable Win32 error message will be printed.
kes Convert a few strcat()... to bstrncat() in the Win32 code.
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().