78f44434a6
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> |
||
---|---|---|
.. | ||
match_files | ||
common.sh | ||
iscsi.sh | ||
nvmf.sh | ||
pmem.sh | ||
raid.sh | ||
rbd.sh | ||
spdkcli_job.py | ||
tcp.sh | ||
vhost.sh | ||
virtio.sh |