summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-10-05 10:56:57 +0000
committermav <mav@FreeBSD.org>2015-10-05 10:56:57 +0000
commita7d49f5cb9bcfece1216815d7ca0e81eccbc0d05 (patch)
treee76e81b523559ac37229b1d0dea93abb227aebf3 /sys/cam
parentaa30e0e8efc51670eb30f1b6b46846b3a23b6765 (diff)
downloadFreeBSD-src-a7d49f5cb9bcfece1216815d7ca0e81eccbc0d05.zip
FreeBSD-src-a7d49f5cb9bcfece1216815d7ca0e81eccbc0d05.tar.gz
MFC r288170: Add new report types to REPORT LUNS command.
This is only for completeness, since we have nothing new to report there.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/ctl/ctl.c8
-rw-r--r--sys/cam/scsi/scsi_all.h3
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index e544eef..55ee89d 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -9267,12 +9267,10 @@ ctl_report_luns(struct ctl_scsiio *ctsio)
struct ctl_port *port;
int num_luns, retval;
uint32_t alloc_len, lun_datalen;
- int num_filled, well_known;
+ int num_filled;
uint32_t initidx, targ_lun_id, lun_id;
retval = CTL_RETVAL_COMPLETE;
- well_known = 0;
-
cdb = (struct scsi_report_luns *)ctsio->cdb;
port = ctl_io_port(&ctsio->io_hdr);
@@ -9289,9 +9287,11 @@ ctl_report_luns(struct ctl_scsiio *ctsio)
switch (cdb->select_report) {
case RPL_REPORT_DEFAULT:
case RPL_REPORT_ALL:
+ case RPL_REPORT_NONSUBSID:
break;
case RPL_REPORT_WELLKNOWN:
- well_known = 1;
+ case RPL_REPORT_ADMIN:
+ case RPL_REPORT_CONGLOM:
num_luns = 0;
break;
default:
diff --git a/sys/cam/scsi/scsi_all.h b/sys/cam/scsi/scsi_all.h
index daae040..f2b4b21 100644
--- a/sys/cam/scsi/scsi_all.h
+++ b/sys/cam/scsi/scsi_all.h
@@ -2864,6 +2864,9 @@ struct scsi_report_luns
#define RPL_REPORT_DEFAULT 0x00
#define RPL_REPORT_WELLKNOWN 0x01
#define RPL_REPORT_ALL 0x02
+#define RPL_REPORT_ADMIN 0x10
+#define RPL_REPORT_NONSUBSID 0x11
+#define RPL_REPORT_CONGLOM 0x12
uint8_t select_report;
uint8_t reserved2[3];
uint8_t length[4];
OpenPOWER on IntegriCloud