[libvirt] [PATCH] fix diagnostic when execute openvz commands

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

 




--
Evgeniy Sokolov
Index: openvz_driver.c
===================================================================
RCS file: /data/cvs/libvirt/src/openvz_driver.c,v
retrieving revision 1.23
diff -u -p -r1.23 openvz_driver.c
--- openvz_driver.c	7 Jul 2008 11:48:40 -0000	1.23
+++ openvz_driver.c	8 Jul 2008 15:30:16 -0000
@@ -257,7 +257,7 @@ static int openvzDomainShutdown(virDomai
 
     ret = virExec(dom->conn, (char **)cmdExec, &pid, -1, &outfd, &errfd);
     if(ret == -1) {
-        error(dom->conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZLIST);
+        error(dom->conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZCTL);
         return -1;
     }
 
@@ -301,7 +301,7 @@ static int openvzDomainReboot(virDomainP
     }
     ret = virExec(dom->conn, (char **)cmdExec, &pid, -1, &outfd, &errfd);
     if(ret == -1) {
-        error(dom->conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZLIST);
+        error(dom->conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZCTL);
         return -1;
     }
 
@@ -360,7 +360,7 @@ openvzDomainDefineXML(virConnectPtr conn
     }
     ret = virExec(conn, (char **)cmdExec, &pid, -1, &outfd, &errfd);
     if(ret == -1) {
-        error(conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZLIST);
+        error(conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZCTL);
         goto bail_out2;
     }
 
@@ -428,7 +428,7 @@ openvzDomainCreateLinux(virConnectPtr co
     }
     ret = virExec(conn, (char **)cmdExec, &pid, -1, &outfd, &errfd);
     if(ret == -1) {
-        error(conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZLIST);
+        error(conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZCTL);
         return NULL;
     }
 
@@ -444,7 +444,7 @@ openvzDomainCreateLinux(virConnectPtr co
     }
     ret = virExec(conn, (char **)cmdExec, &pid, -1, &outfd, &errfd);
     if(ret == -1) {
-        error(conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZLIST);
+        error(conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZCTL);
         return NULL;
     }
 
@@ -498,7 +498,7 @@ openvzDomainCreate(virDomainPtr dom)
     }
     ret = virExec(dom->conn, (char **)cmdExec, &pid, -1, &outfd, &errfd);
     if(ret == -1) {
-        error(dom->conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZLIST);
+        error(dom->conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZCTL);
         return -1;
     }
 
@@ -541,7 +541,7 @@ openvzDomainUndefine(virDomainPtr dom)
     }
     ret = virExec(conn, (char **)cmdExec, &pid, -1, &outfd, &errfd);
     if(ret == -1) {
-        error(conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZLIST);
+        error(conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZCTL);
         return -1;
     }
 
--
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]