search for: posix_allocate

Displaying 1 result from an estimated 1 matches for "posix_allocate".

Did you mean: posix_fallocate
2013 Aug 05
1
Corrupted mboxes with v2.2.4, posix_fallocate and GFS2
...d this to the file extension operation performed in mbox_sync_handle_eof_updates, where the 'file_set_size' call is used. If available, file_set_size will use the posix_fallocate call. In GFS2 posix_fallocate increases the file size in 4 kB chunks (there seems to be no guarantee anyway that posix_allocate will extend a file by the exact size requested). After a successful posix_fallocate call, mbox_sync_handle_eof_updates currently proceeds in rewriting the mailbox starting from the originally intended 'file_size': 1306 if (file_set_size(sync_ctx->write_fd, 1307...