Skip to content

Commit

Permalink
cli: Fix wrong value of inodeSize in volume status xml output
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
aravindavk authored and xhernandez committed Nov 12, 2021
1 parent 5571f18 commit 2637974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/cli-xml-output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2637974

Please sign in to comment.