]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Tue Feb 20 19:08:58 IST 2007 Mark McLoughlin <markmc@redhat.com>
authorMark McLoughlin <markmc@redhat.com>
Tue, 20 Feb 2007 19:09:44 +0000 (19:09 +0000)
committerMark McLoughlin <markmc@redhat.com>
Tue, 20 Feb 2007 19:09:44 +0000 (19:09 +0000)
        * qemud/conf.c: use strerror(errno) in some error messages
        to make them a bit more useful

ChangeLog
qemud/conf.c

index 1f18845d9f6c2d395fd591180480a8258ab4c994..8a0d63cbdb1011f46e475f449cf446969cc069e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,13 +1,18 @@
-Fri Feb 20 19:07:12 IST 2007 Mark McLoughlin <markmc@redhat.com>
+Tue Feb 20 19:08:58 IST 2007 Mark McLoughlin <markmc@redhat.com>
+
+       * qemud/conf.c: use strerror(errno) in some error messages
+       to make them a bit more useful
+       
+Tue Feb 20 19:07:12 IST 2007 Mark McLoughlin <markmc@redhat.com>
 
        * qemud/conf.c: don't free active networks/vms if we
        fail to save the new config
        
-Fri Feb 20 18:25:42 IST 2007 Mark McLoughlin <markmc@redhat.com>
+Tue Feb 20 18:25:42 IST 2007 Mark McLoughlin <markmc@redhat.com>
 
        * virsh.c: cmdNetworkList() re-indent this.
        
-Fri Feb 20 17:49:22 IST 2007 Mark McLoughlin <markmc@redhat.com>
+Tue Feb 20 17:49:22 IST 2007 Mark McLoughlin <markmc@redhat.com>
 
        Fix a few leaks
 
@@ -18,28 +23,28 @@ Fri Feb 20 17:49:22 IST 2007 Mark McLoughlin <markmc@redhat.com>
 
        * qemud/iptables.c: fix a typo causing a leak
        
-Fri Feb 20 16:49:53 IST 2007 Mark McLoughlin <markmc@redhat.com>
+Tue Feb 20 16:49:53 IST 2007 Mark McLoughlin <markmc@redhat.com>
 
        * qemud/conf.c, qemud/qemud.c: only create config dirs
        when actually trying to write out config.
 
-Fri Feb 20 09:56:35 IST 2007 Mark McLoughlin <markmc@redhat.com>
+Tue Feb 20 09:56:35 IST 2007 Mark McLoughlin <markmc@redhat.com>
 
        * qemud/bridge.c: change the fix for the alignment warning
        a little.
        
-Fri Feb 20 09:03:05 IST 2007 Mark McLoughlin <markmc@redhat.com>
+Tue Feb 20 09:03:05 IST 2007 Mark McLoughlin <markmc@redhat.com>
 
        * qemud/qemud.c: clean up qemudInitialize() and qemudListen()
        so as to coalesce the two "system vs. user" code paths and
        fix up some problems noticed by dan.
        
-Fri Feb 19 16:59:18 IST 2007 Mark McLoughlin <markmc@redhat.com>
+Mon Feb 19 16:59:18 IST 2007 Mark McLoughlin <markmc@redhat.com>
 
        * qemud/qemud.c: don't shutdown guest and networks on
        SIGHUP
        
-Fri Feb 19 16:58:53 IST 2007 Mark McLoughlin <markmc@redhat.com>
+Mon Feb 19 16:58:53 IST 2007 Mark McLoughlin <markmc@redhat.com>
 
        * qemud/qemud.c: handle SIGQUIT.
        
index 310259afb42389d764dab0afc499692df73a2b18..001d178b1f0e33c2a559fa0e0ae7998c3d8eeda3 100644 (file)
@@ -1158,23 +1158,23 @@ static int qemudSaveConfig(struct qemud_server *server,
                    O_WRONLY | O_CREAT | O_TRUNC,
                    S_IRUSR | S_IWUSR )) < 0) {
         qemudReportError(server, VIR_ERR_INTERNAL_ERROR,
-                         "cannot create config file %s",
-                         vm->configFile);
+                         "cannot create config file %s: %s",
+                         vm->configFile, strerror(errno));
         goto cleanup;
     }
 
     towrite = strlen(xml);
     if (write(fd, xml, towrite) != towrite) {
         qemudReportError(server, VIR_ERR_INTERNAL_ERROR,
-                         "cannot write config file %s",
-                         vm->configFile);
+                         "cannot write config file %s: %s",
+                         vm->configFile, strerror(errno));
         goto cleanup;
     }
 
     if (close(fd) < 0) {
         qemudReportError(server, VIR_ERR_INTERNAL_ERROR,
-                         "cannot save config file %s",
-                         vm->configFile);
+                         "cannot save config file %s: %s",
+                         vm->configFile, strerror(errno));
         goto cleanup;
     }
 
@@ -1293,18 +1293,24 @@ static int qemudSaveNetworkConfig(struct qemud_server *server,
     if ((fd = open(network->configFile,
                    O_WRONLY | O_CREAT | O_TRUNC,
                    S_IRUSR | S_IWUSR )) < 0) {
-        qemudReportError(server, VIR_ERR_INTERNAL_ERROR, "cannot create config file %s", network->configFile);
+        qemudReportError(server, VIR_ERR_INTERNAL_ERROR,
+                         "cannot create config file %s: %s",
+                         network->configFile, strerror(errno));
         goto cleanup;
     }
 
     towrite = strlen(xml);
     if (write(fd, xml, towrite) != towrite) {
-        qemudReportError(server, VIR_ERR_INTERNAL_ERROR, "cannot write config file %s", network->configFile);
+        qemudReportError(server, VIR_ERR_INTERNAL_ERROR,
+                         "cannot write config file %s",
+                         network->configFile, strerror(errno));
         goto cleanup;
     }
 
     if (close(fd) < 0) {
-        qemudReportError(server, VIR_ERR_INTERNAL_ERROR, "cannot save config file %s", network->configFile);
+        qemudReportError(server, VIR_ERR_INTERNAL_ERROR,
+                         "cannot save config file %s",
+                         network->configFile, strerror(errno));
         goto cleanup;
     }