Lines Matching full:symlink

171  * fscrypt_prepare_symlink() - prepare to create a possibly-encrypted symlink
172 * @dir: directory in which the symlink is being created
173 * @target: plaintext symlink target
175 * @max_len: space the filesystem has available to store the symlink target
176 * @disk_link: (out) the on-disk symlink target being prepared
178 * This function computes the size the symlink target will require on-disk,
180 * encrypted symlink may be longer than the original.
182 * Additionally, @disk_link->name is set to @target if the symlink will be
183 * unencrypted, but left NULL if the symlink will be encrypted. For encrypted
186 * filesystems need to know the size of the symlink target before creating the
187 * inode, e.g. to determine whether it will be a "fast" or "slow" symlink.)
189 * Return: 0 on success, -ENAMETOOLONG if the symlink target is too long,
200 * To calculate the size of the encrypted symlink target we need to know in fscrypt_prepare_symlink()
217 * Calculate the size of the encrypted symlink and verify it won't in fscrypt_prepare_symlink()
218 * exceed max_len. Note that for historical reasons, encrypted symlink in fscrypt_prepare_symlink()
221 * longest symlink target we can accept. in fscrypt_prepare_symlink()
248 * symlink inode's encryption key. We don't wait until now to do it, in __fscrypt_encrypt_symlink()
277 /* Cache the plaintext symlink target for later use by get_link() */ in __fscrypt_encrypt_symlink()
295 * fscrypt_get_symlink() - get the target of an encrypted symlink
296 * @inode: the symlink inode
297 * @caddr: the on-disk contents of the symlink
301 * If the symlink's encryption key is available, we decrypt its target.
306 * Return: the presentable symlink target or an ERR_PTR()
327 * Try to set up the symlink's encryption key, but we can continue in fscrypt_get_symlink()
336 * For historical reasons, encrypted symlink targets are prefixed with in fscrypt_get_symlink()
367 * Cache decrypted symlink targets in i_link for later use. Don't cache in fscrypt_get_symlink()
368 * symlink targets encoded without the key, since those become outdated in fscrypt_get_symlink()
386 * @path: the path for the encrypted symlink being queried
387 * @stat: the struct being filled with the symlink's attributes
390 * symlink target (or the no-key encoded symlink target, if the key is
391 * unavailable) rather than the length of the encrypted symlink target. This is
392 * necessary for st_size to match the symlink target that userspace actually
395 * This requires reading the symlink target from disk if needed, setting up the
397 * symlink target. This makes lstat() more heavyweight than is normally the
398 * case. However, decrypted symlink targets will be cached in ->i_link, so
399 * usually the symlink won't have to be read and decrypted again later if/when
412 * To get the symlink target that userspace will see (whether it's the in fscrypt_symlink_getattr()