fscrypt_fname_disk_to_usr(9)
πΈ NAME πΈ
okay so bestie, welcome to the fscrypt_fname_disk_to_usr(9) page from the Kernel API Manual β¨ the whole serve here is: convert an encrypted filename to user-presentable form. that's it, that's the main character π
β¨ SYNOPSIS β¨
int fscrypt_fname_disk_to_usr (const struct inode *inode , u32 hash ,
u32 minor_hash , const struct fscrypt_str *iname , struct fscrypt_str
*oname );
π ARGUMENTS π
inodeβ the inode of the parent directory for regular filenames, or the inode of the symlink for symlink targets π«Άhashβ first part of the name's dirhash, if applicable. this lowkey only needs to be provided if the filename is located in an indexed directory whose encryption key may be unavailable. not needed for symlink targets, periodt.minor_hashβ second part of the name's dirhash, if applicable β¨inameβ the encrypted filename to convert. it may also be.or.., which aren't actually encrypted πonameβ output buffer for the user-presentable filename. the caller must have allocated enough space for this, e.g. usingfscrypt_fname_alloc_bufferπ
π¦ DESCRIPTION π¦
if the key is available, we'll decrypt the disk name. otherwise, we'll encode it for presentation in fscrypt_nokey_name format. see struct fscrypt_nokey_name for details, iykyk π§
π RETURN π
returns 0 on success, and -errno on failure. simple as that, no cap π
π SEE ALSO π
- Kernel file
./fs/crypto/fname.c fscrypt_fname_encrypt(9)fname_decrypt(9)fscrypt_fname_encrypted_size(9)fscrypt_fname_alloc_buffer(9)fscrypt_fname_free_buffer(9)fscrypt_setup_filename(9)fscrypt_match_name(9)fscrypt_fname_siphash(9)
xoxo bestie π source/version: ./fs/crypto; date: October 2026; page: fscrypt_fname_disk_to_usr(9) π
π¦ 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