+7
−0
Loading
If the bdev does not natively support compare we use the fall-back which performs a read instead of a compare operation. We then compare the results of the read with the buffer provided by the user. In case the bdev has metadata, there are two options: 1) md is interleaved -> the md will be part of the data buffer allocated for the read and compared accordingly 2) md is separate -> currently we do not compare the metadata but just ignore it. This patch fixes 2) by comparing the md buffer after the read is done. Signed-off-by:Jonas Pfefferle <pepperjo@japf.ch> Change-Id: I1018b8c02540bffcba69408eb283bdc8f06bb747 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14132 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>