{
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-30",
  "slug": "zfs-embedded-data",
  "term": "ZFS embedded data",
  "aliases": [
    "embedded_data",
    "embedded block pointer"
  ],
  "definition": "ZFS embedded data stores a sufficiently small compressed block inside its block pointer instead of allocating a separate data block.",
  "note": "The payload ceiling is 112 bytes inside a 128-byte pointer (14 eight-byte words). This is compressed payload size, not logical file size or total metadata cost. Encryption uses the same space for parameters, so encrypted pointers cannot embed data. [layout]\n\nIn the zfs-2.3.0 normal compression path, embedding also requires a smaller-than-logical payload, no deduplication or encryption, level zero, an eligible object type and the enabled feature. All-zero data takes a separate hole path. A 112-byte payload fits the size limit; 113 bytes does not. Size alone is insufficient. [write]\n\nThe embedded_data feature becomes active immediately when enabled and is not read-only compatible. Import/recovery software must support it; this is not a recommendation to upgrade a pool. [feature]\n\nzfs send -e can emit WRITE_EMBEDDED records. The receiver needs embedded_data and, when active at the sender, lz4_compress. This stream cannot be received as an encrypted dataset. Compact transmission and target encryption are separate requirements. [send]",
  "related": [
    "zfs",
    "zfs-recordsize",
    "lossless-compression",
    "zfs-raw-send"
  ],
  "citations": [
    {
      "id": "feature",
      "title": "OpenZFS 2.3: zpool-features(7), embedded_data",
      "url": "https://openzfs.github.io/openzfs-docs/man/v2.3/7/zpool-features.7.html#embedded_data",
      "accessed": "2026-11-30"
    },
    {
      "id": "layout",
      "title": "OpenZFS zfs-2.3.0: spa.h, embedded block-pointer layout",
      "url": "https://github.com/openzfs/zfs/blob/zfs-2.3.0/include/sys/spa.h#L252-L343",
      "accessed": "2026-11-30"
    },
    {
      "id": "write",
      "title": "OpenZFS zfs-2.3.0: zio_write_compress, embedded-data and hole branches",
      "url": "https://github.com/openzfs/zfs/blob/zfs-2.3.0/module/zfs/zio.c#L1787-L1844",
      "accessed": "2026-11-30"
    },
    {
      "id": "send",
      "title": "OpenZFS 2.3: zfs-send(8), --embed receiver requirements",
      "url": "https://openzfs.github.io/openzfs-docs/man/v2.3/8/zfs-send.8.html#e",
      "accessed": "2026-11-30"
    }
  ],
  "provenance": [
    "Source review of OpenZFS 2.3 documentation and the zfs-2.3.0 normal write path; no pool, benchmark or send/receive experiment.",
    "The 112/113-byte comparison checks only payload capacity, not complete allocation eligibility."
  ]
}
