gfs2_setattr(9)
π 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 rndentryβ the dentry that's changing π this is the main character, the thing getting a glow-upattrβ 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 π§
gfs2_set_iop(9)gfs2_inode_lookup(9)gfs2_lookup_by_inum(9)gfs2_lookup_meta(9)gfs2_lookupi(9)create_ok(9)gfs2_init_xattr(9)init_dinode(9)gfs2_trans_da_blks(9)gfs2_create_inode(9)gfs2_create(9)__gfs2_lookup(9)gfs2_link(9)gfs2_unlink_inode(9)gfs2_unlink(9)gfs2_symlink(9)gfs2_mkdir(9)gfs2_mknod(9)gfs2_atomic_open(9)update_moved_ino(9)gfs2_rename(9)gfs2_exchange(9)gfs2_get_link(9)gfs2_permission(9)gfs2_getattr(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms