ext4-orphan-inode · shipping · also orphan inode (ext4)

Ext4 orphan inode

An ext4 orphan inode is an inode tracked so recovery can finish deletion or remove excess allocations left by an interrupted truncation or extension.

Related Observatory article: Read on hesela.com

An unlinked file may remain alive while open; ext4 records recovery work so a crash does not leave its inode and blocks permanently allocated. Linked files can also need orphan tracking when truncation or extension spans journal transactions, so orphan does not mean only a file without directory entries. [1] In Linux v6.12, ext4_process_orphan uses the recovered link count: linked inodes are truncated to the recovered inode size, while zero-link inodes are released for deletion. [2] See the Hesela analysis for the relationship to journal replay. [4]

Relations

related
Inode, Unlink, Ext4 orphan file, Read-only mount, Ext4

Limitations

  • Linux v6.12 increments nr_truncates even after an ext4_truncate error if execution continues; its cleanup count alone does not certify successful repair. Read accompanying errors. [2]
  • Cleanup reclaims allocations; it is not undelete, secure sanitization, or an application durability guarantee. [2, 3]
  • In Linux v6.12, cleanup skips a read-only block device but may temporarily permit writes for a read-only filesystem mount on writable media; read-only mounting alone is not a no-write guarantee. [2]

Citations

  1. Linux ext4 documentation: Orphan file (v6.12) (accessed 2026-10-15)
  2. Linux v6.12: ext4 orphan inode handling (accessed 2026-10-15)
  3. Linux manual: fsync(2) (accessed 2026-10-15)
  4. Hesela: ext4 journal replay and orphan cleanup (accessed 2026-10-15)

JSON: /data/terms/ext4-orphan-inode.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Ext4 orphan inode. Hesela. 2026-10-24. https://hesela.dev/terms/ext4-orphan-inode/