[PATCH] Add support for COMPAREANDWRITE opcode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tomo,

Please find attached a patch that adds support for the COMPARE_AND_WRITE opcode.


I also have test for this opcode in libiscsi :


iscsi-test --dataloss --test="*compareandwrite*"
iscsi://127.0.0.1/iqn.ronnie.test/1
0340_compareandwrite_simple:
===================
Compare and write first 1-255 blocks ... [OK]
Compare and write last 1-255 blocks ... [OK]
TEST T0340_compareandwrite_simple [OK]

0341_compareandwrite_mismatch:
===================
Compare and write first 1-255 blocks (data is not matching) ... [OK]
Compare and write last 1-255 blocks (data is not matching) ... [OK]
TEST T0341_compareandwrite_mismatch [OK]

0343_compareandwrite_beyond_eol:
=======================
Writing 1-255 blocks with one block beyond end-of-device ... [OK]
Writing 1-255 blocks at LBA 2^63 ... [OK]
Writing 1-255 blocks at LBA -1 ... [OK]
Writing 1-255 blocks beyond eol starting at last block ... [OK]
TEST T0343_compareandwrite_beyondeol [OK]

Attachment: 0001-Add-support-for-COMPAREANDWRITE-opcode.patch.gz
Description: GNU Zip compressed data

Attachment: 0001-Add-support-for-COMPAREANDWRITE-opcode.patch
Description: Binary data


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux