ceph_fscrypt...rypt_extents(9)
β¨ NAME β¨
okay bestie, this page is ceph_fscrypt_decrypt_extents from the Kernel API Manual β page ceph_fscrypt...rypt_extents(9) β and it's literally here to decrypt received extents in given buffer. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int ceph_fscrypt_decrypt_extents (struct inode *inode , struct page
**page , u64 off , struct ceph_sparse_extent *map , u32 ext_cnt );
π ARGUMENTS π
inodeβ the inode associated with pages being decrypted. it's the main-character inode, basically.pageβ pointer to page array. yes, pages plural, she contains multitudes.offβ offset into the file that the data inpage[0]starts. so you know exactly where the tea begins.mapβ pointer to extent array. the map, the blueprint, the layout.ext_cntβ length of extent array. gotta know how many extents we're working with, fr fr.
π¦ DESCRIPTION π¦
so here's the tea: you give it an extent map and a page array, and it decrypts the received data in-place, skipping holes like they're irrelevant. no cap, holes do not get decrypted.
Returns the offset into buffer of end of last decrypted block. that's the return value, bestie β the end-of-last-decrypted-block offset. β¨
π SEE ALSO π
- Kernel file
./fs/ceph/crypto.c ceph_fname_to_usr(9)ceph_fscrypt_prepare_readdir(9)ceph_fscrypt_decrypt_pages(9)ceph_fscrypt_encrypt_pages(9)
mwah π shoutout to the source/version tag ./fs/ceph, the date October 2026, and the ceph_fscrypt...rypt_extents(9) manual β that's the sign-off, bestie. periodt. π«Ά
π¦ 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