From 72509206dddf72aa7ea80695a77729839fa4aaba Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Thu, 5 Apr 2018 15:35:15 -0700 Subject: [PATCH] bdev/malloc: num_blocks parameter should be uint64_t Change-Id: Ib88b797da168290ac07564cae46e544cb037f575 Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/406672 Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- lib/bdev/malloc/bdev_malloc_rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bdev/malloc/bdev_malloc_rpc.c b/lib/bdev/malloc/bdev_malloc_rpc.c index 907ed08b2..c76a2e10a 100644 --- a/lib/bdev/malloc/bdev_malloc_rpc.c +++ b/lib/bdev/malloc/bdev_malloc_rpc.c @@ -41,7 +41,7 @@ struct rpc_construct_malloc { char *name; char *uuid; - uint32_t num_blocks; + uint64_t num_blocks; uint32_t block_size; }; @@ -55,7 +55,7 @@ free_rpc_construct_malloc(struct rpc_construct_malloc *r) static const struct spdk_json_object_decoder rpc_construct_malloc_decoders[] = { {"name", offsetof(struct rpc_construct_malloc, name), spdk_json_decode_string, true}, {"uuid", offsetof(struct rpc_construct_malloc, uuid), spdk_json_decode_string, true}, - {"num_blocks", offsetof(struct rpc_construct_malloc, num_blocks), spdk_json_decode_uint32}, + {"num_blocks", offsetof(struct rpc_construct_malloc, num_blocks), spdk_json_decode_uint64}, {"block_size", offsetof(struct rpc_construct_malloc, block_size), spdk_json_decode_uint32}, };