ken 45116d3e78 Make sure that the flags for the XPT_DEV_ADVINFO CCB are initialized
properly.

If there is garbage in the flags field, it can sometimes include a
set CDAI_FLAG_STORE flag, which may cause either an error or
perhaps result in overwriting the field that was intended to be
read.

sys/cam/cam_ccb.h:
	Add a new flag to the XPT_DEV_ADVINFO CCB, CDAI_FLAG_NONE,
	that callers can use to set the flags field when no store
	is desired.

sys/cam/scsi/scsi_enc_ses.c:
	In ses_setphyspath_callback(), explicitly set the
	XPT_DEV_ADVINFO flags to CDAI_FLAG_NONE when fetching the
	physical path information.  Instead of ORing in the
	CDAI_FLAG_STORE flag when storing the physical path, set
	the flags field to CDAI_FLAG_STORE.

sys/cam/scsi/scsi_sa.c:
	Set the XPT_DEV_ADVINFO flags field to CDAI_FLAG_NONE when
	fetching extended inquiry information.

sys/cam/scsi/scsi_da.c:
	When storing extended READ CAPACITY information, set the
	XPT_DEV_ADVINFO flags field to CDAI_FLAG_STORE instead of
	ORing it into a field that isn't initialized.

sys/dev/mpr/mpr_sas.c,
sys/dev/mps/mps_sas.c:
	When fetching extended READ CAPACITY information, set the
	XPT_DEV_ADVINFO flags field to CDAI_FLAG_NONE instead of
	setting it to 0.

sbin/camcontrol/camcontrol.c:
	When fetching a device ID, set the XPT_DEV_ADVINFO flags
	field to CDAI_FLAG_NONE instead of 0.

sys/sys/param.h:
	Bump __FreeBSD_version to 1100061 for the new XPT_DEV_ADVINFO
	CCB flag, CDAI_FLAG_NONE.

Sponsored by:	Spectra Logic
MFC after:	1 week
2015-02-18 18:30:19 +00:00
..
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-12-29 13:50:59 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-12-27 08:22:58 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-21 01:43:55 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2015-01-27 18:27:07 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2015-01-04 12:49:24 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-12-29 13:50:59 +00:00
2014-11-25 11:23:12 +00:00
2014-12-27 08:22:58 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-12-29 13:50:59 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00
2014-11-25 11:23:12 +00:00