SPDK iSCSI and SCSI target don't expose any metadata and DIF settings to the corresponding iSCSI and SCSI initiator. Even when SPDK iSCSI and SCSI target allocate any bdev formatted with DIF, SCSI commands sent from iSCSI and SCSI initiator don't have any metadata and DIF information. For that case, iSCSI target inserts and strips DIF on behalf of iSCSI and SCSI initiator. Hence SPDK SCSI target has to use data block size not including metadata to process SCSI commands correctly. This patch replaces spdk_bdev_get_block_size by spdk_bdev_get_data_block_size in necessary places. Change-Id: I264c8e532d1d1b016f6d8774c8ec03389528044f Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/445083 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
scsi_bdev_ut.c |