gfs2_alloc_blocks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, this is the gfs2_alloc_blocks(9) page from the Kernel API Manual β€” and it's literally about allocating things in GFS2. The vibe? allocate one or more blocks of data and/or a dinode ✨

  • gfs2_alloc_blocks β€” allocate one or more blocks of data and/or a dinode πŸ’…

✨ SYNOPSIS ✨

       int gfs2_alloc_blocks (struct gfs2_inode *ip , u64 *bn , unsigned int
       *nblocks , bool dinode );

🧚 ARGUMENTS 🧚

  • ip β€” the inode to allocate the block for, bestie 🫢
  • bn β€” used to return the starting block number; it's the output bestie for where the block starts πŸ“
  • nblocks β€” requested number of blocks/extent length, and it's a value/result situation (value/result) πŸ”
  • dinode β€” 1 if we're allocating a dinode block, else 0 πŸ‘‘

🎁 RETURN 🎁

0 or error, periodt. That's the whole return vibe πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./fs/gfs2/rgrp.c β€” and here's the whole friend group, no cap:

mwah, signing off from source/version ./fs/gfs2, dated October 2026, on the gfs2_alloc_blocks(9) page β€” slay πŸ’œ

πŸ“¦ where this page comes from