From 6a30dd6f8bf6924df24b7fa40e75829538292114 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Mon, 9 Apr 2018 16:16:21 -0700 Subject: [PATCH] blob: fix type in spdk_blob_resize() declaration The 'sz' parameter to spdk_blob_resize() did not match between the declaration and definition; it should be uint64_t, since it contains a number of clusters. Change-Id: I1cb386321cf85ac6c6220e1112b7223a967cd8cd Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/407018 Tested-by: SPDK Automated Test System Reviewed-by: Tomasz Zawadzki Reviewed-by: Maciej Szwed Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- include/spdk/blob.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/spdk/blob.h b/include/spdk/blob.h index 4a1b0aa862..eb394a5e91 100644 --- a/include/spdk/blob.h +++ b/include/spdk/blob.h @@ -422,7 +422,8 @@ void spdk_bs_open_blob(struct spdk_blob_store *bs, spdk_blob_id blobid, * \param cb_arg Argument passed to function cb_fn. * */ -void spdk_blob_resize(struct spdk_blob *blob, size_t sz, spdk_blob_op_complete cb_fn, void *cb_arg); +void spdk_blob_resize(struct spdk_blob *blob, uint64_t sz, spdk_blob_op_complete cb_fn, + void *cb_arg); /** * Set blob as read only.