diff options
author | 2015-02-14 01:32:11 +0000 | |
---|---|---|
committer | 2015-02-14 02:09:45 +0000 | |
commit | afd73f1b60fc5883ea4982f68e9522e77b28f1e5 (patch) | |
tree | c8bfb7f917842b9cc8d0f0f24e71f3be869ba420 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | target: Fail I/O with PROTECT bit when protection is unsupported (diff) | |
download | wireguard-linux-afd73f1b60fc5883ea4982f68e9522e77b28f1e5.tar.xz wireguard-linux-afd73f1b60fc5883ea4982f68e9522e77b28f1e5.zip |
target: Perform PROTECT sanity checks for WRITE_SAME
This patch adds a call to sbc_check_prot() within sbc_setup_write_same()
code to perform the various protection releated sanity checks, including
failing if WRPROTECT or RDPROTECT is set for a backend device that has
not advertised support for T10-PI.
Also, since WRITE_SAME + T10-PI is currently not supported by IBLOCK +
FILEIO backends, go ahead and fail if ->execute_write_same() is invoked
with a non zero cmd->prot_op.
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions