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_setup_filename() - prepare to search a possibly encrypted directory*@dir: the directory that will be searched*@iname: the user-provided filename being searched for*@lookup: 1 if we're allowed to proceed without the key because it's* ->lookup() or
Proto:int fscrypt_setup_filename(struct inode *dir, const struct qstr *iname, int lookup, struct fscrypt_name *fname)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct inode * | dir | |
| const struct qstr * | iname | |
| int | lookup | |
| struct fscrypt_name * | fname | 
| 323 | memset(fname, 0, sizeof(structfscrypt_name)) | 
| 326 | If Not IS_ENCRYPTED(dir) || fscrypt_is_dot_dotdot(iname) Then | 
| 331 | ret = fscrypt_get_encryption_info(dir) | 
| 335 | If fscrypt_has_encryption_key(dir) Then | 
| 336 | If Not fscrypt_fname_encrypted_size(dir, len, max_namelen, & len) Then Return -ENAMETOOLONG | 
| 340 | name = Allocation memory | 
| 351 | Return 0 | 
| 355 | is_ciphertext_name = true | 
| 361 | If name[0] == '_' Then | 
| 362 | If len != 1 + BASE64_CHARS( size of fscrypt_digested_name ) Then Return -ENOENT | 
| 365 | digested = 1 | 
| 366 | Else | 
| 367 | If len > BASE64_CHARS(FSCRYPT_FNAME_MAX_UNDIGESTED_SIZE) Then Return -ENOENT | 
| 370 | digested = 0 | 
| 373 | name = Allocation memory | 
| 382 | If ret < 0 Then | 
| 387 | If digested Then | 
| 392 | Else | 
| 396 | Return 0 | 
| 398 | errout : | 
| 400 | Return ret | 
| Name | Describe | 
|---|---|
| __fscrypt_prepare_lookup | 
| 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  |