glib/gio
Alexander Larsson 6cff88ba18 Bug 575555 – Use fsync() when replacing files to avoid data loss on
2009-03-16  Alexander Larsson  <alexl@redhat.com>

	Bug 575555 – Use fsync() when replacing files to avoid data loss on crash

        * configure.in:
	Look for fsync().

        * glib/gfileutils.c:
        (write_to_temp_file):
	fsync temp file if destination file exists

2009-03-16  Alexander Larsson  <alexl@redhat.com>

	Bug 575555 – Use fsync() when replacing files to avoid data loss on crash

        * glocalfileoutputstream.c:
        (g_local_file_output_stream_close):
        (_g_local_file_output_stream_replace):
	fsync temp file before closing if replacing target file

	

svn path=/trunk/; revision=7991
2009-03-16 16:03:13 +00:00
..
fam Bug 556910 – [fam-helper.c:223]: Memory leak: sub 2008-10-24 04:04:42 +00:00
fen Remove a warning 2008-07-18 18:22:48 +00:00
inotify Bug 561807 – inotify_sub.c :: dup_dirname() fails to remove trailing '/' 2008-11-28 05:09:21 +00:00
tests Bug 540461 – g_memory_output_stream_get_data_size() doesn't behave as 2009-02-26 15:41:29 +00:00
win32 Bug 556415 - Crash on Windows 2000 in g_winhttp_vfs_init() 2008-11-12 17:52:39 +00:00
xdgmime Don't assume filenames are UTF-8. 2009-01-09 05:19:17 +00:00
.gitignore Bug 549771 – improved .gitignore for glib 2008-09-02 18:40:39 +00:00
abicheck.sh Fix copy-and-paste leftovers 2007-11-28 18:45:08 +00:00
ChangeLog Bug 575555 – Use fsync() when replacing files to avoid data loss on 2009-03-16 16:03:13 +00:00
gappinfo.c Add g_app_info_get_commandline. Requested by Hans Petter Jansson. 2008-11-28 23:16:45 +00:00
gappinfo.h Doc addition 2009-01-19 07:05:07 +00:00
gasynchelper.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gasynchelper.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gasyncresult.c 543504 – crash in Epiphany Web Browser: Opening local file 2008-07-20 00:34:58 +00:00
gasyncresult.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gbufferedinputstream.c Bug 568723 – g_buffered_input_stream_fill_async doesn't take count == -1 2009-01-22 19:18:26 +00:00
gbufferedinputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gbufferedoutputstream.c Bug 568394 – dropping the last reference to a stream filter closes the 2009-01-21 14:09:56 +00:00
gbufferedoutputstream.h fix parent_class member to be GFilterOutputStreamClass (not 2008-09-02 17:30:02 +00:00
gcancellable.c Bug 505361 - gunixinputstream.c assumes poll() available 2008-09-26 16:19:35 +00:00
gcancellable.h Bug 505361 - gunixinputstream.c assumes poll() available 2008-09-26 16:19:35 +00:00
gcontenttype.c Don't ever sniff desktop files when the filename is known. In other words, 2009-02-20 07:46:57 +00:00
gcontenttype.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gcontenttypeprivate.h gio/ docs/reference/gio Merged gio-standalone into glib. 2007-11-26 16:13:05 +00:00
gdatainputstream.c Fix docs 2009-03-01 17:12:58 +00:00
gdatainputstream.h Bug 568575 – _async functions for GDataInputStream 2009-01-28 16:39:39 +00:00
gdataoutputstream.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gdataoutputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gdesktopappinfo.c Bug 561172 – gnome-open fails on local URIs with anchors 2009-03-03 19:02:16 +00:00
gdesktopappinfo.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gdrive.c Fix "it's" vs "its" confusion throughout the source. Patch by Will 2009-02-23 04:30:06 +00:00
gdrive.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gdummyfile.c Bug 566747 - URIs opened with firefox %u load as local files 2009-02-04 08:01:42 +00:00
gdummyfile.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gemblem.c cast a "char **" to "const char **" to avoid a warning. 2009-01-05 16:57:55 +00:00
gemblem.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gemblemedicon.c Bug 540461 – GEmblemedIcon leak 2009-02-27 18:19:05 +00:00
gemblemedicon.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfile.c Bug 543183 – Clarify docs for g_file_has_prefix 2009-02-26 15:03:11 +00:00
gfile.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfileattribute-priv.h Move GFileAttributeValue to a private header, as its sort of ugly. 2007-12-14 15:56:56 +00:00
gfileattribute.c Bug 505042 – add file attribute for actually used file size in bytes 2009-02-16 14:22:43 +00:00
gfileattribute.h Bug 554745 - GFileAttributeInfoList should be boxed 2008-10-06 21:59:29 +00:00
gfileenumerator.c Bug 556422 – g_file_enumerator_next_file: unclear whether return value 2008-10-16 04:19:53 +00:00
gfileenumerator.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfileicon.c Bug 555740 - gicon serialization Based on patch from David Zeuthen 2008-10-21 11:51:48 +00:00
gfileicon.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfileinfo.c Fix "it's" vs "its" confusion throughout the source. Patch by Will 2009-02-23 04:30:06 +00:00
gfileinfo.h Fix "it's" vs "its" confusion throughout the source. Patch by Will 2009-02-23 04:30:06 +00:00
gfileinputstream.c Bug 562613 – Missing const modifier in string parameters 2009-03-03 15:50:13 +00:00
gfileinputstream.h Bug 562613 – Missing const modifier in string parameters 2009-03-03 15:50:13 +00:00
gfilemonitor.c Bug 546371 – Improve docs re g_file_monitor 2008-08-05 17:51:13 +00:00
gfilemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfilenamecompleter.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gfilenamecompleter.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfileoutputstream.c Bug 562613 – Missing const modifier in string parameters 2009-03-03 15:50:13 +00:00
gfileoutputstream.h Bug 562613 – Missing const modifier in string parameters 2009-03-03 15:50:13 +00:00
gfilterinputstream.c Correct the grammar in some property documentation. 2009-02-06 14:08:19 +00:00
gfilterinputstream.h Bug 568394 – dropping the last reference to a stream filter closes the 2009-01-21 14:09:56 +00:00
gfilteroutputstream.c Correct the grammar in some property documentation. 2009-02-06 14:08:19 +00:00
gfilteroutputstream.h Bug 568394 – dropping the last reference to a stream filter closes the 2009-01-21 14:09:56 +00:00
gicon.c free the tokens when done with them 2008-12-12 20:59:54 +00:00
gicon.h Bug 555740 - gicon serialization Based on patch from David Zeuthen 2008-10-21 11:51:48 +00:00
ginputstream.c Add docs 2008-08-13 05:35:10 +00:00
ginputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gio-marshal.list Change the API a bit so that unhandled methods get reported via the reply, 2008-01-09 14:43:41 +00:00
gio.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gio.symbols Add missing exports 2009-02-17 06:32:44 +00:00
gioenums.h Add a Since: tag 2009-03-02 05:07:21 +00:00
gioenumtypes.c.template Fix typo. 2007-12-01 23:49:34 +00:00
gioenumtypes.h.template introduce an ENUMPREFIX substitution. 2008-06-23 12:06:39 +00:00
gioerror.c Cope with EEXIST == ENOTEMPTY. Reported by Nicolas Joseph 2009-02-12 01:52:17 +00:00
gioerror.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
giomodule-priv.h Split out the extension point registration code to its own function. 2009-02-27 15:22:11 +00:00
giomodule.c Use a separate lock for extension point registration to avoid deadlock. 2009-03-02 03:50:09 +00:00
giomodule.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gioscheduler.c Fix "it's" vs "its" confusion throughout the source. Patch by Will 2009-02-23 04:30:06 +00:00
gioscheduler.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
giotypes.h Bug 561212 – GFileReadMoreCallback API doc refers to non-existant function 2008-11-21 10:30:43 +00:00
gloadableicon.c 543504 – crash in Epiphany Web Browser: Opening local file 2008-07-20 00:34:58 +00:00
gloadableicon.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocaldirectorymonitor.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
glocaldirectorymonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocalfile.c Bug 573843 – g_get_current_dir returns non-absolute path 2009-03-04 13:47:53 +00:00
glocalfile.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocalfileenumerator.c Add a G_IO_ERROR_TOO_MANY_OPEN_FILES error code. Requested by Olivier 2009-01-08 01:32:15 +00:00
glocalfileenumerator.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocalfileinfo.c Bug 562613 – Missing const modifier in string parameters 2009-03-03 15:50:13 +00:00
glocalfileinfo.h Bug 562613 – Missing const modifier in string parameters 2009-03-03 15:50:13 +00:00
glocalfileinputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocalfileinputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocalfilemonitor.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocalfilemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocalfileoutputstream.c Bug 575555 – Use fsync() when replacing files to avoid data loss on 2009-03-16 16:03:13 +00:00
glocalfileoutputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocalvfs.c Bug 561172 – gnome-open fails on local URIs with anchors 2009-03-03 19:02:16 +00:00
glocalvfs.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gmemoryinputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gmemoryinputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gmemoryoutputstream.c Bug 540461 – g_memory_output_stream_get_data_size() doesn't behave as 2009-02-26 15:41:29 +00:00
gmemoryoutputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gmount.c Add and document g_mount_is_shadowed plus calls to set/unset a mount as 2008-12-01 13:46:11 +00:00
gmount.h Add and document g_mount_is_shadowed plus calls to set/unset a mount as 2008-12-01 13:46:11 +00:00
gmountoperation.c Clarify docs 2009-02-27 21:02:19 +00:00
gmountoperation.h Add an "aborted" signal to abort a mount operation from the backend side. 2009-02-17 00:02:06 +00:00
gmountprivate.h Add is_supported() to GNativeVolumeMonitorClass so that we can avoid 2007-12-17 16:00:33 +00:00
gnativevolumemonitor.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gnativevolumemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
goutputstream.c Add docs 2008-08-13 05:35:10 +00:00
goutputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gpollfilemonitor.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gpollfilemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gseekable.c 543504 – crash in Epiphany Web Browser: Opening local file 2008-07-20 00:34:58 +00:00
gseekable.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gsimpleasyncresult.c Bug 571598 – GAsyncResult with NULL gobject 2009-02-16 09:33:39 +00:00
gsimpleasyncresult.h Add g_simple_async_result_is_valid(). Implementation by Dan Winship. 2009-01-05 06:57:16 +00:00
gthemedicon.c Bug 555740 - gicon serialization Based on patch from David Zeuthen 2008-10-21 11:51:48 +00:00
gthemedicon.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gunionvolumemonitor.c Bug 573970 – crash in gunixvolumemonitor:update_mounts when unmounting 2009-03-04 10:45:10 +00:00
gunionvolumemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gunixinputstream.c Add notes about being UNIX-specific 2008-12-31 07:47:19 +00:00
gunixinputstream.h Add "fd" and "close-fd" properties including getters and setters. Patch by 2008-12-08 05:41:43 +00:00
gunixmount.c (gio) 2008-09-08 12:44:07 +00:00
gunixmount.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gunixmounts.c Bug 570073 – Add support for reading filesystems on Interix 2009-02-25 16:37:35 +00:00
gunixmounts.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gunixoutputstream.c Add notes about being UNIX-specific 2008-12-31 07:47:19 +00:00
gunixoutputstream.h Add "fd" and "close-fd" properties including getters and setters. Patch by 2008-12-08 05:41:43 +00:00
gunixvolume.c (gio) 2008-09-08 12:44:07 +00:00
gunixvolume.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gunixvolumemonitor.c Bug 573970 – crash in gunixvolumemonitor:update_mounts when unmounting 2009-03-04 10:45:10 +00:00
gunixvolumemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gvfs.c Doc fixes 2008-07-21 02:19:56 +00:00
gvfs.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gvolume.c Add and document g_mount_is_shadowed plus calls to set/unset a mount as 2008-12-01 13:46:11 +00:00
gvolume.h Add an "aborted" signal to abort a mount operation from the backend side. 2009-02-17 00:02:06 +00:00
gvolumemonitor.c Fix "it's" vs "its" confusion throughout the source. Patch by Will 2009-02-23 04:30:06 +00:00
gvolumemonitor.h Deprecate g_volume_monitor_adopt_orphan_mount() (#555331). 2008-10-12 17:05:17 +00:00
gwin32appinfo.c Bug 545350 – GAppInfo deletion Bug 545351 – Reset associations for 2008-09-26 19:57:36 +00:00
gwin32appinfo.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gwin32mount.c Don't unref icon if NULL. 2008-09-04 20:41:50 +00:00
gwin32mount.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gwin32volumemonitor.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gwin32volumemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
Makefile.am Bug 555121 – Improved build-time handling of gio module-dir 2008-10-10 05:00:17 +00:00
makefile.msc add gemblembedicon 2008-08-01 14:15:02 +00:00
makegioalias.pl Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent code from 2008-05-05 15:12:13 +00:00
pltcheck.sh Make these work on x86_64 2008-12-13 23:56:05 +00:00