gfs2_init_xattr(9)
π« gfs2_init_xattr(9) π«
okay bestie, welcome to the Kernel API Manual β yes, that's the whole manual name, we're fancy here π β and today's main character is gfs2_init_xattr, a lil function that does exactly one job and does it slayfully.
β¨ NAME β¨
gfs2_init_xattr β Initialise an xattr block for a new inode π
πΈ SYNOPSIS πΈ
void gfs2_init_xattr (struct gfs2_inode *ip );
literally that's the whole signature, no cap. it returns void so there's nothing to catch, no drama, no return value to obsess over π
π¦ ARGUMENTS π¦
ipβ The inode in question π«Ά like, the actual inode we're doing this for. the one. the main character.
β DESCRIPTION β
so here's the vibe: this sets up an empty xattr block for a new inode, all fresh and ready to go β¨
ready for what, you ask? ready to take any ACLs, LSM xattrs, etc. β like an empty closet just waiting for the fits to arrive π
that's it. that's the whole function. it's giving "prep the canvas before the artist shows up" and honestly? iconic.
π₯ SEE ALSO π₯
Kernel file ./fs/gfs2/inode.c β plus the whole extended fam, and yes we're listing every single one because nobody gets left out π:
gfs2_set_iop(9)gfs2_inode_lookup(9)gfs2_lookup_by_inum(9)gfs2_lookup_meta(9)gfs2_lookupi(9)create_ok(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_setattr(9)gfs2_getattr(9)
and that's the whole page, bestie!! π
cute lil sign-off time π«Ά: this one lives under ./fs/gfs2, dated October 2026, and it's filed under gfs2_init_xattr(9) so you can find it again whenever you need it. mwah πβ¨
π¦ 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