diff options
author | 2015-02-13 22:49:38 +0000 | |
---|---|---|
committer | 2015-02-14 02:09:44 +0000 | |
commit | f7b7c06f386c5e990acb87a8bc96137b9f978977 (patch) | |
tree | 60a15481f0e470257ec72de21a8dd53b81427b93 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | target: Check for LBA + sectors wrap-around in sbc_parse_cdb (diff) | |
download | wireguard-linux-f7b7c06f386c5e990acb87a8bc96137b9f978977.tar.xz wireguard-linux-f7b7c06f386c5e990acb87a8bc96137b9f978977.zip |
target: Fail I/O with PROTECT bit when protection is unsupported
This patch adds an explicit check for WRPROTECT + RDPROTECT bit usage
within sbc_check_prot(), and fails with TCM_INVALID_CDB_FIELD if the
backend device does not have protection enabled.
Also, update sbc_check_prot() to return sense_reason_t in order to
propigate up the correct sense ASQ.
Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions