Hi Mike, On Thu, 10 Mar 2016 00:34:32 -0600, Mike Christie wrote: > This adds support for a new op cmpext. The request will read > extent.length bytes and compare them to extent.length bytes at > extent.offset on disk. If there is a miscompare the osd will return > -EILSEQ, and the mismatched buffer that was read. > > rbd will use this in a multi op request to implement the > SCSI COMPARE_AND_WRITE request which is used by VMware for > its atomic test and set request. > > v2: > - Merge David's tracing fixes. > - Instead of returning the mismatch offset and buffer on matching > failure just return the buffer. The client can figure out the offset > if it needs it. What's your reason for dropping the mismatch offset? The osd has to perform the comparison, so might as well do something with the result, even if it's ignored by the client in some cases. Cheers, David -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html