logrotate(8) and copytruncate as default

Miloslav Trmač mitr at volny.cz
Thu Jun 27 16:57:17 UTC 2013


On Thu, Jun 27, 2013 at 6:49 PM, Jan Kaluza <jkaluza at redhat.com> wrote:
> I have the same opinion for now, but I will at least try to evaluate
> that locking idea. Maybe it can end up like more reliable
> copytruncate directive.

I've been looking at that option - AFAICS mandatory file locking, at
least currently, doesn't work reliably with O_APPEND
(rw_verify_area->locks_mandatory_area doesn't use the O_APPEND flag at
all).  But I haven't tested that, so I might have misread the kernel
code.
   Mirek


More information about the devel mailing list