lvol: convert size to clusters in spdk_lvol_resize

This fixes the units when calling spdk_blob_resize(), which wants
clusters, from spdk_lvol_resize(), which takes sz in bytes.

Change-Id: Ie6863b7569a43cfe181645e2776ea17b28ad5677
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/407007
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Maciej Szwed <maciej.szwed@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Daniel Verkamp 2018-04-09 13:39:08 -07:00
parent e433001a47
commit 5a79fdc6ef

View File

@ -1269,7 +1269,7 @@ spdk_lvol_resize(struct spdk_lvol *lvol, uint64_t sz,
req->cb_arg = cb_arg;
req->lvol = lvol;
spdk_blob_resize(blob, sz, _spdk_lvol_blob_resize_cb, req);
spdk_blob_resize(blob, new_clusters, _spdk_lvol_blob_resize_cb, req);
}
static void