gfs2_blk2rgrpd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, this is gfs2_blk2rgrpd(9) from the Kernel API Manual, and it is literally here to find a resource group for a given data/meta block number. πŸ’–

gfs2_blk2rgrpd - Find resource group for a given data/meta block number


πŸ¦‹ SYNOPSIS πŸ¦‹

struct gfs2_rgrpd * gfs2_blk2rgrpd (struct gfs2_sbd *sdp , u64 blk ,
bool exact );

πŸ’… ARGUMENTS πŸ’…

  • sdp β€” The GFS2 superblock 🫢
  • blk β€” The data block number ⭐
  • exact β€” True if this needs to be an exact match πŸŽ€

🌸 DESCRIPTION 🌸

okay so the exact argument should be set to true by most callers, fr fr. The exception is when we need to match blocks which are not represented by the rgrp bitmap, but which are part of the rgrp (i.e. padding blocks) which are there for alignment purposes. πŸ‘‘

Another way of looking at it is that exact matches only valid data/metadata blocks, but with exact false, it will match any block within the extent of the rgrp. no cap. πŸ’…


πŸŽ€ RETURN πŸŽ€

The resource group, or NULL if not found 😭


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/gfs2/rgrp.c and the whole squad, periodt:


and that's the page, bestie πŸ’œ the footer source/version moment says ./fs/gfs2, dated October 2026, and it signs off as gfs2_blk2rgrpd(9) β€” iconic, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from