On Dec 23, 2013, at 11:59 AM, Emmanuel Dreyfus <m...@netbsd.org> wrote:
> On Mon, Dec 23, 2013 at 11:11:10AM +0100, J. Hannken-Illjes wrote: >> In short: tape records bigger than MAXPHYS (most time 64k) don't work. > > I adjusted the function that detects tape block size so that it is > capped to MAXPHYS. I also fixed the debug message so that I get the > scsireq_t NetBSD field names correctly displayed and filled: > > LTFS20039D Backend read: 65536 bytes > LTFS20010D SCSI request: [ 08 02 01 00 00 00 ] Requested length=65536 > LTFS20089D Driver detail: errno = 0x0 > LTFS20089D Driver detail: status = 0x2 > LTFS20089D Driver detail: retsts = 0x4 > LTFS20089D Driver detail: error = 0x0 > LTFS20011D SCSI outcome: Driver status=0xFF SCSI status=0xFF Actual length=0 > LTFS20042E EIO in read > : > > I now get SCCMD_UNKNOWN / Check Condition. I would have expected it to > issue a SENSE command afterward, but instaed it does this: > > LTFS20076I Triggering drive diagnostic dump > LTFS20010D SCSI request: [ A4 1F 0C 00 00 00 00 00 00 00 00 00 ] Requested > length=0 > LTFS20011D SCSI outcome: Driver status=0x00 SCSI status=0x00 Actual length=0 > LTFS20010D SCSI request: [ A3 1F 08 00 00 00 01 00 00 00 00 00 ] Requested > length=65536 > LTFS20089D Driver detail: errno = 0x5 > LTFS20089D Driver detail: status = 0x2 > LTFS20089D Driver detail: retsts = 0x4 > LTFS20089D Driver detail: error = 0x0 > LTFS20011D SCSI outcome: Driver status=0xFF SCSI status=0xFF Actual length=0 > LTFS20078W Unable to read drive dump > LTFS20096I Diagnostic dump complete According to T10.ORG scsi commands a3/a4 for sequential devices are optional: OP DTLPWROMAEBKVF Description A3 OOO O OOMOOOM MAINTENANCE IN A4 OOO O OOOOOOO MAINTENANCE OUT What are you trying to do here? -- J. Hannken-Illjes - hann...@eis.cs.tu-bs.de - TU Braunschweig (Germany)