ken 1cc0a333e9 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
..
2015-03-17 18:32:28 +00:00
2015-03-13 02:49:55 +00:00
2015-03-16 00:10:03 +00:00
2015-03-12 20:14:48 +00:00
2015-03-01 00:22:16 +00:00
2015-03-18 04:40:36 +00:00
2015-02-02 16:07:07 +00:00
2015-03-16 00:10:03 +00:00
2014-12-27 07:07:37 +00:00
2015-03-15 11:58:52 +00:00