[Pkg-libvirt-commits] [SCM] Libvirt debian packaging branch, master, updated. debian/0.4.6-6-11-g44cb9b5
Guido Guenther
agx at sigxcpu.org
Thu Dec 4 17:37:53 UTC 2008
The following commit has been merged in the master branch:
commit c989d0c23866f201762f3658ccdde89489181519
Author: Guido Günther <agx at sigxcpu.org>
Date: Thu Dec 4 16:28:23 2008 +0100
open qemu monitor log O_APPEND instead of O_TRUNC
diff --git a/debian/patches/0009-Open-qemu-monitor-log-O_APPEND-instead-of-O_TRUNC.patch b/debian/patches/0009-Open-qemu-monitor-log-O_APPEND-instead-of-O_TRUNC.patch
new file mode 100644
index 0000000..ea650a4
--- /dev/null
+++ b/debian/patches/0009-Open-qemu-monitor-log-O_APPEND-instead-of-O_TRUNC.patch
@@ -0,0 +1,27 @@
+From 1aa12b4920dba52405fcdde02953e3ca15cec398 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 ffe2dd2..c9bf8d7 100644
+--- a/src/qemu_driver.c
++++ b/src/qemu_driver.c
+@@ -894,7 +894,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 084d4c9..b856f4c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@
0006-xen-prefer-xenstoraged-driver-for-listDomains.patch
0007-also-look-for-usr-bin-kvm.patch
0008-Increase-initial-qemu-monitor-read-timeout.patch
+0009-Open-qemu-monitor-log-O_APPEND-instead-of-O_TRUNC.patch
--
Libvirt debian packaging
More information about the Pkg-libvirt-commits
mailing list