You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Nicholas Bellinger
parent
04b1b79546
commit
d397a445f4
@@ -99,6 +99,8 @@
|
||||
#define DA_EMULATE_TPWS 0
|
||||
/* Emulation for CompareAndWrite (AtomicTestandSet) by default */
|
||||
#define DA_EMULATE_CAW 1
|
||||
/* Emulation for 3rd Party Copy (ExtendedCopy) by default */
|
||||
#define DA_EMULATE_3PC 1
|
||||
/* No Emulation for PSCSI by default */
|
||||
#define DA_EMULATE_ALUA 0
|
||||
/* Enforce SCSI Initiator Port TransportID with 'ISID' for PR */
|
||||
@@ -606,6 +608,7 @@ struct se_dev_attrib {
|
||||
int emulate_tpu;
|
||||
int emulate_tpws;
|
||||
int emulate_caw;
|
||||
int emulate_3pc;
|
||||
int enforce_pr_isids;
|
||||
int is_nonrot;
|
||||
int emulate_rest_reord;
|
||||
|
||||
Reference in New Issue
Block a user