gfs2_drevalidate(9)
πΈ gfs2_drevalidate (9) β from the Kernel API Manual, bestie π
okay so we're in the kernel API manual today and this page is about gfs2_drevalidate. it's short, it's sweet, and it's lowkey doing important work for GFS2 β let's get into it β¨
β¨ SYNOPSIS β¨
int gfs2_drevalidate (struct inode *dir , const struct qstr *name ,
struct dentry *dentry , unsigned int flags );
that's the whole vibe β one function, four args, returns an int. slay π
π«Ά ARGUMENTS π«Ά
dirβ the parent directory inode you're expecting this thing to come from. like, the address you think it lives at πnameβ the name you expect (the page literally spells it "expexted name" and honestly? we're keeping it, typos are iconic π)dentryβ thedentrythat's getting the vibe checkflagsβ the lookup flags. yep, just... flags π©
π₯ DESCRIPTION π₯
so here's the tea β β this function checks that the lookup you'd need to do to get from this inode's parent all the way down to this inode still holds up. like, is the path you used to find this thing still valid? is the directory consistency still giving? if the lookup no longer checks out, this is where you find out π
it's a consistency check, not a fanciness check. no cap π
β RETURN β
1β thedentryis ok β it passed the vibe check0β it isn't π
that's it. binary. no in-between. periodt π
π¦ SEE ALSO π¦
- the kernel file
./fs/gfs2/dentry.cβ go read the source, iykyk π
lowkey reminder: this one's a kernel-internal API page, so the "see also" is literally just the source file. that's not me being lazy, that's the whole reference π§
and that's the page!! π source location ./fs/gfs2, dated October 2026, kernel API manual β big thanks to the GFS2 girlies for keeping our dentries honest, muah πππ
π¦ 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