Re: [PATCH 3/8] target: Fail I/O with PROTECT bit when protection is unsupported

2015-02-15 Thread Sagi Grimberg
On 2/14/2015 5:27 AM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger 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()

[PATCH 3/8] target: Fail I/O with PROTECT bit when protection is unsupported

2015-02-13 Thread Nicholas A. Bellinger
From: Nicholas Bellinger 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