• Jeffrey Lee's avatar
    Fix drive lock status reporting for empty drives · dd460369
    Jeffrey Lee authored
    Detail:
      c/driver - Change IsDrawerLocked handler to read the lock status from the drive via mode page &2A, rather than doing a completely unrelated TEST UNIT READY command. On the offchance that &2A isn't implemented, just fall back on our softcopy of the lock state, which is effectively what TEST UNIT READY was doing in the first place.
      h/scsibits - Fix typo in mode page &2A name
    Admin:
      Tested on BB-xM
      CD_IsDrawerLocked now returns a sensible value for empty drives, instead of a drive empty error
      Fixes issue reported on forums where CDFS iconbar menu doesn't allow empty drives to be ejected (for SCSI/USB, at least):
      https://www.riscosopen.org/forum/forums/4/topics/3652
    
    
    Version 0.06. Tagged as 'SCSI-0_06'
    dd460369
scsibits 16.7 KB