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 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.

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.