On 9/4/2015 10:41 PM, Mike Christie wrote:
Hey Nick and Christoph,
Hi Mike,
For the target_core_iblock + rbd/COMPARE_AND_WRITE support approach, I still need a patch like below to be able to allow target_core_iblock.c to be able to specify specific codes like TCM_MISCOMPARE_VERIFY.
I just posted a couple of patches to use scsi helpers to set the sense buffer with/without information (see translate_sense_reason). You can just add TCM_MISCOMPARE_VERIFY entry to sense_info_table with .add_sector_info = true. Moreover, we have a field in the command structure to keep the error sector (used in DIF). So you should go ahead and use that. Sagi. -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html