]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Target/sbc: Set protection operation and relevant checks
authorSagi Grimberg <sagig@mellanox.com>
Wed, 19 Feb 2014 15:50:15 +0000 (17:50 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 13 Mar 2014 19:03:02 +0000 (12:03 -0700)
commit19f9361af7dfa0bb1f98c7619544ed71d2dded39
tree4afa7db32e56d65500661134906c729699f226bc
parentacb2bde3e32100f1ab50e38f0db03660a1cb0a06
Target/sbc: Set protection operation and relevant checks

SBC-3 mandates the protection checks that must be
performed in the rdprotect/wrprotect field. Use them.
According to backstore device pi_attributes and
cdb rdprotect/wrprotect field.

(Fix incorrect se_cmd->prot_type -> TARGET_PROT_NORMAL
 comparision in transport_generic_new_cmd - nab)
(Fix missing break in sbc_set_prot_op_checks - DanC + Sagi)

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c
drivers/target/target_core_transport.c
include/target/target_core_base.h