bdev/malloc: num_blocks parameter should be uint64_t

Change-Id: Ib88b797da168290ac07564cae46e544cb037f575
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/406672
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-05 15:35:15 -07:00 committed by Jim Harris
parent 415933c879
commit 72509206dd

View File

@ -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},
};