{
  "slug": "btrfs-filesystem-du",
  "term": "Btrfs filesystem du",
  "aliases": [
    "btrfs filesystem du"
  ],
  "definition": "A Btrfs command that uses FIEMAP to report extent usage and sharing for selected files and directory trees.",
  "note": "Each argument has its own accounting set, with overlapping shared ranges deduplicated within that set. A shared range can also be referenced outside it, so set-shared bytes do not establish deletion savings. [filesystem-manual]\n\nIn v6.16, UNKNOWN, DELALLOC and DATA_INLINE extents are skipped. Some inaccessible children generate warnings while traversal continues, so zero exit status alone does not establish coverage. [du-code]",
  "status": "shipping",
  "advantages": [],
  "limitations": [
    "A changing filesystem does not provide one atomic observation across the whole walk."
  ],
  "related": [
    "fiemap",
    "reflink",
    "file-extent",
    "filesystem-defragmentation",
    "transparent-compression"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-16",
  "citations": [
    {
      "id": "filesystem-manual",
      "title": "Btrfs-progs v6.16: filesystem du, per-argument sets and traversal scope",
      "url": "https://raw.githubusercontent.com/kdave/btrfs-progs/v6.16/Documentation/btrfs-filesystem.rst",
      "accessed": "2026-10-16"
    },
    {
      "id": "du-code",
      "title": "Btrfs-progs v6.16: filesystem-du.c, extent exclusions, set accounting and traversal warnings",
      "url": "https://raw.githubusercontent.com/kdave/btrfs-progs/v6.16/cmds/filesystem-du.c",
      "accessed": "2026-10-16"
    },
    {
      "id": "fiemap-interface",
      "title": "Linux FIEMAP documentation: request flags and mappings changing between calls",
      "url": "https://www.kernel.org/doc/html/latest/filesystems/fiemap.html",
      "accessed": "2026-10-16"
    },
    {
      "id": "hesela-clones",
      "title": "Hesela: file-clone costs and shared-space accounting",
      "url": "https://hesela.com/analyses/file-clones-deferred-copy-cost/#accounting",
      "accessed": "2026-10-16"
    }
  ],
  "provenance": [
    "Behavior is scoped to btrfs-progs v6.16 source, not a claim about every release.",
    "Source review only; no Btrfs filesystem or compression experiment is reported."
  ]
}
