freebsd-dev/sys/cam/scsi
Kenneth D. Merry 74a177ac50 Fix a couple of problems in the sa(4) media type reports.
The only drives I have discovered so far that support medium type
reports are newer HP LTO (LTO-5 and LTO-6) drives.  IBM drives
only support the density reports.

sys/cam/scsi/scsi_sa.h:
	The number of possible density codes in the medium type
	report is 9, not 8.  This caused problems parsing all of
	the medium type report after this point in the structure.

usr.bin/mt/mt.c:
	Run the density codes returned in the medium type report
	through denstostring(), just like the primary and secondary
	density codes in the density report.  This will print the
	density code in hex, and give a text description if it
	is available.

Thanks to Rudolf Cejka for doing extensive testing with HP LTO drives
and Bacula and discovering these problems.

Tested by:	Rudolf Cejka <cejkar at fit.vutbr.cz>
Sponsored by:	Spectra Logic
MFC after:	4 days
2015-03-18 20:52:34 +00:00
..
scsi_all.c Improve ATA and SCSI versions printing. 2015-03-17 13:21:49 +00:00
scsi_all.h Significant upgrades to sa(4) and mt(1). 2015-02-23 21:59:30 +00:00
scsi_cd.c Retry indefinitely on SCSI BUSY status from VMware disks and CDs. 2015-02-02 20:23:05 +00:00
scsi_cd.h
scsi_ch.c Merge CAM locking changes from the projects/camlock branch to radically 2013-10-21 12:00:26 +00:00
scsi_ch.h Update chio(1) and ch(4) to support reporting element designators. 2013-04-19 20:03:51 +00:00
scsi_da.c Add DA_Q_NO_RC16 quirk for USB mass storage device. 2015-03-07 17:18:06 +00:00
scsi_da.h Improve camcontrol(8) handling of drive defect data. 2015-01-08 16:58:40 +00:00
scsi_dvcfg.h
scsi_enc_internal.h Merge CAM locking changes from the projects/camlock branch to radically 2013-10-21 12:00:26 +00:00
scsi_enc_safte.c Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
scsi_enc_ses.c Make sure that the flags for the XPT_DEV_ADVINFO CCB are initialized 2015-02-18 18:30:19 +00:00
scsi_enc.c Merge CAM locking changes from the projects/camlock branch to radically 2013-10-21 12:00:26 +00:00
scsi_enc.h MFprojects/zfsd: 2012-05-24 14:07:44 +00:00
scsi_iu.h
scsi_low.c Lock the scsi_low code and the drivers which use it along with other 2014-11-20 20:50:05 +00:00
scsi_low.h Lock the scsi_low code and the drivers which use it along with other 2014-11-20 20:50:05 +00:00
scsi_message.h
scsi_pass.c Remove instances of variables that were set, but never used. gcc 4.9 2014-03-30 23:43:36 +00:00
scsi_pass.h
scsi_pt.c Merge CAM locking changes from the projects/camlock branch to radically 2013-10-21 12:00:26 +00:00
scsi_pt.h
scsi_sa.c Change the sa(4) driver to check for long position support on 2015-03-02 18:09:49 +00:00
scsi_sa.h Fix a couple of problems in the sa(4) media type reports. 2015-03-18 20:52:34 +00:00
scsi_ses.h Fix off by one error in ses_enc_desc_last_byte(). 2012-07-24 13:32:49 +00:00
scsi_sg.c - Add support for SG_GET_SG_TABLESIZE IOCTL to report that we don't support 2014-06-04 12:05:47 +00:00
scsi_sg.h Overhaul CAM SG driver IOCTL interfaces. 2014-06-02 19:53:53 +00:00
scsi_targ_bh.c Merge CAM locking changes from the projects/camlock branch to radically 2013-10-21 12:00:26 +00:00
scsi_target.c Merge CAM locking changes from the projects/camlock branch to radically 2013-10-21 12:00:26 +00:00
scsi_targetio.h
scsi_xpt.c Add support for probing the SCSI VPD Extended Inquiry page (0x86). 2015-02-05 00:12:21 +00:00
smp_all.c Add Serial Management Protocol (SMP) passthrough support to CAM. 2010-11-30 22:39:46 +00:00
smp_all.h Add Serial Management Protocol (SMP) passthrough support to CAM. 2010-11-30 22:39:46 +00:00