/fs/crypto/ |
D | fname.c | 98 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 …]
|
D | hooks.c | 272 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/ |
D | crypto.c | 266 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/ |
D | crypto.c | 22 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()
|
D | ext4.h | 2732 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()
|
D | namei.c | 1446 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/ |
D | dir.c | 107 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()
|
D | f2fs.h | 3545 int f2fs_setup_filename(struct inode *dir, const struct qstr *iname,
|
/fs/ |
D | namei.c | 127 #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()
|