* Thu Oct 29 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-15
- Avoid compressing small log files (#531030)
This commit is contained in:
parent
21a9f1ec41
commit
68c271bad8
31
libvirt-logrotate-avoid-compressing-small-logs.patch
Normal file
31
libvirt-logrotate-avoid-compressing-small-logs.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From 918724aa76982224437384d712c182c332fa5ef9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Dan Kenigsberg <danken@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
|
||||||
|
---
|
||||||
|
qemud/libvirtd.logrotate.in | 1 +
|
||||||
|
1 files changed, 1 insertions(+), 0 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/qemud/libvirtd.logrotate.in b/qemud/libvirtd.logrotate.in
|
||||||
|
index 093651c..0c51fd3 100644
|
||||||
|
--- a/qemud/libvirtd.logrotate.in
|
||||||
|
+++ b/qemud/libvirtd.logrotate.in
|
||||||
|
@@ -5,4 +5,5 @@
|
||||||
|
compress
|
||||||
|
delaycompress
|
||||||
|
copytruncate
|
||||||
|
+ minsize 100k
|
||||||
|
}
|
||||||
|
--
|
||||||
|
1.6.2.5
|
||||||
|
|
@ -151,7 +151,7 @@
|
|||||||
Summary: Library providing a simple API virtualization
|
Summary: Library providing a simple API virtualization
|
||||||
Name: libvirt
|
Name: libvirt
|
||||||
Version: 0.7.1
|
Version: 0.7.1
|
||||||
Release: 14%{?dist}%{?extra_release}
|
Release: 15%{?dist}%{?extra_release}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source: http://libvirt.org/sources/libvirt-%{version}.tar.gz
|
Source: http://libvirt.org/sources/libvirt-%{version}.tar.gz
|
||||||
@ -211,6 +211,9 @@ Patch22: libvirt-fix-crash-on-device-hotplug-parse-error.patch
|
|||||||
# Fix segfault where interface target device name is ommitted (#523418)
|
# Fix segfault where interface target device name is ommitted (#523418)
|
||||||
Patch23: libvirt-fix-crash-on-missing-iface-target-dev.patch
|
Patch23: libvirt-fix-crash-on-missing-iface-target-dev.patch
|
||||||
|
|
||||||
|
# Avoid compressing small log files (#531030)
|
||||||
|
Patch24: libvirt-logrotate-avoid-compressing-small-logs.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
URL: http://libvirt.org/
|
URL: http://libvirt.org/
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
@ -449,6 +452,7 @@ of recent versions of Linux (and other OSes).
|
|||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
%patch22 -p1
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
|
%patch24 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Needed for libvirt-logrotate-create-lxc-uml-dirs.patch
|
# Needed for libvirt-logrotate-create-lxc-uml-dirs.patch
|
||||||
@ -843,6 +847,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 29 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-15
|
||||||
|
- Avoid compressing small log files (#531030)
|
||||||
|
|
||||||
* Thu Oct 29 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-14
|
* Thu Oct 29 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-14
|
||||||
- Make libvirt-devel require libvirt-client, not libvirt
|
- Make libvirt-devel require libvirt-client, not libvirt
|
||||||
- Fix xen driver recounting (#531429)
|
- Fix xen driver recounting (#531429)
|
||||||
|
Loading…
Reference in New Issue
Block a user