gfs2_dir_write_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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