[fedora-virt-maint] rpms/libvirt/devel libvirt-logrotate-avoid-compressing-small-logs.patch, NONE, 1.1 libvirt.spec, 1.194, 1.195
Mark McLoughlin
markmc at fedoraproject.org
Thu Oct 29 17:26:05 UTC 2009
- Previous message (by thread): [fedora-virt-maint] rpms/libguestfs/F-12 .cvsignore, 1.53, 1.54 libguestfs.spec, 1.105, 1.106 sources, 1.53, 1.54
- Next message (by thread): [fedora-virt-maint] rpms/libvirt/F-12 libvirt-logrotate-avoid-compressing-small-logs.patch, NONE, 1.1 libvirt.spec, 1.194, 1.195
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: markmc
Update of /cvs/pkgs/rpms/libvirt/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25728
Modified Files:
libvirt.spec
Added Files:
libvirt-logrotate-avoid-compressing-small-logs.patch
Log Message:
* Thu Oct 29 2009 Mark McLoughlin <markmc at redhat.com> - 0.7.2-3
- Avoid compressing small log files (#531030)
libvirt-logrotate-avoid-compressing-small-logs.patch:
libvirtd.logrotate.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE libvirt-logrotate-avoid-compressing-small-logs.patch ---
>From d7cca87f6c5ad2316934af8ecb95829b95b662c6 Mon Sep 17 00:00:00 2001
From: Dan Kenigsberg <danken at redhat.com>
Date: Wed, 21 Oct 2009 13:56:04 +0200
Subject: [PATCH] Do not log rotate very small logs
Without this, after few weeks without use, each defined domain grows a
tail of empty gzipped logs, instead of keeping just the last log of
interest.
* daemon/libvirtd.logrotate.in: only rotate when the log is over 100 KBytes
(cherry picked from commit b03fe2d0aefb57a096a102bf23375f0a167ca189)
Fedora-patch: libvirt-logrotate-avoid-compressing-small-logs.patch
---
daemon/libvirtd.logrotate.in | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/daemon/libvirtd.logrotate.in b/daemon/libvirtd.logrotate.in
index 093651c..0c51fd3 100644
--- a/daemon/libvirtd.logrotate.in
+++ b/daemon/libvirtd.logrotate.in
@@ -5,4 +5,5 @@
compress
delaycompress
copytruncate
+ minsize 100k
}
--
1.6.2.5
Index: libvirt.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libvirt/devel/libvirt.spec,v
retrieving revision 1.194
retrieving revision 1.195
diff -u -p -r1.194 -r1.195
--- libvirt.spec 29 Oct 2009 10:57:55 -0000 1.194
+++ libvirt.spec 29 Oct 2009 17:26:05 -0000 1.195
@@ -151,7 +151,7 @@
Summary: Library providing a simple API virtualization
Name: libvirt
Version: 0.7.2
-Release: 2%{?dist}%{?extra_release}
+Release: 3%{?dist}%{?extra_release}
License: LGPLv2+
Group: Development/Libraries
Source: http://libvirt.org/sources/libvirt-%{version}.tar.gz
@@ -159,6 +159,9 @@ Source: http://libvirt.org/sources/libvi
# Fix qemu machine types handling
Patch01: libvirt-qemu-machine-type-fixes2.patch
+# Avoid compressing small log files (#531030)
+Patch02: libvirt-logrotate-avoid-compressing-small-logs.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
URL: http://libvirt.org/
BuildRequires: python-devel
@@ -372,6 +375,7 @@ of recent versions of Linux (and other O
%setup -q
%patch01 -p1
+%patch02 -p1
%build
%if ! %{with_xen}
@@ -784,6 +788,9 @@ fi
%endif
%changelog
+* Thu Oct 29 2009 Mark McLoughlin <markmc at redhat.com> - 0.7.2-3
+- Avoid compressing small log files (#531030)
+
* Thu Oct 29 2009 Mark McLoughlin <markmc at redhat.com> - 0.7.2-2
- Make libvirt-devel require libvirt-client, not libvirt
- Fix qemu machine types handling
- Previous message (by thread): [fedora-virt-maint] rpms/libguestfs/F-12 .cvsignore, 1.53, 1.54 libguestfs.spec, 1.105, 1.106 sources, 1.53, 1.54
- Next message (by thread): [fedora-virt-maint] rpms/libvirt/F-12 libvirt-logrotate-avoid-compressing-small-logs.patch, NONE, 1.1 libvirt.spec, 1.194, 1.195
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Fedora-virt-maint
mailing list