kill_orphans(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

Okay bestie, meet kill_orphans(9) from the Kernel API Manual β€” the function whose whole job is to remove all orphan inodes from the index. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int kill_orphans (struct ubifs_info *c );

That’s the signature, no cap. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • c β€” the UBIFS file-system description object, aka the thing you pass in. 🫢

πŸ’– DESCRIPTION πŸ’–

So here’s the tea: if recovery is required, then the orphan inodes recorded during the previous session β€” the one that ended with an unclean unmount 😭 β€” must be deleted from the index.

This is done by updating the TNC, but since the index is not updated until the next commit, the LEBs where the orphan information is recorded are not erased until the next commit. Periodt. πŸ’€


🌈 SEE ALSO 🌈

Kernel file ./fs/ubifs/orphan.c β€” plus the whole friend group:


And that’s the page, bestie: source/version ./fs/ubifs, dated October 2026, page kill_orphans(9). Slay, bye! πŸ’œπŸŽ€

πŸ“¦ where this page comes from