Lines Matching defs:target

203  * @target: plaintext symlink target
204 * @len: length of @target excluding null terminator
205 * @max_len: space the filesystem has available to store the symlink target
206 * @disk_link: (out) the on-disk symlink target being prepared
208 * This function computes the size the symlink target will require on-disk,
212 * Additionally, @disk_link->name is set to @target if the symlink will be
215 * on-disk target later. (The reason for the two-step process is that some
216 * filesystems need to know the size of the symlink target before creating the
219 * Return: 0 on success, -ENAMETOOLONG if the symlink target is too long,
223 int fscrypt_prepare_symlink(struct inode *dir, const char *target,
230 * To calculate the size of the encrypted symlink target we need to know
237 disk_link->name = (unsigned char *)target;
251 * longest symlink target we can accept.
268 int __fscrypt_encrypt_symlink(struct inode *inode, const char *target,
272 struct qstr iname = QSTR_INIT(target, len);
307 /* Cache the plaintext symlink target for later use by get_link() */
309 inode->i_link = kmemdup(target, len + 1, GFP_NOFS);
325 * fscrypt_get_symlink() - get the target of an encrypted symlink
329 * @done: if successful, will be set up to free the returned target if needed
331 * If the symlink's encryption key is available, we decrypt its target.
332 * Otherwise, we encode its target for presentation.
336 * Return: the presentable symlink target or an ERR_PTR()
351 /* If the decrypted target is already cached, just return it. */
420 * symlink target (or the no-key encoded symlink target, if the key is
421 * unavailable) rather than the length of the encrypted symlink target. This is
422 * necessary for st_size to match the symlink target that userspace actually
425 * This requires reading the symlink target from disk if needed, setting up the
427 * symlink target. This makes lstat() more heavyweight than is normally the
442 * To get the symlink target that userspace will see (whether it's the
443 * decrypted target or the no-key encoded target), we can just get it in