summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp/isp_freebsd.c
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2010-06-05 00:56:15 +0000
committermjacob <mjacob@FreeBSD.org>2010-06-05 00:56:15 +0000
commitbcf3a93c494f0ac112599b839fd325f7ee9fabf8 (patch)
tree4f610590caecdabf49befda3d23f4b1c609ee100 /sys/dev/isp/isp_freebsd.c
parentb471c2cbb24dfa51bb8d22415e13779e19f24c02 (diff)
downloadFreeBSD-src-bcf3a93c494f0ac112599b839fd325f7ee9fabf8.zip
FreeBSD-src-bcf3a93c494f0ac112599b839fd325f7ee9fabf8.tar.gz
Make the internal target > SPC2 (so REPORT LUNS can be tested).
Give the NIL inquiry data real values other than just plain 0x7f in the first byte. MFC after: 2 weeks
Diffstat (limited to 'sys/dev/isp/isp_freebsd.c')
-rw-r--r--sys/dev/isp/isp_freebsd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c
index 4220d1f..597c5c7 100644
--- a/sys/dev/isp/isp_freebsd.c
+++ b/sys/dev/isp/isp_freebsd.c
@@ -3039,9 +3039,15 @@ isptargnotify(ispsoftc_t *isp, union ccb *iccb, struct ccb_immediate_notify *ino
static void
isptargstart(struct cam_periph *periph, union ccb *iccb)
{
- const uint8_t niliqd[SHORT_INQUIRY_LENGTH] = { 0x7f };
+ const uint8_t niliqd[SHORT_INQUIRY_LENGTH] = {
+ 0x7f, 0x0, 0x5, 0x2, 32, 0, 0, 0x32,
+ 'F', 'R', 'E', 'E', 'B', 'S', 'D', ' ',
+ 'S', 'C', 'S', 'I', ' ', 'N', 'U', 'L',
+ 'L', ' ', 'D', 'E', 'V', 'I', 'C', 'E',
+ '0', '0', '0', '1'
+ };
const uint8_t iqd[SHORT_INQUIRY_LENGTH] = {
- 0, 0x0, 0x2, 0x2, 32, 0, 0, 0x32,
+ 0, 0x0, 0x5, 0x2, 32, 0, 0, 0x32,
'F', 'R', 'E', 'E', 'B', 'S', 'D', ' ',
'S', 'C', 'S', 'I', ' ', 'M', 'E', 'M',
'O', 'R', 'Y', ' ', 'D', 'I', 'S', 'K',
OpenPOWER on IntegriCloud