ea_write(9)
π ea_write(9) β the kernel API manual, but make it make sense
okay bestie, welcome to ea_write(9), straight out of the Kernel API Manual and living in section 9. This is the little function that writes your request info into an extended attribute, and yes it will make brand new blocks if it has to. no cap, she's a builder. π
β¨ NAME β¨
ea_write β writes the request info to an ea, creating new blocks if necessary π
π¦ SYNOPSIS π¦
int ea_write (struct gfs2_inode *ip , struct gfs2_ea_header *ea , struct
gfs2_ea_request *er );
πΈ ARGUMENTS πΈ
ipβ the inode that's getting modified. this is the main character whose vibe we are shifting β¨eaβ the location of the new ea in a block. like, where the new ea is gonna live, in a block πerβ the write request. the actual ask, the whole point, the moment π
π NOTE π
okay so listen, this one's important βea_writedoes not updateea_rec_lenor theGFS2_EAFLAG_LASTbin ofea_flags. so do not come for her later being like "why is this wrong", girl it was never her job. literally not her department π
π₯ RETURN π₯
errno β yes that's it, that's the whole return. classic. π
π«Ά SEE ALSO π«Ά
- Kernel file
./fs/gfs2/xattr.c gfs2_listxattr(9)gfs2_iter_unstuffed(9)__gfs2_xattr_get(9)ea_alloc_blk(9)gfs2_xattr_remove(9)__gfs2_xattr_set(9)gfs2_ea_dealloc(9)
go read the whole friend group, they're all obsessed with each other iykyk π
and that's the whole page bestie!! brought to you by ./fs/gfs2 in iconic October 2026 β mwah, stan the kernel, bye!! ππ§
π¦ 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