gfs2_statfs_slow(9)
β¨ gfs2_statfs_slow(9) β¨
okay so this is a page straight out of the Kernel API Manual, bestie β it's gfs2_statfs_slow, and it lives in the GFS2 filesystem code. yes we're in kernel land now. no cap. π§
πΈ NAME πΈ
gfs2_statfs_slow β stat a filesystem using asynchronous locking. that's it, that's the whole vibe check. π
π SYNOPSIS π
int gfs2_statfs_slow (struct gfs2_sbd *sdp , struct
gfs2_statfs_change_host *sc );
like, that's literally the whole signature. two pointers and an int coming back at you. π₯
π¦ ARGUMENTS π¦
sdpβ the filesystem. yes, the filesystem, she's the main character here. πscβ the sc info that will be returned. it goes in empty-ish and comes back filled, iykyk. π«Ά
π DESCRIPTION π
so the way this works: any error (other than a signal) will cause this routine to fall back to the synchronous version. like, if something goes sideways, she just quietly hands things off to the old reliable path. not a signal though β signals don't trigger the fallback, keep that distinction in your head bestie. β
FIXME: This really shouldn't busy wait like this. π β the original authors said it, not me. it's right there in the manpage and I'm not gonna pretend it isn't. not me exposing the kernel's busy-waiting era π
π RETURN π
errno β that's it. that's the return value. classic. π
π SEE ALSO π
kernel file ./fs/gfs2/super.c, plus 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_i(9),gfs2_statfs(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)
that's the entire group chat, go read them too. π
and that's a wrap, bestie β this little page came from ./fs/gfs2, dated October 2026, so go forth and stat those filesystems (slowly, asynchronously, with the fallback ready) π¦β¨π
π¦ 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