zonefs · shipping · also Zone filesystem

zonefs

zonefs is a Linux filesystem that exposes usable zones of a zoned block device through a static file interface while retaining sequential-write constraints.

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. [1]

File 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. [2] [3]

A 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. [1] [2]

Relations

related
Zoned block device (ZBD), Zoned namespace, Zone capacity, Zone Finish, ZenFS, Z-LFS

Advantages

  • Lets applications use file operations to access zones instead of managing every operation through raw block-device ioctls. [1]

Limitations

  • Zone-file size does not establish validated record length, transaction commit or persistence before a later flush. [2, 3]
  • 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. [1, 5]

Citations

  1. Linux v6.12 Documentation/filesystems/zonefs.rst: namespace, sequential files, format options and I/O error handling. (accessed 2026-11-29)
  2. Linux v6.12 fs/zonefs/file.c: zonefs_file_truncate, zonefs_file_fsync and sequential direct writes. (accessed 2026-11-29)
  3. Linux v6.12 fs/zonefs/super.c: zonefs_get_file_inode and zonefs_check_zone_condition. (accessed 2026-11-29)
  4. Zoned Storage: Write Ordering Control, scheduler locking through 6.9 and block-layer plugging from 6.10. (accessed 2026-11-29)

Further reading

  1. Hesela: ZNS resource limits and the zonefs file interface. (accessed 2026-11-29)
Sources & caveats
  • 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.

JSON: /data/terms/zonefs.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. zonefs. Hesela. 2026-11-30. https://hesela.dev/terms/zonefs/