{
  "slug": "copy-on-abundant-write",
  "term": "Copy-on-abundant-write",
  "aliases": [],
  "definition": "Copy-on-abundant-write is a research cloning policy that buffers changes to a clone and unshares data only after enough changes accumulate to justify copying.",
  "note": "The policy comes from BetrFS 0.5, a write-optimized file system whose B-epsilon-tree was turned into a directed acyclic graph so that clones can share nodes. A clone is persisted by writing a message into the root, and later small changes stay as buffered messages instead of forcing an immediate copy. [fast2020]\n\nA shared node is copied only when it must become simple, with a reference count of 1, before messages are flushed into it. That happens when enough messages accumulate in its parent, the abundant-write case, or when background healing must split or merge the node, so structural maintenance can also require unsharing. Nodes are typically 2 to 4 MiB, which makes early copying costly. [fast2020]\n\nIt is not a generic Linux reflink option. The reflink interface only requires that writes to a shared region stay private to the written file, without fixing when or at what granularity data is copied, and disk filesystems generally require block-aligned ranges. [ficlone]",
  "status": "research",
  "advantages": [
    {
      "text": "In the paper's container-creation test, cloning was up to two orders of magnitude faster than a simple recursive copy.",
      "citationIds": [
        "fast2020"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Renames and clones change tree topology, so the design needs extra structures, GOTO messages and translation prefixes, to correct stale keys in shared data.",
      "citationIds": [
        "fast2020"
      ]
    }
  ],
  "related": [
    "copy-on-write",
    "reflink",
    "b-epsilon-tree",
    "fideduperange",
    "copy-on-close"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "fast2020",
      "title": "Zhan et al., How to Copy Files, FAST 2020, sections 1-4",
      "url": "https://files.usenix.org/s3fs-public/cdn/fast20-zhan.pdf",
      "accessed": "2026-10-22"
    },
    {
      "id": "hesela-clones",
      "title": "Hesela: Fast file clones and deferred copying costs",
      "url": "https://hesela.com/analyses/file-clones-deferred-copy-cost/",
      "accessed": "2026-10-15"
    },
    {
      "id": "ficlone",
      "title": "Linux man-pages: ioctl_ficlonerange(2), share data of one file with another",
      "url": "https://man7.org/linux/man-pages/man2/ioctl_ficlone.2.html",
      "accessed": "2026-10-22"
    }
  ],
  "updated": "2026-11-05",
  "provenance": [
    "fast2020 is the FAST 2020 paper How to Copy Files by Zhan et al. (University of North Carolina at Chapel Hill, Rutgers, Stony Brook and others), read in sections 1 to 4.",
    "ficlone is the Linux man-pages entry ioctl_ficlonerange(2), read in its description and errors.",
    "The reference-count condition, healing-triggered unsharing, 2 to 4 MiB nodes and the two-orders-of-magnitude result come from fast2020. The private-write rule and block alignment come from ficlone."
  ]
}
