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] -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Add-support-for-COMPAREANDWRITE-opcode.patch.gz Type: application/x-gzip Size: 1561 bytes Desc: not available URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120714/d9b61749/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Add-support-for-COMPAREANDWRITE-opcode.patch Type: application/octet-stream Size: 4031 bytes Desc: not available URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120714/d9b61749/attachment.obj> |