From 2637974ace6114ffcb62b6dbd3507550da65b86b Mon Sep 17 00:00:00 2001 From: Aravinda Vishwanathapura Date: Sun, 7 Nov 2021 20:43:02 +0530 Subject: [PATCH] cli: Fix wrong value of inodeSize in volume status xml output Fs type was added to inodeSize xml output. Now it is fixed by adding the actual variable. Fixes: #2936 Change-Id: Iaa285cb2a7dbf77d7a2cf1e2636e4285d2257124 Signed-off-by: Aravinda Vishwanathapura --- cli/src/cli-xml-output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c index eef681f6a9e..35f815fc495 100644 --- a/cli/src/cli-xml-output.c +++ b/cli/src/cli-xml-output.c @@ -418,7 +418,7 @@ cli_xml_output_vol_status_detail(xmlTextWriterPtr writer, dict_t *dict, ret = dict_get_str(dict, key, &inode_size); if (!ret) { ret = xmlTextWriterWriteFormatElement(writer, (xmlChar *)"inodeSize", - "%s", fs_name); + "%s", inode_size); XML_RET_CHECK_AND_GOTO(ret, out); } snprintf(key, sizeof(key), "brick%d.total_inodes", brick_index);