]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
target: Add MAXIMUM COMPARE AND WRITE LENGTH in Block Limits VPD
authorNicholas Bellinger <nab@daterainc.com>
Tue, 20 Aug 2013 21:24:09 +0000 (14:24 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 9 Sep 2013 21:29:35 +0000 (14:29 -0700)
commit0123a9ec6a4fea20d5afea90c9b47fb73fb1bc34
tree6ac9f2539a9db0013757f51b18a97f3bf8ded49a
parent76dde50ebef75773ea2b68e0bf914e87e6a3711c
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>
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