Spdk/lib/bdev
Tomasz Zawadzki b51b8b4f9c lvol: fix incorrect assumption of 1MiB cluster_size
Previously incorrectly it was assumed that cluster size
was always to be 1MiB. For most evident example of this
please see spdk_lvol_create() sz > free_clusters comparison.

This is now fixed and lvol->sz was changed to lvol->cluster_num.
It was done to increase readability - only dealing with
number of clusters when creating or resizing lvol.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: If8cdbad18978319e57b6952dbf5a55d56785f108
Reviewed-on: https://review.gerrithub.io/380467
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-09-27 17:27:13 -04:00
..
aio bdev: unify all direct bdev_io I/O types 2017-09-22 13:44:25 -04:00
error bdev/error: use bdev_part helper functions 2017-09-12 11:16:50 -04:00
gpt gpt: fixed error-handling for vbdev_gpt_read_gpt 2017-09-25 16:53:52 -04:00
lvol lvol: fix incorrect assumption of 1MiB cluster_size 2017-09-27 17:27:13 -04:00
malloc copy: return 0 on success and appropriate errno on failure 2017-09-25 13:56:29 -04:00
null bdev/null: add Write Zeroes support 2017-09-25 16:31:49 -04:00
nvme bdev/nvme: handle the case for no valid ns when creating bdev 2017-09-26 17:44:32 -04:00
rbd bdev: unify all direct bdev_io I/O types 2017-09-22 13:44:25 -04:00
rpc bdev: remove bdev_opened_for_write restriction 2017-09-20 14:43:32 -04:00
split bdev: add common partition helper functions 2017-09-12 11:16:50 -04:00
virtio bdev_virtio: send IO to proper target 2017-09-26 15:53:29 -04:00
bdev.c bdev: set bdev_io->iovs for all direct IO types 2017-09-27 16:10:26 -04:00
Makefile lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00
scsi_nvme.c nvme_spec: remove SGL Sub Type Invalid status code 2017-09-22 17:11:53 -04:00
vtune.c bdev: #include VTune file to control warnings 2017-06-08 12:44:25 -04:00