Commit 0fbde3af authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

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: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/382522


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 3772d46c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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");