mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-05 11:19:29 +00:00
virsh: fix domfsinfo output in quiet mode
https://bugzilla.redhat.com/show_bug.cgi?id=1250287 When run domfsinfo in quiet mode, we cannot get any useful information (just get \n), this is because we didn't use vshPrint to print useful information. Signed-off-by: Luyao Huang <lhuang@redhat.com> (cherry picked from commit ee6160b549568133d904aa27a553d66f0b0c01d3)
This commit is contained in:
parent
0712608387
commit
93e5f04e19
@ -12848,10 +12848,10 @@ cmdDomFSInfo(vshControl *ctl, const vshCmd *cmd)
|
|||||||
_("Mountpoint"), _("Name"), _("Type"), _("Target"));
|
_("Mountpoint"), _("Name"), _("Type"), _("Target"));
|
||||||
vshPrintExtra(ctl, "-------------------------------------------------------------------\n");
|
vshPrintExtra(ctl, "-------------------------------------------------------------------\n");
|
||||||
for (i = 0; i < ret; i++) {
|
for (i = 0; i < ret; i++) {
|
||||||
vshPrintExtra(ctl, "%-36s %-8s %-8s ",
|
vshPrint(ctl, "%-36s %-8s %-8s ",
|
||||||
info[i]->mountpoint, info[i]->name, info[i]->fstype);
|
info[i]->mountpoint, info[i]->name, info[i]->fstype);
|
||||||
for (j = 0; j < info[i]->ndevAlias; j++) {
|
for (j = 0; j < info[i]->ndevAlias; j++) {
|
||||||
vshPrintExtra(ctl, "%s", info[i]->devAlias[j]);
|
vshPrint(ctl, "%s", info[i]->devAlias[j]);
|
||||||
if (j != info[i]->ndevAlias - 1)
|
if (j != info[i]->ndevAlias - 1)
|
||||||
vshPrint(ctl, ",");
|
vshPrint(ctl, ",");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user