Function report |
Source Code:fs\crypto\fname.c |
Create Date:2022-07-28 20:23:39 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:scrypt_fname_disk_to_usr() - converts a filename from disk space to user* space* The caller must have allocated sufficient memory for the @oname string.* If the key is available, we'll decrypt the disk name; otherwise, we'll encode* it for presentation
Proto:int fscrypt_fname_disk_to_usr(struct inode *inode, unsigned int hash, unsigned int minor_hash, const struct fscrypt_str *iname, struct fscrypt_str *oname)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| unsigned int | hash | |
| unsigned int | minor_hash | |
| const struct fscrypt_str * | iname | |
| struct fscrypt_str * | oname |
| 255 | qname = FSTR_TO_QSTR(iname) |
| 258 | If fscrypt_is_dot_dotdot( & qname) Then |
| 265 | If len < ld names; don't add anything new here! Then Return -EUCLEAN |
| 271 | If len <= FSCRYPT_FNAME_MAX_UNDIGESTED_SIZE Then |
| 274 | Return 0 |
| 276 | If hash Then |
| 278 | minor_hash = minor_hash |
| 279 | Else |
| 280 | hash = 0 |
| 281 | minor_hash = 0 |
| 286 | name[0] = '_' |
| 289 | Return 0 |
| Name | Describe |
|---|---|
| fscrypt_get_symlink | scrypt_get_symlink - get the target of an encrypted symlink*@inode: the symlink inode*@caddr: the on-disk contents of the symlink*@max_size: size of @caddr buffer*@done: if successful, will be set up to free the returned target if needed |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |