[libvirt] [PATCH] storage: show compile options in virsh --version=long

Eric Blake eblake at redhat.com
Thu Dec 12 03:10:10 UTC 2013


Adding output to 'virsh --version=long' makes it easier to
tell if a distro built with particular libraries (it doesn't
tell you what a remote libvirtd is built with, but is still
better than nothing).

* tools/virsh.c (vshShowVersion): Add gluster witness.

Signed-off-by: Eric Blake <eblake at redhat.com>
---
 tools/virsh.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/virsh.c b/tools/virsh.c
index 5559d71..9d07d3e 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -3069,6 +3069,9 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
 #ifdef WITH_STORAGE_SHEEPDOG
     vshPrint(ctl, " Sheepdog");
 #endif
+#ifdef WITH_STORAGE_GLUSTER
+    vshPrint(ctl, " Gluster");
+#endif
     vshPrint(ctl, "\n");

     vshPrint(ctl, "%s", _(" Miscellaneous:"));
-- 
1.8.4.2




More information about the libvir-list mailing list