Mercurial > dovecot > core-2.2
view src/lib/fsync-mode.h @ 23007:36e01285b5b8
lib: buffer - Improve header comment for buffer_insert() and buffer_delete().
author | Stephan Bosch <stephan.bosch@dovecot.fi> |
---|---|
date | Mon, 18 Mar 2019 00:52:37 +0100 |
parents | 7f19062f58fd |
children |
line wrap: on
line source
#ifndef FSYNC_MODE_H #define FSYNC_MODE_H enum fsync_mode { /* fsync when it's necessary for data safety. */ FSYNC_MODE_OPTIMIZED = 0, /* never fsync (in case of a crash can lose data) */ FSYNC_MODE_NEVER, /* fsync after all writes. this is necessary with NFS to avoid write failures being delayed until file is close(). */ FSYNC_MODE_ALWAYS }; #endif