HomeClusterLabs Projects
Diffusion LibQB 1c6229c171b7

unix.c: use posix_fallocate() (#409)

Description

unix.c: use posix_fallocate() (#409)

Using of posix_fallocate() guarantees that, if it succeed, the
attempting to write to allocated space range does not fail because of
lack of storage space. This prevents SIGBUS when trying to write to
mmaped file and no space left.

Co-Authored-by: Ivan Zakharyaschev <imz@altlinux.org>
Reported-by: Mikhail Kulagin <m.kulagin at postgrespro dot ru>

Co-authored-by: Ivan Zakharyaschev <imz@altlinux.org>

Details

Provenance
wladmis <vseleznv@altlinux.org>Authored on Jul 29 2020, 2:37 AM
GitHub <noreply@github.com>Committed on Jul 29 2020, 2:37 AM
Parents
rQcaec56b2955a: [doxy] fix build when more aggressive -W options are used (#410)
Branches
Unknown
Tags
Unknown

Event Timeline