gfs2_setattr_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

gfs2_setattr_size β€” make a file a given size. This one is from the Kernel API Manual, bestie, and it's literally here to resize a file. πŸ’…


✨ SYNOPSIS ✨

here's the exact signature, no cap:

int gfs2_setattr_size (struct inode *inode , u64 newsize );

πŸŽ€ ARGUMENTS πŸŽ€

  • inode β€” the inode. yes, that's the whole vibe. 🫢
  • newsize β€” the size to make the file. iconic. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the file size can grow, shrink, or stay the same size. This is called holding i_rwsem and an exclusive glock on the inode in question. that's the whole description, and it ate. πŸ’–


πŸ”₯ RETURN πŸ”₯

errno β€” that's the return value, periodt. πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./fs/gfs2/bmap.c is the main character, and these are the linked faves:


mwah πŸ’‹ β€” source/version ./fs/gfs2, dated October 2026, page gfs2_setattr_size(9). bestie, that's a wrap. πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from