befs_find_brun_indirect(9)
π 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 β¨
- Kernel file
./fs/befs/datastream.c befs_read_datastream(9)befs_fblock2brun(9)befs_count_blocks(9)befs_find_brun_direct(9)befs_find_brun_dblindirect(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms