From b61ab2848d2cd2e8d7851b4a1465036cd34fffb7 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 7 Mar 2007 17:10:45 +0000 Subject: [PATCH] - D_SENSE value corrected - REPORT DENSITY SUPPORT command added git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@102 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 2 +- scst/src/scst_cdbprobe.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 4bde8461a..c0c424f3a 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -1257,7 +1257,7 @@ static int vdisk_caching_pg(unsigned char *p, int pcontrol, static int vdisk_ctrl_m_pg(unsigned char *p, int pcontrol, struct scst_vdisk_dev *virt_dev) { /* Control mode page for mode_sense */ - const unsigned char ctrl_m_pg[] = {0xa, 0xa, 0x22, 0, 0, 0x40, 0, 0, + const unsigned char ctrl_m_pg[] = {0xa, 0xa, 0x20, 0, 0, 0x40, 0, 0, 0, 0, 0x2, 0x4b}; memcpy(p, ctrl_m_pg, sizeof(ctrl_m_pg)); diff --git a/scst/src/scst_cdbprobe.h b/scst/src/scst_cdbprobe.h index b8e95c0b6..deb430cc3 100644 --- a/scst/src/scst_cdbprobe.h +++ b/scst/src/scst_cdbprobe.h @@ -297,6 +297,8 @@ static const struct scst_sdbops scst_scsi_op_table[] = { SCST_DATA_READ, FLAG_NONE, 7, get_trans_len_2}, {0x43, " O ", "READ TOC/PMA/ATIP", SCST_DATA_READ, FLAG_NONE, 7, get_trans_len_2}, + {0x44, " M ", "REPORT DENSITY SUPPORT", + SCST_DATA_READ, FLAG_NONE, 7, get_trans_len_2}, {0x44, " O ", "READ HEADER", SCST_DATA_READ, FLAG_NONE, 7, get_trans_len_2}, {0x45, " O ", "PLAY AUDIO(10)",