target: Fail WRITE_SAME w/ UNMAP=1 when emulate_tpws=0
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 14 Feb 2015 01:56:19 +0000 (01:56 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 14 Feb 2015 02:54:40 +0000 (02:54 +0000)
commitd0a91295557666f9e58b79b5177a98229007803b
tree2a4dcb4c633d2d8b7ccd962abbc74f0193e69f61
parentfde9f50f80fe89a9115b4bfa773017272597d85d
target: Fail WRITE_SAME w/ UNMAP=1 when emulate_tpws=0

This patch adds a check within sbc_setup_write_same() to fail a
WRITE_SAME w/ UNMAP=1 op, if the backend device has emulate_tpws
disabled.

Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c
This page took 0.026418 seconds and 5 git commands to generate.