Bug 531030 - log file sized increased by "compression"
Summary: log file sized increased by "compression"
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Mark McLoughlin
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F12VirtTarget
TreeView+ depends on / blocked
 
Reported: 2009-10-26 15:20 UTC by Ulrich Drepper
Modified: 2009-10-30 16:37 UTC (History)
8 users (show)

Fixed In Version: libvirt-0.7.1-15.fc12
Clone Of:
Environment:
Last Closed: 2009-10-30 16:37:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ulrich Drepper 2009-10-26 15:20:55 UTC
Description of problem:
Many log files libvirt creates in /var/log/libvirt/qemu/ have no content.  Still libvirt (or its helpers) "compress" them.  The result are nonzero-sized files.  Just don't do this, test for empty files first.  This will also prevent triggering other bugs (less, for instance, currently has problems showing such files).

Version-Release number of selected component (if applicable):
libvirt-0.6.2-18

How reproducible:
always

Steps to Reproduce:
1.run domain without any action for a few days
2.
3.
  
Actual results:
compress empty files

Expected results:
leave empty files alone

Additional info:

Comment 1 Cole Robinson 2009-10-26 15:30:07 UTC
FYI this is already fixed upstream:

http://libvirt.org/git/?p=libvirt.git;a=commit;h=b03fe2d0aefb57a096a102bf23375f0a167ca189

Comment 2 Daniel Berrangé 2009-10-26 19:22:07 UTC
Switching to POST as per Cole's comment.

Comment 3 Mark McLoughlin 2009-10-29 17:27:41 UTC
Worth fixing for Fedora 12, but probably not worth the effort for Fedora 11.

Building now:

* Thu Oct 29 2009 Mark McLoughlin <markmc> - 0.7.1-15
- Avoid compressing small log files (#531030)

Will request tagging later

Comment 4 Mark McLoughlin 2009-10-30 15:46:01 UTC
tag request: https://fedorahosted.org/rel-eng/ticket/2927


Note You need to log in before you can comment on or make changes to this bug.