ubifs_recover_leb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ubifs_recover_leb(9) πŸ’…

okay so welcome to the Kernel API Manual corner, bestie ✨ today’s main character is ubifs_recover_leb, and she is here to scan and recover a LEB with zero wasted motion πŸ’–

✨ NAME ✨

ubifs_recover_leb β€” scan and recover a LEB πŸŽ€

🌸 SYNOPSIS 🌸

struct ubifs_scan_leb * ubifs_recover_leb (struct ubifs_info *c , int
       lnum , int offs , void *sbuf , int jhead );

πŸŽ€ ARGUMENTS πŸŽ€

  • c β€” the UBIFS file-system description object πŸ‘‘
  • lnum β€” the LEB number πŸ”’
  • offs β€” the offset 🎯
  • sbuf β€” a LEB-sized buffer to use 🧺
  • jhead β€” the journal head number this LEB belongs to, or -1 if the LEB does not belong to any journal head 🫢

πŸ’– DESCRIPTION πŸ’–

Bestie, this function does a scan of a LEB, but it’s not a plain little scan β€” it caters for errors that might have been caused by the unclean unmount from which we are attempting to recover 😭 it’s giving cleanup crew for a messy unmount, fr fr.

On success it returns the scanned information ✨ on failure it returns a negative error code πŸ’€ no cap, that’s the return situation.

πŸ¦‹ SEE ALSO πŸ¦‹

Everything below is chilling in the kernel file ./fs/ubifs/recovery.c β€” here’s the whole friend group 🌈


okay that’s the whole page, bestie 🫢 signed, sealed, and glitter-bombed by ./fs/ubifs, October 2026, for the one and only ubifs_recover_leb(9) πŸ’…

πŸ“¦ where this page comes from