Kern Sibbald [Sat, 26 Mar 2005 14:53:13 +0000 (14:53 +0000)]
- Add wait.c (oops forgot previously).
- Move all the reserve/acquire_device_for_read/append to have
only a DCR as the argument.
- Rework the reserve_device_for_append() in stored to wait
if the drive is not available. Note! This is a short
term solution.
Kern Sibbald [Sat, 26 Mar 2005 07:58:50 +0000 (07:58 +0000)]
- Comment out Multiple Connections in the document.
- Move the P() and V() to subroutines so that they can be accessed
from class methods. The reference to strerror() caused problems.
- Implement new DEVICE class methods block() and unblock() that
do what was previously done in 3 lines of code.
- Implement wait_for_device(), which will wait for any device
to be released then return. This requires a new global mutex
and condition variable, and is implemented in src/stored/wait.c
- Change the code in reserve_device_for_read(), which previously
failed the job to use the new device wait code.
Kern Sibbald [Tue, 22 Mar 2005 10:43:34 +0000 (10:43 +0000)]
- Add copyright to title page of manual so it is clear.
- Create patch for rescheduling problem found by Ludovic. Storage
pointers were lost during rescheduling.
- Attempt to fix 2.6 rescue disk -- failed!
- Start working on adding a wait routine in the SD.
- Cleanup some old invalid doc in watchdog.
- Convert a number of references to dev->dev_name to dev->print_name().
- Add new wait.c file to SD.
- Add a few more methods to DEVICE in SD to cleanup code a
bit -- implement a few of the methods.
Kern Sibbald [Fri, 18 Mar 2005 17:26:48 +0000 (17:26 +0000)]
- Fix more print_name()s for printing device name.
- Modify open_dev to try 10 times every 6 seconds to
open the device if it gets an I/O error (meaning no
volume mounted). This gives a bit of settling in time
for an autochanger and avoids spurious messages.
- Change all yes/no to yes|no in the manual.
- Fix win32 create_file.c typo.
- Fix a typo in an error message.
Kern Sibbald [Thu, 17 Mar 2005 18:24:54 +0000 (18:24 +0000)]
- Detect if fseeko exists with autoconf. If so, use it
and ftello.
- Remove old bacula-*.conf from examples directory (out
of date).
- Remove latex-fr index files from CVS.
- Rewrite code that stops reading the tape so that the
tape is marked at EOT, then once the work is done,
the EOT flag is removed.
- Flush output to file after every send in console.
- Make setting VolFiles to smaller number fatal.
- Disable Multiple Connections code.
- Add patch from user for NetBSD statvsfs() fix to
fstype.c
- Take more care with errors in acquire.c
- Don't run through dvd code in append.c if bad status
returned.
- Modify code so that an autochanger fault is fatal.
- Use dev->print_name() in more places.
- Implement dev->can_steal_lock() to simplify code.
- Make btape re-read first 10000 records on fill command.
- Check error return and fail job from fseeko and ftello
in spool.c. Don't let a -1 slip in as size.
Kern Sibbald [Sat, 12 Mar 2005 15:40:41 +0000 (15:40 +0000)]
- Implement IBM labels
- Implement EOF and EOV labels at the end of a volume.
- Fix a rather ugly problem with the PoolId not getting
passed correctly. Now the DIR passes the Pool name and
Media Type to the SD, who passes them back when requesting
the next Volume. The DIR then looks up the correct PoolId.
This takes more time, but always works, AND allows wild
card Media Types (i.e. the SD can decide).
- The DIR <==> SD protocol has changed.
Kern Sibbald [Thu, 10 Mar 2005 16:52:42 +0000 (16:52 +0000)]
- Add new ua_update.c file and move update_cmd there.
- Modify update slots to obtain actual number of slots.
- Tweak autochanger code to handle new slots request.
- Modify autochanger code to lock/unlock around slots and
update slots code.
Kern Sibbald [Wed, 9 Mar 2005 11:57:04 +0000 (11:57 +0000)]
- Edit Resource-name (physical-name) for the device name
everywhere in the SD.
- Remove .linked.tex files in preparation for cutover to
using .tex in place of .wml.
Kern Sibbald [Tue, 8 Mar 2005 19:46:16 +0000 (19:46 +0000)]
- Copy latest config.sub and config.guess from autoconf.
- Try new way of identifying drives with:
resource-name (physical-name)
More work need to a complete conversion.
Kern Sibbald [Mon, 7 Mar 2005 20:50:51 +0000 (20:50 +0000)]
- Rework some of the autochanger data so that the DIR has
the number of drives.
- Modify the way the Device info is returned so that it comes
back as a special message type and can be sent anytime the
Device status changes.
- Copy the change name and changer command into the device
record if none is specified.
- Require the change command and changer name to be specified in
and AutoChanger resource.
- Force all the Media Type records of all devices in an Autochanger
to be the same.
Kern Sibbald [Sun, 6 Mar 2005 14:56:05 +0000 (14:56 +0000)]
06Mar05
- Add new run command to Job resource in DIR. This permits
cloning a job as many times as you want.
- Pass PoolId to SD on Query request. It is now used in the
Find_media catalog request.
- Reworked the Device resource in the DIR. Eliminated num_waiting
and use_count, but added max_writers, reserved, and PoolId.
- This DIR is nolonger compatible with previous SDs.
- Add since and cloned keywords to the Console run command
to support cloning.
- Implemented store_alist_str() to allow multiple string items
to be specified in a .conf file.
- Added %s (since time) to Job code editing.
- Reworked reserving drives in the SD. It now does it much simpler
and correctly.
05Mar05
- Integrate HP-UX patch from Olivier Mehani <olivier.mehani@linbox.com>
- Fix FD job.c to test correctly for no level.
Kern Sibbald [Fri, 4 Mar 2005 08:12:17 +0000 (08:12 +0000)]
- Change Developers to Developer's Guide as requested by Michael.
- Fix developers link in manual
- Add additional dcr changes in SD to allow multiple dcrs.
Kern Sibbald [Wed, 2 Mar 2005 14:40:59 +0000 (14:40 +0000)]
- Fix a few problems with the MySQL table create in 1.37.
- Delete the new tables in the table delete files.
- Increase the number of items permitted in a conf table.
Kern Sibbald [Wed, 2 Mar 2005 11:38:09 +0000 (11:38 +0000)]
- Make Director loop over alternative Devices specified in the
Storage resource until one is reserved by SD.
- Fix storing of StorageId in Media records.
- Add AutoSelect = yes|no in bacula-sd.conf
- Add Autochanger support to Label command.
- Do not autoselect devices with autoselect set false
Kern Sibbald [Tue, 1 Mar 2005 21:54:22 +0000 (21:54 +0000)]
- Implement setting DIR Storage device to Autochanger
name.
- Select first available device in Autochanger.
- Pass back actual device name used.
- Allow Query of AutoChanger.
- Modify Query to include name of AutoChanger if
Device belongs to one.
- Remove old Pool code in jobq.c
- Add Autoselect flag to query and DEVICE class (still
need Directive).
Kern Sibbald [Mon, 28 Feb 2005 14:02:09 +0000 (14:02 +0000)]
- Corrected some typos in the make_xxx_tables.in files.
- Made preliminary split of pre-run and run code for each
job type. This will permit early opening of SD for reserving
drives.
- Add offline and autochanger fields to Device Query record.
- Correct pthread_mutex_init() for autochanger in SD.
- Tweak Makefile for LaTeX manual, plus add nav buttons.
Kern Sibbald [Sat, 26 Feb 2005 11:28:03 +0000 (11:28 +0000)]
- Clean up drive reservation system. Add more sanity checks.
- Implement a few more methods for the DEVICE class in SD.
- Add latex directories to make clean
- move DEV_BSIZE to B_DEV_BSIZE to avoid conflicts with
certain header files (FreeBSD).
Kern Sibbald [Fri, 25 Feb 2005 09:19:05 +0000 (09:19 +0000)]
24Feb05
- Fix an ASSERT that was triggering in stored/acquire.c
attempt to fix a bug report. 23Feb05
- Corrected SunOs to SunOS in btraceback (user submitted).
- Applied patch from Roger HÃ¥kansson <hson@ludd.luth.se>
to warn the user of defective AWKs during ./configure.
Kern Sibbald [Tue, 22 Feb 2005 07:52:16 +0000 (07:52 +0000)]
- Add some changes submitted by a user for HP client build.
Not all changes accepted.
- Rework code in filed/backup.c to ease #ifdefing and make
program flow more obvious.
- Split DVD code out of dev.c into dvd.c
Kern Sibbald [Mon, 21 Feb 2005 12:00:23 +0000 (12:00 +0000)]
- Make clean remove old CVS files
- Remove unnecessary image files from Latex directory
- Implement remaining parts of Storage DB record and
its use in the Director.
- Implement
FullMaxWaitTime, Differential Max Wait Time, and
Incremental Max Wait time in Job resource.
- Start work on SD Autochanger code.
Kern Sibbald [Sat, 19 Feb 2005 15:29:48 +0000 (15:29 +0000)]
- Add back JobId index for MySQL as default -- speeds up
pruning.
- Add more database fields and fix the update scripts to
include the new items.
- Pass actual level to FD so that ClientRun editing can reflect
correct level -- ditto for job status. This makes the DIR
incompatible with older clients!
- Move jobq.c acquire resources to static subroutine so that
the code logic becomes clearer. This is in preparation for
actually using the new Device resources.
- Fix some lower case problems in sql_cmds.c reported by
Debian.
- Correct a seg fault in the SD reported by a user. Occurred
only when a high debug level was set.
- Modify init_dev() in dev.c to take JCR as first arg so that
proper error messages can be reported in next item.
- Modify the query and use device SD commands to attempt to
open the device if it could not previously be opened.
- Correct error message for Could not reserve device.
- Correct some minor details with Autochanger resource in SD.
Kern Sibbald [Tue, 15 Feb 2005 22:04:34 +0000 (22:04 +0000)]
- Fix Media LabelDate and FirstWritten to be correctly set.
- Fix deadlock in multiple simultaneous jobs.
- Fix tape truncation/number of files after restore bug.
Kern Sibbald [Wed, 9 Feb 2005 14:40:03 +0000 (14:40 +0000)]
- Modified ANSI label code to preserve any ANSI label
already found by skipping over it rather than rewriting
it.
- Split the ANSI label code into ansi_label.c
- Do not let user relabel an ANSI labeled tape.
- Applied a patch for the console help command supplied
in a bug report.
- Added some new dev methods. Most notably was
set_eof(), which handles setting all the dev variables
when an EOF is just read. This is now used most everywhere
in the code.
Kern Sibbald [Mon, 7 Feb 2005 16:20:46 +0000 (16:20 +0000)]
Added code to detect that no files were inserted into the
tree for a restore. If a specific JobId was specified, the
user has the option of restoring everything.
- More progress in implementing 64 bit DB Ids.
- Modified the daemon start messages for RH.
- Implement update scripts for all database types.
- First cut at implementing restore directory (it will not
recurse).
Kern Sibbald [Tue, 1 Feb 2005 08:13:21 +0000 (08:13 +0000)]
Display more informative message when a device was not
found or could not be opened.
- Add the sqlite3 database scripts.
- Add some patches for 1.36.1 (note, I have now prepared
a 1.36.2 with all the patches and some new features --
to be documented).
- Some minor doc updates.
- Add Arno's baculareport.pl script to the examples directory.
Kern Sibbald [Wed, 12 Jan 2005 09:41:23 +0000 (09:41 +0000)]
Integrate Preben 'Peppe' Guldberg <peppe@wielders.org>'s
acl patch. Fix case where configured but no ACL exists.
Rework calling arguments to be shorter and positioned
more typically in Bacula usage.
Kern Sibbald [Tue, 11 Jan 2005 21:36:20 +0000 (21:36 +0000)]
Fix scripts/bacula.in to have awk on an environment variable
and add comments for Solaris users.
- Turn off inet_aton in src/lib/address_conf.c for Win32
- Add new files to win32 build and eliminate a compiler warning.
- Add sample DVD Device resource to bacula-sd.conf
Kern Sibbald [Thu, 6 Jan 2005 16:37:20 +0000 (16:37 +0000)]
- Apply all of Preben's patches, but revert to old backup.c
and old restore.c in filed. Also turn off code in new
acl.c because of errors. The new code, when fully implemented
moves platform specific code into acl.c.
One of the patches also implements WildFile and WildDir -- thanks.