render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
6ae9ed
From 73594ea04ef629c599eaddaeedbce3afded60e01 Mon Sep 17 00:00:00 2001
6ae9ed
Message-Id: <73594ea04ef629c599eaddaeedbce3afded60e01@dist-git>
6ae9ed
From: "Daniel P. Berrange" <berrange@redhat.com>
6ae9ed
Date: Fri, 8 Jul 2016 09:57:58 +0200
6ae9ed
Subject: [PATCH] virtlogd: increase max file size to 2 MB
6ae9ed
6ae9ed
https://bugzilla.redhat.com/show_bug.cgi?id=1351209
6ae9ed
6ae9ed
People debugging guest OS boot processes and reported that
6ae9ed
the default 128 KB size is too small to capture an entire
6ae9ed
boot up sequence. Increase the default size to 2 MB which
6ae9ed
should allow capturing a full boot up even with verbose
6ae9ed
debugging.
6ae9ed
6ae9ed
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
6ae9ed
(cherry picked from commit 8f390596beeba94b691687a4fe3697ebf08858c7)
6ae9ed
---
6ae9ed
 src/logging/log_daemon_config.c | 2 +-
6ae9ed
 src/logging/virtlogd.conf       | 4 ++--
6ae9ed
 2 files changed, 3 insertions(+), 3 deletions(-)
6ae9ed
6ae9ed
diff --git a/src/logging/log_daemon_config.c b/src/logging/log_daemon_config.c
6ae9ed
index b584970..7bf10c6 100644
6ae9ed
--- a/src/logging/log_daemon_config.c
6ae9ed
+++ b/src/logging/log_daemon_config.c
6ae9ed
@@ -128,7 +128,7 @@ virLogDaemonConfigNew(bool privileged ATTRIBUTE_UNUSED)
6ae9ed
         return NULL;
6ae9ed
 
6ae9ed
     data->max_clients = 1024;
6ae9ed
-    data->max_size = 128 * 1024;
6ae9ed
+    data->max_size = 1024 * 1024 * 2;
6ae9ed
     data->max_backups = 3;
6ae9ed
 
6ae9ed
     return data;
6ae9ed
diff --git a/src/logging/virtlogd.conf b/src/logging/virtlogd.conf
6ae9ed
index fbd92ff..7ef1ac3 100644
6ae9ed
--- a/src/logging/virtlogd.conf
6ae9ed
+++ b/src/logging/virtlogd.conf
6ae9ed
@@ -59,8 +59,8 @@
6ae9ed
 #max_clients = 1024
6ae9ed
 
6ae9ed
 
6ae9ed
-# Maximum file size before rolling over. Defaults to 128 KB
6ae9ed
-#max_size = 131072
6ae9ed
+# Maximum file size before rolling over. Defaults to 2 MB
6ae9ed
+#max_size = 2097152
6ae9ed
 
6ae9ed
 # Maximum number of backup files to keep. Defaults to 3,
6ae9ed
 # not including the primary active file
6ae9ed
-- 
6ae9ed
2.9.0
6ae9ed