074a63d507
OCF creates vbdev with block size equal in size with a core device. We need to ensure that cache's bdev block size is not bigger than core's bdev block size, so there are no IO errors due to IO length smaller than cache device's block size. The reason why this is implemented late in the cache start and not as soon as we want to construct OCF vbdev is that cache or core device can be added later after OCF vbdev creation and only then we are certain to have both devices to compare. Fixes #2088 Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com> Change-Id: I536c783ca71b52f212217c597b7997f2d2e89491 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9229 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
ctx.c | ||
ctx.h | ||
data.c | ||
data.h | ||
Makefile | ||
stats.c | ||
stats.h | ||
utils.c | ||
utils.h | ||
vbdev_ocf_rpc.c | ||
vbdev_ocf.c | ||
vbdev_ocf.h | ||
volume.c | ||
volume.h |