Spdk/test
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
..
app event: Remove arg2 from spdk_app_start() 2019-03-05 08:43:12 +00:00
bdev event: Remove arg2 from spdk_app_start() 2019-03-05 08:43:12 +00:00
blobfs event: Remove arg2 from spdk_app_start() 2019-03-05 08:43:12 +00:00
blobstore histograms: tests for bdev histograms 2019-01-24 21:50:18 +00:00
common test scripts: add -E to sudo git clone in vm_setup.sh 2019-03-04 19:12:10 +00:00
config_converter config_converter: Remove deprecated construct_nvmf_subsystem RPC 2019-01-29 16:17:03 +00:00
cpp_headers build: don't include spdk.app.mk in test/cpp_headers 2018-12-12 22:35:21 +00:00
env test/env: add UNIT_TEST_NO_PCI_ADDR 2019-03-04 14:00:16 +00:00
event event: Remove arg2 from spdk_app_start() 2019-03-05 08:43:12 +00:00
ftl test/ftl: Remove deprecated max_delay parameter from tests 2019-02-20 21:30:29 +00:00
ioat ioat: remove ioat kperf kernel driver test harness 2018-04-30 17:11:53 +00:00
iscsi_tgt test/iscsi_tgt: Use rpc instead of config file. 2019-02-22 18:28:25 +00:00
json_config test:increase the json_config.sh shutdown app timeout value 2019-02-22 09:55:03 +00:00
lvol test/lvol: Implement test case 653 2019-03-01 22:54:07 +00:00
nvme test/nvmf/nvme-cli: don't run nvme-cli as secondary process 2019-01-29 20:54:13 +00:00
nvmf test/nvmf: move connect_disconnect to NIGHTLY_FAILING 2019-02-21 20:03:04 +00:00
ocf OCF: rpc: add get_ocf_bdevs method 2019-01-28 18:53:31 +00:00
pmem bdev: remove delete_bdev RPC 2019-03-01 08:50:07 +00:00
rpc_client jsonrpc: add connection close callback 2019-01-10 14:31:37 +00:00
spdkcli QoS/Bdev: add the Read/Write separate bandwidth rate limits 2019-01-22 23:21:43 +00:00
unit scsi: Use data block size not including metadata instead of block size 2019-03-07 07:03:27 +00:00
vhost test/vhost: add windows filesystem test 2019-02-25 23:16:44 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00