{
  "slug": "zonefs",
  "term": "zonefs",
  "aliases": [
    "Zone filesystem"
  ],
  "definition": "zonefs is a Linux filesystem that exposes usable zones of a zoned block device through a static file interface while retaining sequential-write constraints.",
  "note": "The namespace is derived from device zone information, not application-created names. The first zone holds the superblock and is not exposed as a data file; conventional zones can optionally be aggregated. Sequential zone files require aligned direct-I/O append writes, while reads need not be sequential. This is not a transparent replacement for a general-purpose filesystem. [zonefs-doc]\n\nFile length is not zone capacity or validated application length. Linux v6.12 reports capacity through st_blocks in 512-byte units. Changing a sequential file's length to zero requests Reset; changing it to capacity requests Finish and prevents further appends after success until reset. A same-length request is a no-op. Other truncation lengths are rejected. Successful Finish sets file length to capacity without writing application data into the remaining space. A full-length file therefore does not prove that the application supplied that many bytes. [zonefs-file] [zonefs-super]\n\nA failed large write can still advance the device write pointer; delayed errors can require a later size correction. Applications must handle the configured error policy and reconcile validated records. Direct I/O does not remove persistence requirements: zonefs fsync issues a block-device flush. These are documented and code-inspected behaviors, not hardware measurements. [zonefs-doc] [zonefs-file]",
  "status": "shipping",
  "advantages": [
    {
      "text": "Lets applications use file operations to access zones instead of managing every operation through raw block-device ioctls.",
      "citationIds": [
        "zonefs-doc"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Zone-file size does not establish validated record length, transaction commit or persistence before a later flush.",
      "citationIds": [
        "zonefs-file",
        "zonefs-super"
      ]
    },
    {
      "text": "The Linux v6.12 zonefs document retains an older mq-deadline requirement. From Linux 6.10, block-layer zone write plugging makes that scheduler optional for write ordering, not universally optimal for performance.",
      "citationIds": [
        "zonefs-doc",
        "linux-ordering-docs"
      ]
    }
  ],
  "related": [
    "zoned-block-device",
    "zoned-namespace",
    "zone-capacity",
    "zone-finish",
    "zenfs",
    "z-lfs"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "zonefs-doc",
      "title": "Linux v6.12 Documentation/filesystems/zonefs.rst: namespace, sequential files, format options and I/O error handling.",
      "url": "https://raw.githubusercontent.com/torvalds/linux/v6.12/Documentation/filesystems/zonefs.rst",
      "accessed": "2026-11-29"
    },
    {
      "id": "zonefs-file",
      "title": "Linux v6.12 fs/zonefs/file.c: zonefs_file_truncate, zonefs_file_fsync and sequential direct writes.",
      "url": "https://raw.githubusercontent.com/torvalds/linux/v6.12/fs/zonefs/file.c",
      "accessed": "2026-11-29"
    },
    {
      "id": "zonefs-super",
      "title": "Linux v6.12 fs/zonefs/super.c: zonefs_get_file_inode and zonefs_check_zone_condition.",
      "url": "https://raw.githubusercontent.com/torvalds/linux/v6.12/fs/zonefs/super.c",
      "accessed": "2026-11-29"
    },
    {
      "id": "hesela-zns",
      "title": "Hesela: ZNS resource limits and the zonefs file interface.",
      "url": "https://hesela.com/analyses/zns-open-active-zone-limits/",
      "accessed": "2026-11-29"
    },
    {
      "id": "linux-ordering-docs",
      "title": "Zoned Storage: Write Ordering Control, scheduler locking through 6.9 and block-layer plugging from 6.10.",
      "url": "https://zonedstorage.io/docs/linux/sched",
      "accessed": "2026-11-29"
    }
  ],
  "updated": "2026-11-30",
  "provenance": [
    "Definition and interface constraints reviewed against Linux v6.12 documentation and implementation on 2026-11-29. Finish-to-capacity interpretation follows zonefs_file_truncate; no mounted-device experiment was performed."
  ]
}
