g_file_set_contents(): use posix_fallocate()
authorRyan Lortie <desrt@desrt.ca>
Mon, 3 Jun 2013 19:43:01 +0000 (15:43 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 9 Jun 2013 22:15:07 +0000 (18:15 -0400)
commit2d827a25af4bea0513d5fc0796b139337278734b
tree9b823e48e2f235ee1a1b95921f7302e36422faa4
parent5d1969c8cb7e4f380f4de3c848425f3aba4b7445
g_file_set_contents(): use posix_fallocate()

Extents-based filesystems like knowing in advance how much data will be
written to a file in order to prevent fragmentation.  If we have it, use
posix_fallocate() before writing data in g_file_set_contents().

https://bugzilla.gnome.org/show_bug.cgi?id=701560
configure.ac
glib/gfileutils.c