target: Add Third Party Copy (3PC) bit in INQUIRY response
authorNicholas Bellinger <nab@daterainc.com>
Thu, 22 Aug 2013 21:17:20 +0000 (14:17 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 10 Sep 2013 23:48:46 +0000 (16:48 -0700)
commitd397a445f43c7ae9b35260f236a08d5b5760de3d
tree9bc760fc767b73a5a20cba6e4ddd0154aa7003a6
parent04b1b7954649767f2ab9bf08cf2457e21d5c7167
target: Add Third Party Copy (3PC) bit in INQUIRY response

This patch adds the Third Party Copy (3PC) bit to signal support
for EXTENDED_COPY within standard inquiry response data.

Also add emulate_3pc device attribute in configfs (enabled by default)
to allow the exposure of this bit to be disabled, if necessary.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Chris Mason <chris.mason@fusionio.com>
Cc: Roland Dreier <roland@purestorage.com>
Cc: Zach Brown <zab@redhat.com>
Cc: James Bottomley <JBottomley@Parallels.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Nicholas Bellinger <nab@daterainc.com>
drivers/target/target_core_configfs.c
drivers/target/target_core_device.c
drivers/target/target_core_internal.h
drivers/target/target_core_spc.c
include/target/target_core_base.h