gfs2_statfs_slow(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:

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