For write, verify DIF/DIX before submission and for read, verify DIF/DIX after successful completion. As same as the NVMe bdev module and the NULL bdev module, DIF/DIX verification is done based on the DIF type and DIF insert/strip is not supported. In near future, the bdev I/O APIs bring an I/O flag to the underlying bdev and the malloc bdev module will be able to decide DIF/DIX verification based on the I/O flag. One important feature is to setup protection information when creating a malloc disk. Otherwise, all initial reads will fail if protection information is enabled. For users, add some explanation about the dif_type parameter into doc/jsonrpc.md. Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I93757b77c03cade766c872e418bb46d44918bee2 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14985 Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot |
||
---|---|---|
.. | ||
bdev_malloc_rpc.c | ||
bdev_malloc.c | ||
bdev_malloc.h | ||
Makefile |