Bug 190468
Summary: | copytruncate not truncating | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mike Tiernan <mtiernan> | ||||
Component: | logrotate | Assignee: | Peter Vrabec <pvrabec> | ||||
Status: | CLOSED NOTABUG | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 5 | CC: | cstankaitis | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-05-03 14:55:54 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Mike Tiernan
2006-05-02 17:50:28 UTC
I think this problem is about how another process handle its log file. Log file has to be opened with O_APPEND flag otherwise the sparse file is created after truncation. And that seems like there was not any truncation done by logrotate. see: du --apparent-size --block-size=1 log_file du --block-size=1 log_file Created attachment 128537 [details]
test service
try to compile(with and without O_APPEND flag in open())
run logrotate on log_file while test service is running
*** Bug 183228 has been marked as a duplicate of this bug. *** |