diff options
author | Nicholas Bellinger <nab@daterainc.com> | 2013-08-22 17:17:20 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-09-10 19:48:46 -0400 |
commit | d397a445f43c7ae9b35260f236a08d5b5760de3d (patch) | |
tree | 9bc760fc767b73a5a20cba6e4ddd0154aa7003a6 /include | |
parent | 04b1b7954649767f2ab9bf08cf2457e21d5c7167 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/target/target_core_base.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 68a4ca698025..e12bcd7f76ca 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -99,6 +99,8 @@ | |||
99 | #define DA_EMULATE_TPWS 0 | 99 | #define DA_EMULATE_TPWS 0 |
100 | /* Emulation for CompareAndWrite (AtomicTestandSet) by default */ | 100 | /* Emulation for CompareAndWrite (AtomicTestandSet) by default */ |
101 | #define DA_EMULATE_CAW 1 | 101 | #define DA_EMULATE_CAW 1 |
102 | /* Emulation for 3rd Party Copy (ExtendedCopy) by default */ | ||
103 | #define DA_EMULATE_3PC 1 | ||
102 | /* No Emulation for PSCSI by default */ | 104 | /* No Emulation for PSCSI by default */ |
103 | #define DA_EMULATE_ALUA 0 | 105 | #define DA_EMULATE_ALUA 0 |
104 | /* Enforce SCSI Initiator Port TransportID with 'ISID' for PR */ | 106 | /* Enforce SCSI Initiator Port TransportID with 'ISID' for PR */ |
@@ -606,6 +608,7 @@ struct se_dev_attrib { | |||
606 | int emulate_tpu; | 608 | int emulate_tpu; |
607 | int emulate_tpws; | 609 | int emulate_tpws; |
608 | int emulate_caw; | 610 | int emulate_caw; |
611 | int emulate_3pc; | ||
609 | int enforce_pr_isids; | 612 | int enforce_pr_isids; |
610 | int is_nonrot; | 613 | int is_nonrot; |
611 | int emulate_rest_reord; | 614 | int emulate_rest_reord; |