- 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
This commit is contained in:
Vladislav Bolkhovitin
2007-03-07 17:10:45 +00:00
parent 8e69f4349a
commit b61ab2848d
2 changed files with 3 additions and 1 deletions

View File

@@ -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));

View File

@@ -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)",