Ryan Lortie 9d0c17b501 g_file_set_contents(): don't fsync on ext3/4
ext3 and ext4 (for quite some time) with default mount options don't
need fsync() to ensure safety of replace-by-rename.  Stop doing that for
these filesystems.

Note: this patch also impacts ext2, which is probably not safe, but I
don't know of any way to check ext2. vs the others because they all have
the same magic numbers (short of opening /proc/mount).

This patch assumes that if BTRFS_SUPER_MAGIC is defined then so will be
EXT3_SUPER_MAGIC.

https://bugzilla.gnome.org/show_bug.cgi?id=701560
2013-06-04 09:52:10 -04:00
..
2011-06-12 16:17:30 -04:00
2013-05-23 22:14:59 -04:00
2013-03-17 22:48:53 -04:00
2011-08-29 14:49:32 -04:00
2012-11-09 09:09:39 +01:00
2011-12-13 23:01:51 -05:00
2012-11-15 14:19:06 -05:00
2012-11-15 14:19:06 -05:00
2013-01-18 13:03:28 -05:00
2011-05-28 23:27:24 -04:00
2013-01-15 14:08:02 -05:00
2012-10-07 20:12:02 -03:00
2013-03-01 19:11:11 -05:00
2012-11-15 14:19:06 -05:00
2013-01-19 14:30:05 -05:00
2010-09-13 16:52:51 +02:00
2011-06-08 23:44:39 -04:00
2011-07-22 15:47:24 +02:00
2012-03-20 22:29:50 -04:00
2013-04-09 14:02:54 +02:00
2012-11-15 14:19:06 -05:00
2013-01-29 09:46:04 -05:00
2013-01-29 09:46:04 -05:00
2013-05-31 17:24:14 -04:00
2012-12-18 13:13:15 -05:00
2010-09-03 20:38:30 -04:00
2013-03-05 17:27:53 +01:00
2012-02-26 23:58:41 -05:00
2013-04-04 13:15:00 -04:00
2013-02-25 23:08:43 -05:00
2013-01-13 22:59:40 -05:00
2010-12-03 14:41:06 -05:00
2013-04-22 16:15:16 -04:00
2012-11-15 14:19:06 -05:00