Bacula-users

Re: [Bacula-users] bconsole(8) mount / Autochanger Mount Logic in stored/autochanger.c

2008-10-28 14:53:14
Subject: Re: [Bacula-users] bconsole(8) mount / Autochanger Mount Logic in stored/autochanger.c
From: "Brian A. Seklecki" <bseklecki AT collaborativefusion DOT com>
To: John Drescher <drescherjm AT gmail DOT com>
Date: Tue, 28 Oct 2008 14:50:28 -0400
All:

Quick update:

Latest autochanger.c patch for "Count slots from zero":

http://people.collaborativefusion.com/~seklecki/autochanger_bac223_count_slots_from_zero.diff

Updated chio-changer with logging, debugging, and "Count slots from
zero" support:

http://people.collaborativefusion.com/~seklecki/chio-changer

Some example logfile output:

------------------------------------------------

Load tape 1 while tape 0 is loaded:

% sudo tail -F /var/log/chio-changer.log

Attemping a tape load operation... for 1
Attempting to find source of current tape...
DEBUG: Combined shell code result of regex match magic: 0
Tape source is: 0
Checking to see if the target and source are the same...
Found a loaded tape in /dev/ch0 with a source slot (0) other than 1
requested
[Tue Oct 28 12:48:12 EDT 2008]Executing Command: /bin/chio -f /dev/ch0
move drive 0 slot 0
Result: [ ]
Result code was zero.
It is safe to load the requested tape..
[Tue Oct 28 12:48:47 EDT 2008]Executing Command: /bin/chio -f /dev/ch0
move slot 1 drive 0
Result: [ ]
Result code was zero.

----------

Check the current loaded tape:

% sudo tail -F ....
/usr/local/cf/chio-changer (PID 8244) from Parent PID (8242) revid $
starting at Tue Oct 28 13:17:05 EDT 2008
Attempting to find source of current tape...
DEBUG: Combined shell code result of regex match magic: 0
Tape source is: 3



~BAS

On Mon, 2008-09-15 at 13:57 -0400, Brian A. Seklecki wrote:
> > 
> > I would send this to the bacula-devel list as well or file a bug report.
> 
> Filed Mantis 0001157.  Also found another "== 0" assumption in
> autochanger.c.  Auto posted my current testing chio-changer code.
> 
> ~BAS
> 
> > 
> > John
> 
-- 
Brian A. Seklecki <bseklecki AT collaborativefusion DOT com>
Collaborative Fusion, Inc.




IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Bacula-users] bconsole(8) mount / Autochanger Mount Logic in stored/autochanger.c, Brian A. Seklecki <=