mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +00:00
ctl: Fix CTL GET EVENT STATUS NOTIFICATION valid bits
Linux as an initiator periodically sends the following to SCSI cdrom devices: 4a 01 00 00 10 00 00 00 08 00 According to the ctl_cmd_entry for this command this is invalid which leads to a lot of failed SCSI commands. The mask in this commit is based off of an early draft of the mmc standard, https://www.t10.org/ftp/t10/document.97/97-108r0.pdf, as well as subsequent standards (mmc2 through mmc6). This solves the issue with Linux initiators. Signed-off-by: HP van Braam <hp@tmm.cx> Reviewed by: imp, mav Pull Request: https://github.com/freebsd/freebsd-src/pull/1201
This commit is contained in:
parent
5824df8d99
commit
86fbb05da1
|
@ -1228,7 +1228,7 @@ const struct ctl_cmd_entry ctl_cmd_table[256] =
|
|||
CTL_CMD_FLAG_ALLOW_ON_PR_RESV |
|
||||
CTL_FLAG_DATA_IN,
|
||||
CTL_LUN_PAT_NONE,
|
||||
10, {0x02, 0x01, 0, 0, 0, 0xff, 0xff, 0xff, 0x07}},
|
||||
10, {0xe1, 0, 0, 0x7e, 0, 0, 0xff, 0xff, 0x07}},
|
||||
|
||||
/* 4B PAUSE/RESUME */
|
||||
{NULL, CTL_SERIDX_INVLD, CTL_CMD_FLAG_NONE, CTL_LUN_PAT_NONE},
|
||||
|
|
Loading…
Reference in a new issue