scst_tg: Restore Linux and ESXi interoperability

Linux and ESXi expect that target ports in one of the ALUA states
standby or unavailable are able to process commands like TEST UNIT
READY, READ CAPACITY, RESERVE and RELEASE. This patch partially
reverts r6802.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6813 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2016-02-22 04:13:53 +00:00
parent f029978199
commit f27b1f9cc3
2 changed files with 11 additions and 0 deletions

View File

@@ -3547,6 +3547,7 @@ static bool vdisk_no_fd_allowed_commands(const struct scst_cmd *cmd)
switch (cmd->cdb[0]) {
case TEST_UNIT_READY:
case GET_EVENT_STATUS_NOTIFICATION:
case INQUIRY:
case MODE_SENSE:
case MODE_SENSE_10:

View File

@@ -283,6 +283,8 @@ static int scst_tg_accept_standby(struct scst_cmd *cmd)
TRACE_ENTRY();
switch (cmd->cdb[0]) {
case TEST_UNIT_READY:
case GET_EVENT_STATUS_NOTIFICATION:
case INQUIRY:
case MODE_SENSE:
case MODE_SENSE_10:
@@ -346,10 +348,18 @@ static int scst_tg_accept_unav(struct scst_cmd *cmd)
TRACE_ENTRY();
switch (cmd->cdb[0]) {
case TEST_UNIT_READY:
case GET_EVENT_STATUS_NOTIFICATION:
case INQUIRY:
case MODE_SENSE:
case MODE_SENSE_10:
case READ_CAPACITY:
case REPORT_LUNS:
case REQUEST_SENSE:
case RELEASE:
case RELEASE_10:
case RESERVE:
case RESERVE_10:
case READ_BUFFER:
case WRITE_BUFFER:
res = SCST_ALUA_CHECK_OK;