Spdk/include/spdk_internal
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
..
assert.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
bdev.h bdev: properly handle aborted resets 2017-09-22 15:38:44 -04:00
copy_engine.h copy: return 0 on success and appropriate errno on failure 2017-09-25 13:56:29 -04:00
event.h event: remove spdk_app_init 2017-06-15 18:26:52 -04:00
log.h log: add new parm to spdk_trace_dump() 2017-09-06 17:33:03 -04:00
lvolstore.h lvol: fix incorrect assumption of 1MiB cluster_size 2017-09-27 17:27:13 -04:00
mock.h test/mock: add pthread_self 2017-09-19 17:15:15 -04:00