Spdk/lib/scsi
Shuhei Matsumoto adc8da4aac scsi: Use data block size not including metadata instead of block size
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>
2019-03-07 07:03:27 +00:00
..
dev.c scsi: Set TMF code prior to calling spdk_scsi_dev_queue_mgmt_task 2018-12-10 20:34:11 +00:00
lun.c scsi: Add scsi_task_process_abort for aborted SCSI tasks. 2018-12-10 20:34:11 +00:00
Makefile scsi: remove lun_db 2018-01-09 13:56:00 -05:00
port.c scsi: add iSCSI initiator port TransportID 2018-12-05 16:04:06 +00:00
scsi_bdev.c scsi: Use data block size not including metadata instead of block size 2019-03-07 07:03:27 +00:00
scsi_internal.h scsi: LUN reset waits for completion of all prior tasks 2018-12-10 20:34:11 +00:00
scsi_rpc.c scsi: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
scsi.c lib/trace: show specific usage of trace mask 2018-11-30 14:52:28 +00:00
task.c scsi: Add scsi_task_process_abort for aborted SCSI tasks. 2018-12-10 20:34:11 +00:00