Spdk/test/spdkcli/match_files
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
..
spdkcli_details_lvs.test.match lvol: report io_unit_size as block_size instead of page size 2020-07-17 07:20:14 +00:00
spdkcli_details_vhost_ctrl.test.match test/spdkcli: test vhost_ctrl show_details method 2019-07-24 18:24:22 +00:00
spdkcli_details_vhost_target.test.match test/spdkcli: test vhost_target show_details method 2019-07-26 19:50:13 +00:00
spdkcli_details_vhost.test.match lib/bdev: zoned info in get_bdevs RPC call 2019-10-02 21:13:16 +00:00
spdkcli_iscsi.test.match iscsi: Remove cpumask from portals 2019-08-08 05:35:01 +00:00
spdkcli_nvmf.test.match spdkcli: Remove uuid when displaying namespaces. 2018-12-03 15:12:06 +00:00
spdkcli_pmem_info.test.match spdkcli: test pmem_pool_info comand 2019-07-15 03:39:06 +00:00
spdkcli_pmem.test.match test/spdkcli: Add possibility to delete all bdevs 2018-11-29 19:27:10 +00:00
spdkcli_raid.test.match spdkcli: Add support for raid devices 2019-05-09 19:36:35 +00:00
spdkcli_rbd.test.match test/spdkcli: Add possibility to delete all bdevs 2018-11-29 19:27:10 +00:00
spdkcli_vhost.test.match spdkcli: Add support for raid devices 2019-05-09 19:36:35 +00:00
spdkcli_virtio_pci.test.match spdkcli: Add support for raid devices 2019-05-09 19:36:35 +00:00
spdkcli_virtio_user.test.match test/spdkcli: Test for virtio bdevs. 2018-07-27 16:48:02 +00:00