Loading
bdev/malloc: generate Protection Information for deallocated ranges
Malloc bdev will zeroout all data buffer include the metadata after UNMAP and WRITE ZEROES, but for the protection information we should fill `SPDK_DIF_APPTAG_IGNORE` and `SPDK_DIF_REFTAG_IGNORE` for Application Tag and Reference Tag in protection information. Here, after UNMAP and WRITE ZEORES done, we fill the protection information fields with above values, then when reading to the deallocated ranges, the verify API will skip checking the protection information. Fix issue #3156. Change-Id: I403a1c7f5da54146db6e760081d93f6346b0b2d7 Signed-off-by:Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20493 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com>