[PATCH] virConnectNumOfDefinedDomains should set virterror if cannot connect to xend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As well as $SUBJECT this also adds a comment so that the apparent lack of error in another part of the code is clear.

Rich.

--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
Index: src/xend_internal.c
===================================================================
RCS file: /data/cvs/libvirt/src/xend_internal.c,v
retrieving revision 1.139
diff -u -r1.139 xend_internal.c
--- src/xend_internal.c	12 Sep 2007 15:41:51 -0000	1.139
+++ src/xend_internal.c	19 Sep 2007 18:10:00 -0000
@@ -232,6 +232,8 @@
         close(s);
         errno = serrno;
         s = -1;
+        virXendError(xend, VIR_ERR_INTERNAL_ERROR,
+                     "failed to connect to xend");
     }
 
     return s;
@@ -3420,6 +3422,9 @@
     struct sexpr *_for_i, *node;
     xenUnifiedPrivatePtr priv = (xenUnifiedPrivatePtr) conn->privateData;
 
+    /* xm_internal.c (the support for defined domains from /etc/xen
+     * config files used by old Xen) will handle this.
+     */
     if (priv->xendConfigVersion < 3)
         return(-1);
 

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]