[PATCH 4/4] Remove broken posix_fallocate, posix_falllocate64 fallback code [BZ#15661]
Rich Felker
dalias@libc.org
Wed May 6 23:31:00 GMT 2015
On Wed, May 06, 2015 at 03:48:38PM -0700, Paul Eggert wrote:
> Florian Weimer wrote:
> >Maybe we could remove the write loop and perform only an ftruncate call
> >which (hopefully) increases the file size. This would take care of the
> >O_APPEND issue and remove most of the races.
>
> I like this idea.
If I'm not mistaken ftruncate could still reduce the file size if it
races with another operation that would extend the file. This is also
a data loss bug.
Rich
More information about the Libc-alpha
mailing list