dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
dfx::Utils::AtomicFileWriter::Options Struct Reference

Options controlling publish permissions and durability. More...

#include <dfx-utilities/AtomicFileWriter.hpp>

Public Attributes

mode_t mode = 0644
 Permissions applied to the published file.
bool fsyncFile = true
 If true, sync the staged file contents before publishing.
bool fsyncDir = true
 If true, attempt to sync the parent directory after publishing. This is what makes the directory entry update durable against power loss.
Backend backend = Backend::TmpFile
 Backend that will be used to create the temporary file.

Detailed Description

Options controlling publish permissions and durability.

Member Data Documentation

◆ backend

Backend dfx::Utils::AtomicFileWriter::Options::backend = Backend::TmpFile

Backend that will be used to create the temporary file.

◆ fsyncDir

bool dfx::Utils::AtomicFileWriter::Options::fsyncDir = true

If true, attempt to sync the parent directory after publishing. This is what makes the directory entry update durable against power loss.

◆ fsyncFile

bool dfx::Utils::AtomicFileWriter::Options::fsyncFile = true

If true, sync the staged file contents before publishing.

◆ mode

mode_t dfx::Utils::AtomicFileWriter::Options::mode = 0644

Permissions applied to the published file.

Note
The final mode may still be affected by filesystem semantics; this class applies it explicitly during commit().

The documentation for this struct was generated from the following file: