Bug 637544 - Skip fsync() on btrfs
authorRyan Lortie <desrt@desrt.ca>
Sat, 18 Dec 2010 23:52:32 +0000 (18:52 -0500)
committerRyan Lortie <desrt@desrt.ca>
Tue, 21 Dec 2010 01:50:19 +0000 (20:50 -0500)
commit99fe4b1da7560e1df2d9352ddbd845a5d9a62429
treef5def6741223433e9ca7389b17ce7825e35e5625
parentdce0c1c56388033b37a25f4d065383655ae8d9c9
Bug 637544 - Skip fsync() on btrfs

For g_file_set_contents() we fsync() before renaming the file over the
original in order to ensure that we don't end up with an invalid file.
btrfs provides this guarantee for us without the fsync() so skip it
there.
glib/gfileutils.c