gfs2_bmap(9)
πΈ gfs2_bmap(9) πΈ
okay so bestie, welcome to the Kernel API Manual β yes we're in kernel-land today, put your big-girl hat on, it's giving β¨filesystem internalsβ¨ and honestly? iconic.
π NAME π
gfs2_bmap β literally the Block map function, that's it, that's the whole vibe πΊοΈπ
β¨ SYNOPSIS β¨
sector_t gfs2_bmap (struct address_space *mapping , sector_t lblock );
that's the whole signature, copy it exactly please, no cap π«Ά
π ARGUMENTS π
mappingβ your Address space info bestie, the whole friend group of address space data ππlblockβ the block you wanna map, like the specific one, the main character block π
π¦ RETURN π¦
it hands you back The disk address for the block β slay β or 0 on hole or error π so like, if you get a zero, don't come crying to me, that's a hole or an error, periodt π
π₯ SEE ALSO π₯
Kernel file ./fs/gfs2/aops.c β go read it, iykyk πβ¨ and also these absolute legends:
gfs2_get_block_noalloc(9)gfs2_write_jdata_folio(9)__gfs2_jdata_write_folio(9)gfs2_jdata_writeback(9)gfs2_writepages(9)gfs2_write_jdata_batch(9)gfs2_write_cache_jdata(9)gfs2_jdata_writepages(9)stuffed_read_folio(9)gfs2_read_folio(9)gfs2_internal_read(9)gfs2_readahead(9)adjust_fs_space(9)gfs2_release_folio(9)
like, the whole squad fr fr ππ
ngl this one's short and sweet β no options, no env vars, no exit statuses, just vibes and a block map π§ββοΈ
k bye bestie, this page came from ./fs/gfs2, dated October 2026, and it's gfs2_bmap(9) forever ππβ¨ go map some blocks, you got this π«ΆπΈ
π¦ 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