[Pkg-libvirt-commits] [SCM] Libvirt debian packaging branch, experimental, updated. debian/0.4.6-6-16-gbaff048

Guido Guenther agx at sigxcpu.org
Fri Dec 5 09:40:57 UTC 2008


The following commit has been merged in the experimental branch:
commit 5cbc832ebf7f75ae7147b3746678d144470f82c4
Author: Guido Günther <agx at sigxcpu.org>
Date:   Fri Dec 5 09:49:39 2008 +0100

    open qemu monitor O_APPEND instead of O_TRUNC

diff --git a/debian/patches/0004-Open-qemu-monitor-log-O_APPEND-instead-of-O_TRUNC.patch b/debian/patches/0004-Open-qemu-monitor-log-O_APPEND-instead-of-O_TRUNC.patch
new file mode 100644
index 0000000..2ed68c0
--- /dev/null
+++ b/debian/patches/0004-Open-qemu-monitor-log-O_APPEND-instead-of-O_TRUNC.patch
@@ -0,0 +1,27 @@
+From 980884e56d54487dd57383d8802b1f5fe2b9b571 Mon Sep 17 00:00:00 2001
+From: Harald Staub <harald.staub at switch.ch>
+Date: Tue, 2 Dec 2008 13:14:33 +0100
+Subject: [PATCH] Open qemu monitor log O_APPEND instead of O_TRUNC
+
+makes logrotate work (O_APPEND) and keeps old log information (!O_TRUNC)
+(#507553)
+---
+ src/qemu_driver.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/qemu_driver.c b/src/qemu_driver.c
+index e666efc..a5fade4 100644
+--- a/src/qemu_driver.c
++++ b/src/qemu_driver.c
+@@ -840,7 +840,7 @@ static int qemudStartVMDaemon(virConnectPtr conn,
+         return -1;
+     }
+ 
+-    if ((vm->logfile = open(logfile, O_CREAT | O_TRUNC | O_WRONLY,
++    if ((vm->logfile = open(logfile, O_CREAT | O_APPEND | O_WRONLY,
+                             S_IRUSR | S_IWUSR)) < 0) {
+         qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
+                          _("failed to create logfile %s: %s"),
+-- 
+1.6.0.3
+
diff --git a/debian/patches/series b/debian/patches/series
index 2b2a71c..c82d252 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,4 @@
 0001-remove-RHism.diff.patch
 0002-qemu-disable-network.diff.patch
 0003-allow-libvirt-group-to-access-the-socket.patch
-0004-xen-prefer-xenstoraged-driver-for-listDomains.patch
+0004-Open-qemu-monitor-log-O_APPEND-instead-of-O_TRUNC.patch

-- 
Libvirt debian packaging



More information about the Pkg-libvirt-commits mailing list