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 <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/382522 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
3772d46c2e
commit
0fbde3af96
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user