gfs2_lookupi(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this page is gfs2_lookupi(9) from the Kernel API Manual, and it's literally here to look up a filename in a directory and return its inode ✨. bestie, that's the whole vibe 🫢.

✨ SYNOPSIS ✨

struct inode * gfs2_lookupi (struct inode *dir , const struct qstr *name
       , int is_root );

πŸŽ€ ARGUMENTS πŸŽ€

  • dir β€” the inode of the directory containing the inode to look-up 🌸
  • name β€” the name of the inode to look for πŸŽ€
  • is_root β€” if it's 1, ignore the caller's permissions πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this can be called via the VFS filldir function when NFS is doing a readdirplus and the inode which it's intending to stat isn't already in cache πŸ¦‹. In this case we must not take the directory glock again, since the readdir call will have already taken that lock. no cap, that's the whole point πŸ’….

⚠️ do not take that directory glock again β€” the readdir call already took it, and that's literally the rule πŸ™ˆ.

πŸ”₯ RETURN πŸ”₯

the return is errno β€” that's it, that's the whole return bestie πŸ’€.

🌈 SEE ALSO 🌈

Kernel file ./fs/gfs2/inode.c β€” and the whole squad is right here:

byeee bestie 🫢 β€” source/version: ./fs/gfs2, date: October 2026, page: gfs2_lookupi(9) πŸ’…πŸŒˆ

πŸ“¦ where this page comes from