gfs2_dir_write_data(9)
π gfs2_dir_write_data(9) β like, the kernel API manual page, bestie
okay so this is gfs2_dir_write_data, straight out of the Kernel API Manual, and it's genuinely one of the most straightforward little functions in the whole GFS2 directory department. it writes directory info into an inode. that's it. that's the whole vibe. π
β¨ NAME β¨
gfs2_dir_write_data β writes directory information to the inode. literally what it says on the tin, no cap.
π¦ SYNOPSIS π¦
int gfs2_dir_write_data (struct gfs2_inode *ip , const char *buf , u64
offset , unsigned int size );
like yes she's a little long, but she's worth it π
πΈ ARGUMENTS πΈ
ipβ the GFS2 inode. this is the main character of the whole operation, the inode we're writing into πbufβ the buffer that's holding all the information that's about to be written. the little suitcase of data, if you will π§³offsetβ the file offset where the writing starts. so like, where in the file we're dropping this data πsizeβ how much data we're writing. the amount. the quantity. the volume π
β RETURN β
returns the number of bytes that were correctly written β or an error code if things didn't go great π like, either you get a byte count or you get a problem. vibe check, basically.
π«Ά SEE ALSO π«Ά
so there's a whole friend group here, and honestly they all live in the kernel file ./fs/gfs2/dir.c. squad lineup:
gfs2_dir_read_data(9)gfs2_dir_get_hash_table(9)gfs2_dir_hash_inval(9)dirent_next(9)dirent_del(9)get_leaf_nr(9)dir_make_exhash(9)dir_split_leaf(9)dir_double_exhash(9)compare_dents(9)do_filldir_main(9)gfs2_dir_readahead(9)dir_e_read(9)gfs2_dir_search(9)dir_new_leaf(9)gfs2_dir_add(9)gfs2_dir_del(9)gfs2_dir_mvino(9)leaf_dealloc(9)gfs2_dir_exhash_dealloc(9)gfs2_diradd_alloc_required(9)
go read them too, iykyk π₯
and that's the page!! no hidden lore, no surprise options, she's a short queen and we respect her for it π
mwah, that's a wrap π this one lives in ./fs/gfs2, dated October 2026, and it's filed under gfs2_dir_write_data(9) in the Kernel API Manual β stan a tidy little manpage, honestly πβ¨
π¦ 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