ceph_fscrypt...pare_readdir(9)
π ceph_fscrypt_prepare_readdir β the Kernel API manual, but make it make sense β¨
okay so bestie, you're in the Kernel API Manual and this function lives in the ceph_fscrypt...pare_readdir corner of the world π (yes the title is doing that abbreviation thing, it's the ceph_fscrypt_prepare_readdir function, iykyk π).
πΈ NAME πΈ
ceph_fscrypt_prepare_readdir β literally just a simple __fscrypt_prepare_readdir() wrapper, no cap π«Ά
β¨ SYNOPSIS β¨
int ceph_fscrypt_prepare_readdir (struct inode *dir );
π ARGUMENTS π
dirβ the directory inode you're prepping for readdir, that's it, that's the whole vibe π¦
π DESCRIPTION π
So this is a simple wrapper around __fscrypt_prepare_readdir π The one extra little thing it does? If this call results in the directory actually getting unlocked, it marks the directory as non-complete. That's the whole personality. Iconic, lowkey π§
π RETURN π
1β the directory was locked and the key is now loaded, i.e. the dir is unlocked, slay π₯0β the directory is still locked π< 0β__fscrypt_prepare_readdirfailed, and that's the sad path π
fr fr, watch that< 0β negative means a failure from__fscrypt_prepare_readdir, so don't just check for truthy, bestie π
π¦ SEE ALSO π¦
- Kernel file
./fs/ceph/crypto.c ceph_fname_to_usr(9)ceph_fscrypt_decrypt_pages(9)ceph_fscrypt_decrypt_extents(9)ceph_fscrypt_encrypt_pages(9)
β and that's the whole page, bestie π this lil number comes from ./fs/ceph, dated October 2026, and it signs off being the ceph_fscrypt...pare_readdir(9) manual β go forth and readdir responsibly ππΈ
π¦ 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