gfs2_hole_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– gfs2_hole_size(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for gfs2_hole_size(9) β€” yes, the title is giving β€œhole size” and the energy is giving β€œlet’s read the whole thing together.” No cap, every deet stays. 🫢

✨ NAME ✨

gfs2_hole_size β€” figure out the size of a hole. Literally that’s the mission, and the name ate. πŸ’…

🌸 SYNOPSIS 🌸

int gfs2_hole_size (struct inode *inode , sector_t lblock , u64 len ,
       struct metapath *mp , struct iomap *iomap );

πŸŽ€ ARGUMENTS πŸŽ€

  • inode β€” the inode. That’s it, that’s the whole note, and yes it’s important. 😌
  • lblock β€” the logical starting block number. Logical! Starting! Block number! Obsessed with specificity. ✨
  • len β€” how far to look, in blocks. Not bytes, bestie β€” blocks. 🧚
  • mp β€” the metapath at lblock. Keep your eyes on this one, because DESCRIPTION is about to call it out. πŸ‘€
  • iomap β€” the iomap to store the hole size in. That’s its job, no extra lore. πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

This function modifies mp. That’s the whole vibe. Like, not a subtle little β€œmaybe it touches mp” situation β€” it modifies mp, periodt. πŸ’€ So if you were expecting mp to stay exactly the same, this is your dramatic heads-up, bestie. 🚨

🌈 RETURN 🌈

errno on error. No cap, that’s the return story β€” errors come back as errno. 😭

πŸŽ€ SEE ALSO πŸŽ€

Kernel file: ./fs/gfs2/bmap.c

The whole see-also group chat is:


mwah πŸ’‹ this page is from ./fs/gfs2, dated October 2026, and it’s literally the gfs2_hole_size(9) entry in the Kernel API Manual 🫢✨

πŸ“¦ where this page comes from