gfs2_statfs(9)
π¦ gfs2_statfs(9) β the Kernel API Manual said "let me introduce you" π¦
okay bestie, gather round, because this one is a tiny little function in the Kernel API Manual and honestly? it's giving "small but mighty" π
β¨ NAME β¨
gfs2_statfs β literally just gathers stats about the filesystem and hands them back to you. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
int gfs2_statfs (struct dentry *dentry , struct kstatfs *buf );
lowkey iconic signature ngl β one dentry in, one buffer out, one int of truth. π«Ά
β¨ ARGUMENTS β¨
dentryβ "The name of the link" π« like yes bestie, this is the dentry you're asking about, the actual name-of-the-link situation.bufβ "The buffer" πΈ that's where the stats land. the little vessel. the container. the buffer, if you will. π
β¨ RETURN β¨
0 on success, or an error code π₯ so like β zero means slay, anything else means the vibe check failed and you got an error code instead. no cap.
fr fr check the return value, bestie. 0 is the good timeline, everything else is the plot twist. π
β¨ SEE ALSO β¨
the kernel file ./fs/gfs2/super.c is the main character here π and then we got the whole friend group:
gfs2_jindex_free(9), gfs2_make_fs_rw(9), gfs2_lock_fs_check_clean(9), gfs2_write_inode(9), gfs2_dirty_inode(9), gfs2_make_fs_ro(9), gfs2_put_super(9), gfs2_sync_fs(9), gfs2_freeze_super(9), gfs2_thaw_super(9), statfs_slow_fill(9), gfs2_statfs_slow(9), gfs2_statfs_i(9), gfs2_drop_inode(9), gfs2_show_options(9), gfs2_glock_put_eventually(9), evict_should_delete(9), evict_unlinked_inode(9), gfs2_evict_inode(9)
like, that's the whole group chat and every single one of them is invited π§π
and that's the page, bestie!! π come back to ./fs/gfs2 any time β this one's stamped October 2026, straight out of the Kernel API Manual, and it ate. periodt. πβ¨π
π¦ 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