Home
last modified time | relevance | path

Searched refs:iname (Results 1 – 9 of 9) sorted by relevance

/fs/crypto/
Dfname.c98 int fscrypt_fname_encrypt(const struct inode *inode, const struct qstr *iname, in fscrypt_fname_encrypt() argument
113 if (WARN_ON_ONCE(olen < iname->len)) in fscrypt_fname_encrypt()
115 memcpy(out, iname->name, iname->len); in fscrypt_fname_encrypt()
116 memset(out + iname->len, 0, olen - iname->len); in fscrypt_fname_encrypt()
154 const struct fscrypt_str *iname, in fname_decrypt() argument
177 sg_init_one(&src_sg, iname->name, iname->len); in fname_decrypt()
179 skcipher_request_set_crypt(req, &src_sg, &dst_sg, iname->len, &iv); in fname_decrypt()
187 oname->len = strnlen(oname->name, iname->len); in fname_decrypt()
371 const struct fscrypt_str *iname, in fscrypt_fname_disk_to_usr() argument
374 const struct qstr qname = FSTR_TO_QSTR(iname); in fscrypt_fname_disk_to_usr()
[all …]
Dhooks.c272 struct qstr iname = QSTR_INIT(target, len); in __fscrypt_encrypt_symlink() local
295 err = fscrypt_fname_encrypt(inode, &iname, sd->encrypted_path, in __fscrypt_encrypt_symlink()
/fs/ceph/
Dcrypto.c266 struct qstr iname; in ceph_encode_encrypted_dname() local
273 iname.name = d_name->name; in ceph_encode_encrypted_dname()
278 (iname.name[0] == '_')) { in ceph_encode_encrypted_dname()
279 dir = parse_longname(parent, iname.name, &name_len); in ceph_encode_encrypted_dname()
282 iname.name++; /* skip initial '_' */ in ceph_encode_encrypted_dname()
284 iname.len = name_len; in ceph_encode_encrypted_dname()
298 if (!fscrypt_fname_encrypted_size(dir, iname.len, NAME_MAX, &len)) { in ceph_encode_encrypted_dname()
311 ret = fscrypt_fname_encrypt(dir, &iname, cryptbuf, len); in ceph_encode_encrypted_dname()
384 struct fscrypt_str iname; in ceph_fname_to_usr() local
444 iname.name = tname->name; in ceph_fname_to_usr()
[all …]
/fs/ext4/
Dcrypto.c22 int ext4_fname_setup_filename(struct inode *dir, const struct qstr *iname, in ext4_fname_setup_filename() argument
28 err = fscrypt_setup_filename(dir, iname, lookup, &name); in ext4_fname_setup_filename()
35 err = ext4_fname_setup_ci_filename(dir, iname, fname); in ext4_fname_setup_filename()
Dext4.h2732 const struct qstr *iname,
2740 int ext4_fname_setup_filename(struct inode *dir, const struct qstr *iname,
2752 const struct qstr *iname, in ext4_fname_setup_filename() argument
2757 fname->usr_fname = iname; in ext4_fname_setup_filename()
2758 fname->disk_name.name = (unsigned char *) iname->name; in ext4_fname_setup_filename()
2759 fname->disk_name.len = iname->len; in ext4_fname_setup_filename()
2762 err = ext4_fname_setup_ci_filename(dir, iname, fname); in ext4_fname_setup_filename()
Dnamei.c1446 int ext4_fname_setup_ci_filename(struct inode *dir, const struct qstr *iname, in ext4_fname_setup_ci_filename() argument
1464 iname, cf_name->name, in ext4_fname_setup_ci_filename()
1479 return ext4fs_dirhash(dir, iname->name, iname->len, hinfo); in ext4_fname_setup_ci_filename()
/fs/f2fs/
Ddir.c107 int f2fs_setup_filename(struct inode *dir, const struct qstr *iname, in f2fs_setup_filename() argument
113 err = fscrypt_setup_filename(dir, iname, lookup, &crypt_name); in f2fs_setup_filename()
Df2fs.h3545 int f2fs_setup_filename(struct inode *dir, const struct qstr *iname,
/fs/
Dnamei.c127 #define EMBEDDED_NAME_MAX (PATH_MAX - offsetof(struct filename, iname))
148 kname = (char *)result->iname; in getname_flags()
164 const size_t size = offsetof(struct filename, iname[1]); in getname_flags()
233 result->name = (char *)result->iname; in getname_kernel()
235 const size_t size = offsetof(struct filename, iname[1]); in getname_kernel()
270 if (name->name != name->iname) { in putname()