REQUIRES_DIR_FSYNC
Support fsync( ) for directory updates Port
Some versions of Unix or implementations of disk I/O do not support immediate updates of directories when the data on them changes. The ReiserFS and Ext2fs filesystems are two such implementations. Linux is one such operating system. For these, this REQUIRES_DIR_FSYNC compile-time macro is set to true, which causes sendmail to fsync(2) the directory every time it is updated.
In the event you need to port sendmail to a new operating system or to a new filesystem, you might need to set this compile-time macro to true. The way you set it to true looks like this:
APPENDDEF(`confENVDEF', `-DREQUIRES_DIR_FSYNC')
New ports should be reported to sendmail@sendmail.org so that they can be folded into future releases.
Note that beginning with V8.13, sendmail allows the
directory fsync(2) to be turned
off at runtime (even if turned on using this macro).
See the RequiresDirFsync option in RequiresDirFsync on page 1082.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access