I started out with:

##### START DecodeSense
GenericSenseHandler : Sense Keys
        ErrorCode                     00
        Valid                         0
        ASC                           46
        ASCQ                          00
        Sense key                     00
                No Sense
GenericSenseHandler : Unknow 0 ASC = 46 ASCQ = 0
#### STOP SenseHandler
chg-scsi: requested drive number (0) greater than number of supported
drives (-1)

So I called the vendor and they said it is a non-error (errcode 0) error,
and to ignore it.  So I changed GenericSenseHandler() to return SENSE_NO
for "Unknow", and that problem went away.  

Now when I run chg-scsi -info, it returns 4 numbers.

I know I still am going to have some more "tuning" to do.  But, it seems
to be working.  It is pulling out each tape, looking for a label, and
putting it back, guess I should label them next, and see what happens ;)

After my C skills mature a little (I just learned it last night) I will
finish customizing scsi-changer-driver.c for the SpectraLogic and send the
diff to whoever wants it.

---
Mike Taylor
Coordinator of Systems Administration and Network Security
Indiana State University.               Rankin Hall Rm 039
210 N 7th St.                           Terre Haute, IN.
Voice: 812-237-8843                                  47809
---
"You have zero privacy anyway.  Get over it."
           --Scott McNealy, Sun MicroSystems. 




Reply via email to