gfs2_statfs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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