+12
−0
+12
−29
Loading
For UNMAP and WRITE ZEROES, we should also set correct values for Application Tag/Reference Tag, when reading contents from the deallocated ranges, we will skip checking the protection information based on DIF type. Here, we use `SPDK_DIF_APPTAG_IGNORE` and `SPDK_DIF_REFTAG_IGNORE` as the special values when creating DIF context, when the two values are used for Application Tag and initialization Reference Tag, we will fill the protection information fields with above values based on check flags, then when doing verify with above values in protection information fields, the checking will be ignored. Change-Id: I045fb3863cc6567f961905ce8bf57b90895c0e9c Signed-off-by:Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20492 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> Community-CI: Mellanox Build Bot