Module: GLib::FileSetContentsFlags
- Defined in:
- (unknown)
Constant Summary collapse
- NONE =
No guarantees about file consistency or durability.
The most dangerous setting, which is slightly faster than other settings. 0 or :none
- CONSISTENT =
Guarantee file consistency: after a crash,
either the old version of the file or the new version of the file will be
available, but not a mixture. On Unix systems this equates to anfsync()
on the file and use of an atomicrename()of the new version of the file
over the old. 1 or :consistent
- DURABLE =
Guarantee file durability: after a crash, the
new version of the file will be available. On Unix systems this equates to
anfsync()on the file (if %G_FILE_SET_CONTENTS_CONSISTENT is unset), or
the effects of %G_FILE_SET_CONTENTS_CONSISTENT plus anfsync()on the
directory containing the file after callingrename(). 2 or :durable
- ONLY_EXISTING =
Only apply consistency and durability
guarantees if the file already exists. This may speed up file operations
if the file doesn’t currently exist, but may result in a corrupted version
of the new file if the system crashes while writing it. 4 or :only_existing