nilfs_salvage_orphan_logs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Ύ nilfs_salvage_orphan_logs(9) β€” bestie edition πŸŽ€

okay so this one is a kernel API manual page (section 9, iykyk) for nilfs_salvage_orphan_logs, and honestly? it's giving "rescue mission at 3am" energy. let's get into it ✨


🌸 NAME 🌸

nilfs_salvage_orphan_logs β€” the function that rescues orphan logs, aka logs that got written after the latest checkpoint. bestie they're literally stranded out there 😭 we're going back for them πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int nilfs_salvage_orphan_logs(struct the_nilfs *nilfs, struct super_block *sb, struct nilfs_recovery_info *ri);

that's the whole signature, no cap. three args in, an int out. simple. iconic. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • nilfs β€” your nilfs object. the main character, obviously 🫢
  • sb β€” the super block instance. it's that girl and it knows it πŸ’…
  • ri β€” a pointer to a struct nilfs_recovery_info where the search results get stored. so like. this is where we write down what we found πŸ“βœ¨

⭐ RETURN ⭐

you get 0 on success πŸŽ‰ β€” and on failure you get one of these negative error codes:

  • -EINVAL β€” inconsistent filesystem state. the vibes are off, the fs is a mess πŸ™ˆ
  • -EIO β€” I/O error. hardware said "not today" πŸ’€
  • -ENOMEM β€” insufficient memory available. bestie is out of RAM, it's so over 😭
  • -ENOSPC β€” no space left on device. note: only in a panic state, so like, extra dramatic circumstances πŸ”₯
  • -ERESTARTSYS β€” interrupted. someone hit Ctrl+C on our whole moment βœ‹

πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./fs/nilfs2/recovery.c (the source of truth, go read it fr fr) plus this whole friend group of sibling functions:

they're all in their own manpages. go say hi πŸ’–


heads up bestie: these logs are orphans β€” written after the latest checkpoint β€” so this is genuinely the recovery path. treat it with respect, not like a casual little call πŸ’œ

okay that's the page!! 🌈 sourced from ./fs/nilfs2, dated October 2026 β€” yes, the future, don't question the timeline πŸ•°οΈβœ¨ mwah, go salvage those logs, you got this πŸ‘‘πŸ’…πŸŽ€

πŸ“¦ where this page comes from