Mercurial > dovecot > core-2.2
view src/lib/fsync-mode.h @ 22553:7db517071db5
lib: Add multiplex stream support
This allows having multiple channels of data in single stream.
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Tue, 22 Aug 2017 10:14:22 +0300 |
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