Package ch.bailu.gtk.glib
Schnittstelle FileSetContentsFlags
public interface FileSetContentsFlags
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intGuarantee 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.static final intGuarantee file durability: after a crash, the
new version of the file will be available.static final intNo guarantees about file consistency or durability.static final intOnly apply consistency and durability
guarantees if the file already exists.
-
Felddetails
-
NONE
static final int NONENo guarantees about file consistency or durability.
The most dangerous setting, which is slightly faster than other settings.- Siehe auch:
-
CONSISTENT
static final int CONSISTENTGuarantee 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 an `fsync()`
on the file and use of an atomic `rename()` of the new version of the file
over the old.- Siehe auch:
-
DURABLE
static final int DURABLEGuarantee file durability: after a crash, the
new version of the file will be available. On Unix systems this equates to
an `fsync()` on the file (if %G_FILE_SET_CONTENTS_CONSISTENT is unset), or
the effects of %G_FILE_SET_CONTENTS_CONSISTENT plus an `fsync()` on the
directory containing the file after calling `rename()`.- Siehe auch:
-
ONLY_EXISTING
static final int ONLY_EXISTINGOnly 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.- Siehe auch:
-