ovl_statfs(9)
π¦ ovl_statfs(9) β a Kernel API Manual moment π¦
okay so bestie, you're in the Kernel API Manual and today's main character is ovl_statfs(9). pull up a chair, hydrate, and let's get into it π
β¨ NAME β¨
ovl_statfs β
and that's... literally it π the description field is empty, our girl showed up to the function with no bio. iconic behaviour honestly, she lets the code speak for itself π«Ά
πΈ SYNOPSIS πΈ
int ovl_statfs (struct dentry *dentry , struct kstatfs *buf );
π ARGUMENTS π
dentryβ the dentry you're querying π this is the thing you're asking about, so like, be normal about it.bufβ thestruct kstatfsyou're gonna fill in with the stats β¨ she's empty when she arrives, and full of numbers when she leaves. a glow-up fr.
π DESCRIPTION π
so the whole vibe here is: get the filesystem statistics π that's the job, that's the assignment.
but here's the tea π₯ β because writes always target the upper layer filesystem, you pass the statfs on to the upper filesystem. like, hand it off. give it to the upper layer. (if it exists, obviously π β no upper layer, no handoff, simple as.)
ngl the way this function just delegates to the upper layer is giving "I trust you with this" energy π€
π₯ SEE ALSO π₯
- Kernel file
./fs/overlayfs/super.cβ go read her, she's got the lore π§
fr fr: every detail up there matters,dentryandbufare real arguments andstruct kstatfsis a real struct β don't get cute and rename things, that's not the vibe π
and that's the whole page, bestie β¨ this lil' slice of the Kernel API Manual lives at ./fs/overlayfs, and it's stamped October 2026 π so if you're reading this in some other timeline... no you're not π¦ mwah, slay, bye π
π¦ 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