Hi,

 Currently virsh version is not work.
Currently just show the libvirt version only.

This is caused by mis-matching of xen(xen_unified.c) and Xen(libvirt.c) .

I do not know the policy. So I attached 2 Pattern.

Thanks
Atsushi SAKAI


=================Pattern1================
--- libvirt.orig/src/xen_unified.c      2007-04-13 09:43:57.000000000 +0900
+++ libvirt.Xen/src/xen_unified.c       2007-04-13 20:02:46.000000000 +0900
@@ -89,8 +89,8 @@ xenUnifiedOpen (virConnectPtr conn, cons
 
     /* If name == NULL, name == "", or begins with "xen", then it's for us. */
     if (!name || name[0] == '\0')
-        name = "xen";
-    if (strncasecmp (name, "xen", 3) != 0)
+        name = "Xen";
+    if (strncasecmp (name, "Xen", 3) != 0)
         return VIR_DRV_OPEN_DECLINED;
 
     /* Allocate per-connection private data. */
@@ -719,7 +719,7 @@ xenUnifiedDomainSetAutostart (virDomainP
 /* The interface which we export upwards to libvirt.c. */
 static virDriver xenUnifiedDriver = {
     .no = VIR_DRV_XEN_UNIFIED,
-    .name = "xen",
+    .name = "Xen",
     .ver = VERSION,
     .open                      = xenUnifiedOpen,
     .close                     = xenUnifiedClose,



=================Pattern2================

--- libvirt.orig/src/libvirt.c  2007-04-12 23:18:39.000000000 +0900
+++ libvirt.Xen/src/libvirt.c   2007-04-13 20:09:02.000000000 +0900
@@ -246,7 +246,7 @@ virGetVersion(unsigned long *libVer, con
 
     if (typeVer != NULL) {
         if (type == NULL)
-           type = "Xen";
+           type = "xen";
        for (i = 0;i < virDriverTabCount;i++) {
            if ((virDriverTab[i] != NULL) &&
                (!strcmp(virDriverTab[i]->name, type))) {


--
Libvir-list mailing list
[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to