{
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-12",
  "slug": "rwf-atomic",
  "term": "RWF_ATOMIC",
  "aliases": [],
  "definition": "RWF_ATOMIC is a Linux pwritev2 flag requesting torn-write protection for the data range of a supported direct-I/O write.",
  "note": "Request geometry must obey the reported size and vector limits, with power-of-two total length and natural offset alignment. Synchronized I/O semantics are separate from this protection; O_DIRECT alone does not supply O_SYNC guarantees.",
  "related": [
    "torn-write",
    "statx-write-atomic",
    "direct-io",
    "fsync"
  ],
  "citations": [
    {
      "id": "pwritev2",
      "title": "Linux man-pages, readv(2): pwritev2 and RWF_ATOMIC",
      "url": "https://man7.org/linux/man-pages/man2/readv.2.html",
      "accessed": "2026-10-12"
    },
    {
      "id": "open",
      "title": "Linux man-pages, open(2): O_DIRECT, O_DSYNC and O_SYNC",
      "url": "https://man7.org/linux/man-pages/man2/open.2.html",
      "accessed": "2026-10-12"
    },
    {
      "id": "hesela-atomic",
      "title": "Linux atomic writes: untorn does not mean durable",
      "url": "https://hesela.com/analyses/linux-atomic-writes-durability/",
      "accessed": "2026-10-12"
    }
  ]
}
