[stgt] [PATCH] COMPARE_AND_WRITE: Fix this opcode so it works according to SBC
fujita.tomonori at lab.ntt.co.jp
Sat Nov 17 14:56:45 CET 2012
On Fri, 16 Nov 2012 18:26:52 -0800
Ronnie Sahlberg <ronniesahlberg at gmail.com> wrote:
> After reading SBC again it becomes a lot more clear how this
> opcode works.
> Reactivate the opcode and implement it properly.
> Compare the first "number of blocks" from DATA-OUT with the existing
> content of these blocks on the LUN.
> If it compare ok, then overwrite these block on the lun with the
> next "number of blocks" from the DATA-OUT buffer.
> Signed-off-by: Ronnie Sahlberg <ronniesahlberg at gmail.com>
> usr/bs_rdwr.c | 21 +++++++++++++++++----
> usr/sbc.c | 2 +-
> 2 files changed, 18 insertions(+), 5 deletions(-)
COMPARE_AND_WRITE broke VMware previously? Someone needs to test this
with the previous environment.
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt