Storage glossary · JSON corpus · llms.txt · hesela.com

o-dsync · shipping · also synchronized I/O data integrity completion

O_DSYNC

O_DSYNC is an open-file status flag requiring write operations to complete with synchronized I/O data integrity, covering data and the metadata needed to retrieve it.

Related Observatory article: O_DSYNC on hesela.com

A file-length extension is retrieval-critical; a timestamp-only update is not. Linux compares O_DSYNC write completion to a write followed by fdatasync, not to a metadata-free write. [1] Handle a short write using its returned byte count; the flag does not promise that one call transfers the entire requested application record. [2] Like fdatasync, it is not a replacement for the containing directory's synchronization when name persistence matters. [3]

Relations

related
o-sync, fdatasync, fsync, directory-fsync, direct-io

Advantages

Limitations

Citations

  1. Linux man-pages 6.19: open(2), O_SYNC and O_DSYNC (accessed 2026-10-15)
  2. POSIX.1-2024: write(), synchronized I/O and partial writes (accessed 2026-10-15)
  3. Linux man-pages 6.19: fsync(2), metadata and directory synchronization (accessed 2026-10-15)
  4. Hesela: Why retrying a failed fsync does not prove durability (accessed 2026-10-15)

JSON: /data/terms/o-dsync.json