freebsd-nq/sys/cam/scsi
Alexander Motin ccba710262 Make CAM return and GEOM DISK pass through new GEOM::lunid attribute.
SPC-4 specification states that serial number may be property of device,
but not a specific logical unit.  People reported about FC storages using
serial number in that way, making it unusable for purposes of LUN multipath
detection.  SPC-4 states that designators associated with logical unit from
the VPD page 83h "Device Identification" should be used for that purpose.
Report first of them in the new attribute in such preference order: NAA,
EUI-64, T10 and SCSI name string.

While there, make GEOM DISK properly report GEOM::ident in XML output also
using d_getattr() method, if available.  This fixes serial numbers reporting
for SCSI disks in `geom disk list` output and confxml.

Discussed with:	gibbs, ken
Sponsored by:	iXsystems, Inc.
MFC after:	2 weeks
2013-06-12 13:36:20 +00:00
..
scsi_all.c Make CAM return and GEOM DISK pass through new GEOM::lunid attribute. 2013-06-12 13:36:20 +00:00
scsi_all.h Make CAM return and GEOM DISK pass through new GEOM::lunid attribute. 2013-06-12 13:36:20 +00:00
scsi_cd.c Added output of device QUIRKS for CAM and AHCI devices during boot. 2013-05-18 23:36:21 +00:00
scsi_cd.h
scsi_ch.c Added output of device QUIRKS for CAM and AHCI devices during boot. 2013-05-18 23:36:21 +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 Acquire periph reference when handling d_getattr() method call. 2013-06-12 09:07:15 +00:00
scsi_da.h Change 'camcontrol defects' to first probe a drive to find out how much 2012-06-22 18:57:06 +00:00
scsi_dvcfg.h
scsi_enc_internal.h Fix a device departure bug for the the pass(4), enc(4), sg(4) and ch(4) 2012-12-08 04:03:04 +00:00
scsi_enc_safte.c 1. Remove SEN support. I doubt there are any working examples 2012-08-12 17:01:07 +00:00
scsi_enc_ses.c Make CAM return and GEOM DISK pass through new GEOM::lunid attribute. 2013-06-12 13:36:20 +00:00
scsi_enc.c Fix a device departure bug for the the pass(4), enc(4), sg(4) and ch(4) 2012-12-08 04:03:04 +00:00
scsi_enc.h MFprojects/zfsd: 2012-05-24 14:07:44 +00:00
scsi_iu.h
scsi_low.c Remove some more NetBSD compat shims and other unused bits from these 2012-09-10 18:49:49 +00:00
scsi_low.h Remove some more NetBSD compat shims and other unused bits from these 2012-09-10 18:49:49 +00:00
scsi_message.h
scsi_pass.c Simplify the checking of flags for cam_periph_mapmem(). This gets rid of 2013-06-07 00:22:38 +00:00
scsi_pass.h
scsi_pt.c Fxi a bunch of typos. 2013-05-10 16:41:26 +00:00
scsi_pt.h
scsi_sa.c Added output of device QUIRKS for CAM and AHCI devices during boot. 2013-05-18 23:36:21 +00:00
scsi_sa.h
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 Simplify the checking of flags for cam_periph_mapmem(). This gets rid of 2013-06-07 00:22:38 +00:00
scsi_sg.h
scsi_targ_bh.c Add the CAM Target Layer (CTL). 2012-01-12 00:34:33 +00:00
scsi_target.c Simplify the checking of flags for cam_periph_mapmem(). This gets rid of 2013-06-07 00:22:38 +00:00
scsi_targetio.h
scsi_xpt.c Add some cam_freeze_devq()'s missed at r249466. 2013-04-28 18:12:43 +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