befs_find_brun_indirect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… befs_find_brun_indirect πŸ’…

okay so bestie, welcome to the befs_find_brun_indirect(9) page πŸ’– this is a Kernel API Manual situation, and we're about to go hunting for a block run in a datastream. no cap, it's lowkey adorable once you get it. πŸ¦‹


✨ NAME ✨

befs_find_brun_indirect β€” find a block run in the datastream 🌸


✨ SYNOPSIS ✨

int befs_find_brun_indirect (struct super_block *sb , const
befs_data_stream *data , befs_blocknr_t blockno , befs_block_run *run );

like, that's the whole vibe. four args, one int coming back at you. πŸŽ€


✨ ARGUMENTS ✨

  • sb β€” the superblock, bestie. the big one. πŸ‘‘
  • data β€” the datastream. yes, that datastream. πŸ’«
  • blockno β€” the blocknumber we're trying to find. the whole point of the quest fr fr πŸ”
  • run β€” the found run gets passed back through this pointer. it's giving "output parameter" main character energy πŸ’…

✨ DESCRIPTION ✨

okay so here's the tea β˜• this function finds the block run that starts at file block number blockno, in the file represented by the datastream data β€” but only if that blockno is in the indirect region of the datastream. if it's not in that region, this is not the function for you, sorry not sorry πŸ™ˆ

Return value is BEFS_OK if the blockrun is found, BEFS_ERR otherwise. slay. ✨

Algorithm (the way it actually does it, ngl): for each block in the indirect run of the datastream, read it in and search through it for search_blk. that's it. that's the whole method. 🧚

XXX: Really should check to make sure blockno is inside indirect region. 🫢 like… it just doesn't rn. that's a real note in the real source, bestie, so we're keeping it. 😭

✨ SEE ALSO ✨

go read the whole friend group, they're all icons, iykyk πŸ”₯


and that's the page!! πŸ’– this little legend lives in ./fs/befs, and the date on it is October 2026 β€” so yeah, mark your calendar, screenshot it, send it to the group chat, and go find some block runs. periodt. πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from