g_file_set_contents(): use posix_fallocate()
authorRyan Lortie <desrt@desrt.ca>
Mon, 3 Jun 2013 19:43:01 +0000 (15:43 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 3 Jun 2013 20:12:04 +0000 (16:12 -0400)
commitd3be43fcc5165b7680c9073438ad60a3652c1703
tree63cda821ccae693103b9f8c42ce2b0c91d6367a0
parentb9350597384502e51e800d9bcfea32d719b7b41b
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