gfs2_rbm_from_block(9)
π« gfs2_rbm_from_block(9) π«
okay so bestie, welcome to the <pink>gfs2_rbm_from_block</pink> page from the Kernel API Manual β this is the one that sets up your rbm for you, and honestly? it's giving "small function, big responsibility" energy. let's get into it π«Ά
β¨ NAME β¨
gfs2_rbm_from_block β set the rbm based upon rgd and block number π
πΈ SYNOPSIS πΈ
int gfs2_rbm_from_block (struct gfs2_rbm *rbm , u64 block );
π¦ ARGUMENTS π¦
rbmβ the rbm, withrgdalready set correctly (this part is literally on you, bestie β it's a prerequisite, not a suggestion π )blockβ the block number, and it's filesystem relative so don't come at it with anything else fr fr
π DESCRIPTION π
so what this does: it sets the bi and offset members of an rbm, based on a resource group plus a filesystem relative block number. iconic behaviour, no notes.
heads up though β the resource group must be set in therbmon entry. like, non-negotiable. thebiandoffsetmembers are the ones this function fills in for you, so don't go pre-setting those and expecting a vibe check to save you π
β RETURN β
0 on success, or an error code. that's it, that's the whole story π
π₯ SEE ALSO π₯
the whole crew, and yes we're listing every single one because nobody gets left behind π
- Kernel file
./fs/gfs2/rgrp.cβ the source itself, main character energy gfs2_setbit(9)gfs2_testbit(9)gfs2_bit_search(9)rs_cmp(9)gfs2_bitfit(9)gfs2_rbm_add(9)gfs2_unaligned_extlen(9)gfs2_free_extlen(9)gfs2_bitcount(9)gfs2_rgrp_verify(9)gfs2_blk2rgrpd(9)gfs2_rgrpd_get_first(9)gfs2_rgrpd_get_next(9)__rs_deltree(9)gfs2_rs_deltree(9)gfs2_rs_delete(9)return_all_reservations(9)compute_bitstructs(9)gfs2_ri_total(9)read_rindex_entry(9)set_rgrp_preferences(9)gfs2_ri_update(9)gfs2_rindex_update(9)gfs2_rgrp_go_instantiate(9)gfs2_rgrp_brelse(9)gfs2_fitrim(9)rs_insert(9)rgd_free(9)rg_mblk_search(9)gfs2_next_unreserved_block(9)gfs2_reservation_check_and_update(9)gfs2_rbm_find(9)try_rgrp_unlink(9)gfs2_rgrp_congested(9)gfs2_rgrp_used_recently(9)fast_to_acquire(9)gfs2_inplace_reserve(9)gfs2_inplace_release(9)gfs2_alloc_extent(9)rgblk_free(9)gfs2_rgrp_dump(9)gfs2_adjust_reservation(9)gfs2_set_alloc_start(9)gfs2_alloc_blocks(9)__gfs2_free_blocks(9)gfs2_free_meta(9)gfs2_check_blk_type(9)gfs2_rlist_add(9)gfs2_rlist_alloc(9)gfs2_rlist_free(9)
and that's the whole page, bestie!! π§π this lil gem lives in ./fs/gfs2, it's dated October 2026, and the manual footer stamps it as gfs2_rbm_from_block(9) β so go forth, set those bi and offset members, and slay β¨π
π¦ 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