+18
−0
+7
−0
Loading
By current design of nvmf and bdev layers write zeroes command with deallocate is not supported. See that spdk_nvmf_ctrlr_identify_ns and nvmf_bdev_ctrlr_identify_ns don't set any dlfeat bits. Without that check Write Zeroes command with DEAC bit set passes through nvmf/bdev/nvme and can reach out remote target which might actually support it and return the success. Adding proper support for that requires more work between nvmf, bdev and nvme layers hence just improve input validation by adding explicit check and terminate such command early. Change-Id: Ie9dccdfb8a706cb58caf04c1368c5c8f48084fc9 Signed-off-by:Jacek Kalwas <jacek.kalwas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22376 Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Community-CI: Mellanox Build Bot