numam-spdk/test/spdkcli
Tomasz Zawadzki 78f44434a6 lvol: report io_unit_size as block_size instead of page size
Bdev underneath lvs has a certain value set as block size,
then lvolstore inherits that as `io_unit_size`,
which ends up as block size for the lvol bdev presents.

Before this patch lvs on device with block size of 512,
would create lvol bdev with block size of 512.
Meanwhile reporting in bdev_lvol_get_lvstores(),
that block_size is 4k instead.

This was result of addition of io_unit_size and
forgetting to update the value here. Previously
only I/O of page_size was allowed.

This patch adjusts the value reported to
io_unit_size.

Alternatively it could have been removed,
or name changed to "io_unit_size".
Yet for API compatibility reason this name
remains.

Info on actual page size which is always 4k,
is not useful to bdev users. No need to add
another field for that.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I19701c408c389f64e25c027c7bba789294bbed94
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3289
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2020-07-17 07:20:14 +00:00
..
match_files lvol: report io_unit_size as block_size instead of page size 2020-07-17 07:20:14 +00:00
common.sh build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
iscsi.sh build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
nvmf.sh rpc: Deprecate max_qpairs_per_ctrlr parameter 2020-06-04 07:20:45 +00:00
pmem.sh test: move report_test_completion into run_test 2020-01-14 07:49:08 +00:00
raid.sh test: move report_test_completion into run_test 2020-01-14 07:49:08 +00:00
rbd.sh test: move report_test_completion into run_test 2020-01-14 07:49:08 +00:00
spdkcli_job.py spdkcli: Add support for TCP connection 2019-09-19 05:03:09 +00:00
tcp.sh build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
vhost.sh tests: Switch to $SPDK_TEST_STORAGE for writing out bigger tmp files 2020-05-20 14:17:02 +00:00
virtio.sh build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00