'mtx' is supposed to tell you what slot the tape or disk in the drive came
from. Leonard Zubkoff's does that quite well even if the tape changer does not
properly report the source storage element, simply by looking for the first
empty slot, and telling you that the tape came from there. 

With dual drive tape changers, alas, I seem to have broken that bit of code
(see http://www.estinc.com/downloads/unsupported/mtxl.README.html for more
info). So right now I'm trying to re-write that bit of code in order to make
it work right when the tape changer doesn't properly report the source storage
element for the media within a data transfer element (drive). 

Easy part: make the empty storage elements cupboard into an array (Leonard
only cared about one empty slot because he only supported one drive). 

Hard part:
  
  I detect that the source reported by the tape changer is not correct by
seeing whether the reported source actually already has a tape in it. Then
comes the decision: what to do about it?

Right now I think I'm going to assume that if one source is invalid, all of
them are invalid, and then assign new sources for all drives from the list of
empty storage elements. This suffices for 99.9% of the cases that I'm seeing
of the source not being properly reported. Does anybody see a problem with
this? Or is this one of those solutions that's simple, easy to implement --
and wrong?

-- 
Eric Lee Green                         [EMAIL PROTECTED]
Software Engineer                      Visit our Web page:
Enhanced Software Technologies, Inc.   http://www.estinc.com/
(602) 470-1115 voice                   (602) 470-1116 fax

Reply via email to