diff options
author | Nicholas Bellinger <nab@daterainc.com> | 2013-08-20 17:24:09 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-09-09 17:29:35 -0400 |
commit | 0123a9ec6a4fea20d5afea90c9b47fb73fb1bc34 (patch) | |
tree | 6ac9f2539a9db0013757f51b18a97f3bf8ded49a /include/target | |
parent | 76dde50ebef75773ea2b68e0bf914e87e6a3711c (diff) |
target: Add MAXIMUM COMPARE AND WRITE LENGTH in Block Limits VPD
This patch adds the MAXIMUM COMPARE AND WRITE LENGTH bit, currently
hardcoded to a single logical block (NoLB=1) within the Block Limits
VPD in spc_emulate_evpd_b0().
Also add emulate_caw 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: James Bottomley <JBottomley@Parallels.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Nicholas Bellinger <nab@daterainc.com>
Diffstat (limited to 'include/target')
-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 7fdb3fae2961..61a4dc890701 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -97,6 +97,8 @@ | |||
97 | * block/blk-lib.c:blkdev_issue_discard() | 97 | * block/blk-lib.c:blkdev_issue_discard() |
98 | */ | 98 | */ |
99 | #define DA_EMULATE_TPWS 0 | 99 | #define DA_EMULATE_TPWS 0 |
100 | /* Emulation for CompareAndWrite (AtomicTestandSet) by default */ | ||
101 | #define DA_EMULATE_CAW 1 | ||
100 | /* No Emulation for PSCSI by default */ | 102 | /* No Emulation for PSCSI by default */ |
101 | #define DA_EMULATE_ALUA 0 | 103 | #define DA_EMULATE_ALUA 0 |
102 | /* Enforce SCSI Initiator Port TransportID with 'ISID' for PR */ | 104 | /* Enforce SCSI Initiator Port TransportID with 'ISID' for PR */ |
@@ -602,6 +604,7 @@ struct se_dev_attrib { | |||
602 | int emulate_tas; | 604 | int emulate_tas; |
603 | int emulate_tpu; | 605 | int emulate_tpu; |
604 | int emulate_tpws; | 606 | int emulate_tpws; |
607 | int emulate_caw; | ||
605 | int enforce_pr_isids; | 608 | int enforce_pr_isids; |
606 | int is_nonrot; | 609 | int is_nonrot; |
607 | int emulate_rest_reord; | 610 | int emulate_rest_reord; |