From 0fbde3af9629d85013ac565f016b672e90a8994a Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Fri, 13 Oct 2017 16:26:39 -0700 Subject: [PATCH] bdev/lvol: fix total_blocks and free_blocks names The get_lvol_stores RPC had typos in the free_blocks and total_blocks fields (they were named "free_num_blocks" and "total_num_blocks", which didn't match the names of the actual variables). Change-Id: Ib66b04ec2f0c272048a826bfa59338db1d028e34 Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/382522 Tested-by: SPDK Automated Test System Reviewed-by: Jim Harris --- lib/bdev/lvol/vbdev_lvol_rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bdev/lvol/vbdev_lvol_rpc.c b/lib/bdev/lvol/vbdev_lvol_rpc.c index d8210b39e3..a7ee655397 100644 --- a/lib/bdev/lvol/vbdev_lvol_rpc.c +++ b/lib/bdev/lvol/vbdev_lvol_rpc.c @@ -424,10 +424,10 @@ spdk_rpc_get_lvol_stores(struct spdk_jsonrpc_request *request, spdk_json_write_name(w, "base_bdev"); spdk_json_write_string(w, spdk_bdev_get_name(lvs_bdev->bdev)); - spdk_json_write_name(w, "total_num_blocks"); + spdk_json_write_name(w, "total_blocks"); spdk_json_write_uint64(w, lvs_bdev->lvs->total_blocks); - spdk_json_write_name(w, "free_num_blocks"); + spdk_json_write_name(w, "free_blocks"); spdk_json_write_uint64(w, free_blocks); spdk_json_write_name(w, "block_size");