summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-12-15 21:19:32 +0000
committermav <mav@FreeBSD.org>2015-12-15 21:19:32 +0000
commitdee08d7b3f8b623f912cade7c6969d19adf6a684 (patch)
tree69f024562e1b221a4bfa995fc44775b76767d36f /sys/cam
parent4bf76e39ad4e861072749c6657b36de165fc8e5d (diff)
downloadFreeBSD-src-dee08d7b3f8b623f912cade7c6969d19adf6a684.zip
FreeBSD-src-dee08d7b3f8b623f912cade7c6969d19adf6a684.tar.gz
Set DS flag, required for LPB log page by spec.
MFC after: 1 week
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/ctl/ctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index d21bd5a..ac886ca 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -6868,6 +6868,8 @@ ctl_log_sense(struct ctl_scsiio *ctsio)
header = (struct scsi_log_header *)ctsio->kern_data_ptr;
header->page = page_index->page_code;
+ if (page_index->page_code == SLS_LOGICAL_BLOCK_PROVISIONING)
+ header->page |= SL_DS;
if (page_index->subpage) {
header->page |= SL_SPF;
header->subpage = page_index->subpage;
OpenPOWER on IntegriCloud