gfs2_meta_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– gfs2_meta_buffer β€” Get a metadata buffer πŸ’–

okay so bestie, welcome to the gfs2_meta_buffer(9) page from the Kernel API Manual β€” this is literally the β€œhow do I get a metadata buffer” icon, and we’re keeping every detail. no cap. 🫢


✨ NAME ✨

gfs2_meta_buffer β€” Get a metadata buffer 🌸


πŸ’« SYNOPSIS πŸ’«

int gfs2_meta_buffer (struct gfs2_inode *ip , u32 mtype , u64 num ,
       struct buffer_head **bhp );

πŸŽ€ ARGUMENTS πŸŽ€

okay, these are the four args and they are all doing main-character work:

  • ip β€” the GFS2 inode πŸ‘‘
  • mtype β€” the block type, exactly GFS2_METATYPE_* πŸ’…
  • num β€” the block number (device relative) of the buffer πŸŽ€
  • bhp β€” the buffer is returned here πŸ¦‹

πŸ’… RETURN πŸ’…

it returns errno, periodt. that’s the whole mood. πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file is ./fs/gfs2/meta_io.c (copy that path exactly, bestie), and these functions are the friend group:


mwah πŸ’‹ source/version: ./fs/gfs2 Β· date: October 2026 Β· page: gfs2_meta_buffer(9) β€” byeee, go get that metadata buffer, bestie! 🫢✨

πŸ“¦ where this page comes from