aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_error.h
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2014-09-23 20:35:48 +0000
committerAlexander Motin <mav@FreeBSD.org>2014-09-23 20:35:48 +0000
commit8f07b2d523e5fd1e6fa79a0cc48a6cd3d0c147c7 (patch)
tree4b42672f9c74fbd3b621aa3739b10bd3330d4e84 /sys/cam/ctl/ctl_error.h
parent2c048c4aa679f2367d6c3235c7706a0c0450375e (diff)
downloadsrc-8f07b2d523e5fd1e6fa79a0cc48a6cd3d0c147c7.tar.gz
src-8f07b2d523e5fd1e6fa79a0cc48a6cd3d0c147c7.zip
When reporting some major UNIT ATTENTION condition, like POWER ON OCCURRED
or I_T NEXUS LOSS, clear all minor UAs for the LUN, redundant in this case. All SAM specifications tell that target MAY do it, but libiscsi initiator seems require it to be done, terminating connection with error if some more UAs happen to be reported during iSCSI connection. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=272040
Diffstat (limited to 'sys/cam/ctl/ctl_error.h')
-rw-r--r--sys/cam/ctl/ctl_error.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl_error.h b/sys/cam/ctl/ctl_error.h
index 62596d0a1a40..034d14bff990 100644
--- a/sys/cam/ctl/ctl_error.h
+++ b/sys/cam/ctl/ctl_error.h
@@ -55,7 +55,7 @@ void ctl_sense_to_desc(struct scsi_sense_data_fixed *sense_src,
void ctl_sense_to_fixed(struct scsi_sense_data_desc *sense_src,
struct scsi_sense_data_fixed *sense_dest);
void ctl_set_ua(struct ctl_scsiio *ctsio, int asc, int ascq);
-ctl_ua_type ctl_build_ua(ctl_ua_type ua_type, struct scsi_sense_data *sense,
+ctl_ua_type ctl_build_ua(ctl_ua_type *ua_type, struct scsi_sense_data *sense,
scsi_sense_data_type sense_format);
void ctl_set_overlapped_cmd(struct ctl_scsiio *ctsio);
void ctl_set_overlapped_tag(struct ctl_scsiio *ctsio, uint8_t tag);