[libvirt PATCH 9/9] virsh: add --disk informations to guestinfo command

marcandre.lureau at redhat.com marcandre.lureau at redhat.com
Fri Nov 20 18:09:48 UTC 2020


From: Marc-André Lureau <marcandre.lureau at redhat.com>

Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
 tools/virsh-domain.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index c999458d72..070b8d21fd 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -14219,6 +14219,10 @@ static const vshCmdOptDef opts_guestinfo[] = {
      .type = VSH_OT_BOOL,
      .help = N_("report filesystem information"),
     },
+    {.name = "disks",
+     .type = VSH_OT_BOOL,
+     .help = N_("report disks information"),
+    },
     {.name = NULL}
 };
 
@@ -14242,6 +14246,8 @@ cmdGuestInfo(vshControl *ctl, const vshCmd *cmd)
         types |= VIR_DOMAIN_GUEST_INFO_HOSTNAME;
     if (vshCommandOptBool(cmd, "filesystem"))
         types |= VIR_DOMAIN_GUEST_INFO_FILESYSTEM;
+    if (vshCommandOptBool(cmd, "disks"))
+        types |= VIR_DOMAIN_GUEST_INFO_DISKS;
 
     if (!(dom = virshCommandOptDomain(ctl, cmd, NULL)))
         return false;
-- 
2.29.0




More information about the libvir-list mailing list