{
  "slug": "zenfs",
  "term": "ZenFS",
  "aliases": [
    "ZenFS RocksDB plugin"
  ],
  "definition": "ZenFS is a RocksDB filesystem plugin that maps database files to extents on zoned storage through a raw-device or zonefs backend.",
  "note": "Mapping: Files map to extents that each stay within one zone; multiple files can share a zone. Lifetime hints guide placement, but do not guarantee that all its data becomes obsolete together. Linux zonefs supplies zone files, not ZenFS's database-file mappings. [zenfs-readme] [zenfs-zbd]\n\nReclamation: Releasing an extent reduces the zone's used-capacity counter. ResetUnusedIOZones resets an acquired, nonempty zone only when it has no used data. Deleting one file therefore need not reclaim a shared zone. [zenfs-io] [zenfs-zbd]\n\nOptional migration: At revision 65d2720, a writable mount starts GCWorker when the persisted GC flag is enabled. Under free-space pressure it attempts to migrate eligible SST extents; the bundled formatting utility defaults enable_gc to false. This path qualifies the README's blanket no-GC description. [zenfs-gc] [zenfs-util] [zenfs-readme]\n\nRecovery: The 2021 design journals file-to-extent mappings. Current active-extent recovery uses recorded offsets and zone state, with inline lengths for sparse extents. Reconstructing file mappings does not establish database transaction validity. [bjorling] [zenfs-io]",
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "related": [
    "rocksdb",
    "zns",
    "sstable",
    "zone-reset",
    "zonefs",
    "z-lfs"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "zenfs-readme",
      "title": "ZenFS README: RocksDB interface, backends and extent layout (65d2720).",
      "url": "https://github.com/westerndigitalcorporation/zenfs/blob/65d27200dac09c25eb9fc41d3502aba9f19a36d3/README.md",
      "accessed": "2026-11-29"
    },
    {
      "id": "zenfs-zbd",
      "title": "ZenFS zoned device code: ResetUnusedIOZones and lifetime-aware allocation (65d2720).",
      "url": "https://github.com/westerndigitalcorporation/zenfs/blob/65d27200dac09c25eb9fc41d3502aba9f19a36d3/fs/zbd_zenfs.cc",
      "accessed": "2026-11-29"
    },
    {
      "id": "zenfs-io",
      "title": "ZenFS file I/O code: ClearExtents and Recover (65d2720).",
      "url": "https://github.com/westerndigitalcorporation/zenfs/blob/65d27200dac09c25eb9fc41d3502aba9f19a36d3/fs/io_zenfs.cc",
      "accessed": "2026-11-29"
    },
    {
      "id": "zenfs-gc",
      "title": "ZenFS filesystem code: GCWorker, Mount and MigrateExtents (65d2720).",
      "url": "https://github.com/westerndigitalcorporation/zenfs/blob/65d27200dac09c25eb9fc41d3502aba9f19a36d3/fs/fs_zenfs.cc",
      "accessed": "2026-11-29"
    },
    {
      "id": "zenfs-util",
      "title": "ZenFS formatting utility: enable_gc default and MkFS argument (65d2720).",
      "url": "https://github.com/westerndigitalcorporation/zenfs/blob/65d27200dac09c25eb9fc41d3502aba9f19a36d3/util/zenfs.cc",
      "accessed": "2026-11-29"
    },
    {
      "id": "bjorling",
      "title": "Bjorling et al. ZNS: Avoiding the Block Interface Tax for Flash-based SSDs. USENIX ATC 2021, section 4.2.1.",
      "url": "https://www.usenix.org/system/files/atc21-bjorling.pdf",
      "accessed": "2026-11-29"
    },
    {
      "id": "hesela-zns",
      "title": "Hesela: ZenFS file deletion, zone sharing and optional migration.",
      "url": "https://hesela.com/analyses/zns-open-active-zone-limits/#zenfs-reclaim",
      "accessed": "2026-11-29"
    }
  ],
  "updated": "2026-11-30",
  "provenance": [
    "Implementation claims are pinned to ZenFS 65d27200dac09c25eb9fc41d3502aba9f19a36d3; this is source review, not a device or crash-recovery experiment.",
    "The 2021 paper describes a historical design. Its benchmark gains are not generalized to the later optional GC path. [bjorling]",
    "The enable_gc default describes the bundled formatting utility, not every deployment. Migration eligibility is limited to SST filenames in the inspected MigrateExtents path. [zenfs-util] [zenfs-gc]"
  ]
}
