gfs2_setattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gfs2_setattr(9) β€” like, the Kernel API Manual page, bestie ✨

okay so real talk, this is a page straight out of the Kernel API Manual and it's all about gfs2_setattr. it's short, it's sweet, and it's giving "small function, big job" energy tbh πŸŽ€


✨ NAME ✨

gfs2_setattr β€” change attributes on an inode πŸ¦‹

like, the attributes? changing them. on an inode. that's the whole vibe.


🌸 SYNOPSIS 🌸

int gfs2_setattr (struct mnt_idmap *idmap , struct dentry *dentry ,
       struct iattr *attr );

it returns an int, it takes three things, and yes bestie you do have to pass all three πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • idmap β€” the idmap of the mount that the inode was found from 🫢 like, whose mapping are we living in rn
  • dentry β€” the dentry that's changing πŸ‘‘ this is the main character, the thing getting a glow-up
  • attr β€” the structure that's describing the change πŸ“ it literally holds the whole "what are we doing here" of it all

πŸ’– DESCRIPTION πŸ’–

okay so picture this: the VFS layer rolls up and it wants to change one or more of an inode's attributes. and gfs2_setattr? it's the one who actually writes that change out to disk. no cap, that's the job. ✨

the VFS asks, gfs2 answers, the disk gets the update. periodt. πŸ”₯


⭐ RETURN ⭐

errno πŸ’€ yeah that's it, that's the whole return section. it returns an errno. iconic honestly.


🌈 SEE ALSO 🌈

Kernel file ./fs/gfs2/inode.c β€” plus a whole friend group of functions, all listed, all linked, all slaying in their own way 🧚

like, the whole ./fs/gfs2 crew showed up. iykyk πŸ’œ


🌸 one lil' note bestie: this page lives in ./fs/gfs2, dated October 2026. that's the source, that's the version, that's the timestamp, all of it πŸŽ€

and that's the whole page!! mwah, go change some attributes responsibly, gfs2_setattr(9) said what it said πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from