Searched refs:name (Results 1 - 25 of 536) sorted by relevance

1234567891011>>

/fs/btrfs/
H A Dhash.h23 static inline u64 btrfs_name_hash(const char *name, int len) argument
25 return crc32c((u32)~1, name, len);
H A Dxattr.c32 ssize_t __btrfs_getxattr(struct inode *inode, const char *name, argument
46 /* lookup the xattr by name */
47 di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(inode), name,
48 strlen(name), 0);
72 * |struct btrfs_dir_item|name|data|
73 * where name is the xattr name, so security.foo, and data is the
89 struct inode *inode, const char *name,
95 size_t name_len = strlen(name);
106 di = btrfs_lookup_xattr(trans, root, path, btrfs_ino(inode), name,
88 do_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags) argument
181 __btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags) argument
316 btrfs_is_valid_xattr(const char *name) argument
325 btrfs_getxattr(struct dentry *dentry, const char *name, void *buffer, size_t size) argument
341 btrfs_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags) argument
371 btrfs_removexattr(struct dentry *dentry, const char *name) argument
402 char *name; local
[all...]
H A Dxattr.h28 extern ssize_t __btrfs_getxattr(struct inode *inode, const char *name,
31 struct inode *inode, const char *name,
33 extern ssize_t btrfs_getxattr(struct dentry *dentry, const char *name,
35 extern int btrfs_setxattr(struct dentry *dentry, const char *name,
37 extern int btrfs_removexattr(struct dentry *dentry, const char *name);
/fs/yaffs2/
H A Dyaffs_nameval.h21 int nval_del(char *xb, int xb_size, const YCHAR * name);
22 int nval_set(char *xb, int xb_size, const YCHAR * name, const char *buf,
24 int nval_get(const char *xb, int xb_size, const YCHAR * name, char *buf,
/fs/hpfs/
H A Ddentry.c22 if (l == 1) if (qstr->name[0]=='.') goto x;
23 if (l == 2) if (qstr->name[0]=='.' || qstr->name[1]=='.') goto x;
24 hpfs_adjust_length(qstr->name, &l);
25 /*if (hpfs_chk_name(qstr->name,&l))*/
32 hash = partial_name_hash(hpfs_upcase(hpfs_sb(dentry->d_sb)->sb_cp_table,qstr->name[i]), hash);
41 unsigned int len, const char *str, const struct qstr *name)
44 unsigned bl = name->len;
47 /*hpfs_adjust_length(b->name, &bl);*/
50 * 'str' is the nane of an already existing dentry, so the name
38 hpfs_compare_dentry(const struct dentry *parent, const struct inode *pinode, const struct dentry *dentry, const struct inode *inode, unsigned int len, const char *str, const struct qstr *name) argument
[all...]
H A Dname.c2 * linux/fs/hpfs/name.c
41 int hpfs_chk_name(const unsigned char *name, unsigned *len) argument
45 hpfs_adjust_length(name, len);
47 for (i = 0; i < *len; i++) if (not_allowed_char(name[i])) return -EINVAL;
48 if (*len == 1) if (name[0] == '.') return -EINVAL;
49 if (*len == 2) if (name[0] == '.' && name[1] == '.') return -EINVAL;
59 printk("HPFS: Long name flag mismatch - name ");
66 printk("HPFS: can't allocate memory for name conversio
91 hpfs_is_name_long(const unsigned char *name, unsigned len) argument
105 hpfs_adjust_length(const unsigned char *name, unsigned *len) argument
[all...]
/fs/gfs2/
H A Ddir.h46 static inline void gfs2_str2qstr(struct qstr *name, const char *fname) argument
48 name->name = fname;
49 name->len = strlen(fname);
50 name->hash = gfs2_disk_hash(name->name, name->len);
54 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) argument
58 dent->de_hash = cpu_to_be32(name
[all...]
/fs/9p/
H A Dxattr_user.c22 static int v9fs_xattr_user_get(struct dentry *dentry, const char *name, argument
30 if (name == NULL)
33 if (strcmp(name, "") == 0)
36 name_len = strlen(name);
41 memcpy(full_name+prefix_len, name, name_len);
49 static int v9fs_xattr_user_set(struct dentry *dentry, const char *name, argument
57 if (name == NULL)
60 if (strcmp(name, "") == 0)
63 name_len = strlen(name);
68 memcpy(full_name + prefix_len, name, name_le
[all...]
/fs/reiserfs/
H A Dxattr_security.c12 security_get(struct dentry *dentry, const char *name, void *buffer, size_t size, argument
15 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX))
21 return reiserfs_xattr_get(dentry->d_inode, name, buffer, size);
25 security_set(struct dentry *dentry, const char *name, const void *buffer, argument
28 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX))
34 return reiserfs_xattr_set(dentry->d_inode, name, buffer, size, flags);
38 const char *name, size_t namelen, int handler_flags)
46 memcpy(list, name, namelen);
63 sec->name = NULL;
69 error = security_old_inode_init_security(inode, dir, qstr, &sec->name,
37 security_list(struct dentry *dentry, char *list, size_t list_len, const char *name, size_t namelen, int handler_flags) argument
[all...]
H A Dxattr_trusted.c11 trusted_get(struct dentry *dentry, const char *name, void *buffer, size_t size, argument
14 if (strlen(name) < sizeof(XATTR_TRUSTED_PREFIX))
20 return reiserfs_xattr_get(dentry->d_inode, name, buffer, size);
24 trusted_set(struct dentry *dentry, const char *name, const void *buffer, argument
27 if (strlen(name) < sizeof(XATTR_TRUSTED_PREFIX))
33 return reiserfs_xattr_set(dentry->d_inode, name, buffer, size, flags);
37 const char *name, size_t name_len, int handler_flags)
45 memcpy(list, name, name_len);
36 trusted_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int handler_flags) argument
H A Dxattr_user.c10 user_get(struct dentry *dentry, const char *name, void *buffer, size_t size, argument
14 if (strlen(name) < sizeof(XATTR_USER_PREFIX))
18 return reiserfs_xattr_get(dentry->d_inode, name, buffer, size);
22 user_set(struct dentry *dentry, const char *name, const void *buffer, argument
25 if (strlen(name) < sizeof(XATTR_USER_PREFIX))
30 return reiserfs_xattr_set(dentry->d_inode, name, buffer, size, flags);
34 const char *name, size_t name_len, int handler_flags)
41 memcpy(list, name, name_len);
33 user_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int handler_flags) argument
/fs/ext2/
H A Dxattr_trusted.c16 const char *name, size_t name_len, int type)
26 memcpy(list+prefix_len, name, name_len);
33 ext2_xattr_trusted_get(struct dentry *dentry, const char *name, argument
36 if (strcmp(name, "") == 0)
38 return ext2_xattr_get(dentry->d_inode, EXT2_XATTR_INDEX_TRUSTED, name,
43 ext2_xattr_trusted_set(struct dentry *dentry, const char *name, argument
46 if (strcmp(name, "") == 0)
48 return ext2_xattr_set(dentry->d_inode, EXT2_XATTR_INDEX_TRUSTED, name,
15 ext2_xattr_trusted_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) argument
H A Dxattr_user.c15 const char *name, size_t name_len, int type)
25 memcpy(list+prefix_len, name, name_len);
32 ext2_xattr_user_get(struct dentry *dentry, const char *name, argument
35 if (strcmp(name, "") == 0)
40 name, buffer, size);
44 ext2_xattr_user_set(struct dentry *dentry, const char *name, argument
47 if (strcmp(name, "") == 0)
53 name, value, size, flags);
14 ext2_xattr_user_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) argument
H A Dxattr_security.c15 const char *name, size_t name_len, int type)
22 memcpy(list+prefix_len, name, name_len);
29 ext2_xattr_security_get(struct dentry *dentry, const char *name, argument
32 if (strcmp(name, "") == 0)
34 return ext2_xattr_get(dentry->d_inode, EXT2_XATTR_INDEX_SECURITY, name,
39 ext2_xattr_security_set(struct dentry *dentry, const char *name, argument
42 if (strcmp(name, "") == 0)
44 return ext2_xattr_set(dentry->d_inode, EXT2_XATTR_INDEX_SECURITY, name,
54 for (xattr = xattr_array; xattr->name != NULL; xattr++) {
56 xattr->name, xatt
14 ext2_xattr_security_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) argument
[all...]
/fs/ext3/
H A Dxattr_trusted.c17 const char *name, size_t name_len, int type)
27 memcpy(list+prefix_len, name, name_len);
34 ext3_xattr_trusted_get(struct dentry *dentry, const char *name, argument
37 if (strcmp(name, "") == 0)
40 name, buffer, size);
44 ext3_xattr_trusted_set(struct dentry *dentry, const char *name, argument
47 if (strcmp(name, "") == 0)
49 return ext3_xattr_set(dentry->d_inode, EXT3_XATTR_INDEX_TRUSTED, name,
16 ext3_xattr_trusted_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) argument
H A Dxattr_user.c16 const char *name, size_t name_len, int type)
26 memcpy(list+prefix_len, name, name_len);
33 ext3_xattr_user_get(struct dentry *dentry, const char *name, void *buffer, argument
36 if (strcmp(name, "") == 0)
41 name, buffer, size);
45 ext3_xattr_user_set(struct dentry *dentry, const char *name, argument
48 if (strcmp(name, "") == 0)
53 name, value, size, flags);
15 ext3_xattr_user_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) argument
H A Dxattr_security.c16 const char *name, size_t name_len, int type)
24 memcpy(list+prefix_len, name, name_len);
31 ext3_xattr_security_get(struct dentry *dentry, const char *name, argument
34 if (strcmp(name, "") == 0)
37 name, buffer, size);
41 ext3_xattr_security_set(struct dentry *dentry, const char *name, argument
44 if (strcmp(name, "") == 0)
47 name, value, size, flags);
57 for (xattr = xattr_array; xattr->name != NULL; xattr++) {
60 xattr->name, xatt
15 ext3_xattr_security_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) argument
[all...]
/fs/ext4/
H A Dxattr_trusted.c17 const char *name, size_t name_len, int type)
27 memcpy(list+prefix_len, name, name_len);
34 ext4_xattr_trusted_get(struct dentry *dentry, const char *name, void *buffer, argument
37 if (strcmp(name, "") == 0)
40 name, buffer, size);
44 ext4_xattr_trusted_set(struct dentry *dentry, const char *name, argument
47 if (strcmp(name, "") == 0)
50 name, value, size, flags);
16 ext4_xattr_trusted_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) argument
H A Dxattr_user.c16 const char *name, size_t name_len, int type)
26 memcpy(list+prefix_len, name, name_len);
33 ext4_xattr_user_get(struct dentry *dentry, const char *name, argument
36 if (strcmp(name, "") == 0)
41 name, buffer, size);
45 ext4_xattr_user_set(struct dentry *dentry, const char *name, argument
48 if (strcmp(name, "") == 0)
53 name, value, size, flags);
15 ext4_xattr_user_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) argument
H A Dxattr_security.c16 const char *name, size_t name_len, int type)
24 memcpy(list+prefix_len, name, name_len);
31 ext4_xattr_security_get(struct dentry *dentry, const char *name, argument
34 if (strcmp(name, "") == 0)
37 name, buffer, size);
41 ext4_xattr_security_set(struct dentry *dentry, const char *name, argument
44 if (strcmp(name, "") == 0)
47 name, value, size, flags);
58 for (xattr = xattr_array; xattr->name != NULL; xattr++) {
61 xattr->name, xatt
15 ext4_xattr_security_list(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) argument
[all...]
/fs/jffs2/
H A Dxattr_trusted.c19 static int jffs2_trusted_getxattr(struct dentry *dentry, const char *name, argument
22 if (!strcmp(name, ""))
25 name, buffer, size);
28 static int jffs2_trusted_setxattr(struct dentry *dentry, const char *name, argument
31 if (!strcmp(name, ""))
34 name, buffer, size, flags);
38 size_t list_size, const char *name, size_t name_len, int type)
44 strcpy(list + XATTR_TRUSTED_PREFIX_LEN, name);
37 jffs2_trusted_listxattr(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) argument
H A Dxattr_user.c19 static int jffs2_user_getxattr(struct dentry *dentry, const char *name, argument
22 if (!strcmp(name, ""))
25 name, buffer, size);
28 static int jffs2_user_setxattr(struct dentry *dentry, const char *name, argument
31 if (!strcmp(name, ""))
34 name, buffer, size, flags);
38 size_t list_size, const char *name, size_t name_len, int type)
44 strcpy(list + XATTR_USER_PREFIX_LEN, name);
37 jffs2_user_listxattr(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) argument
H A Dsecurity.c32 for (xattr = xattr_array; xattr->name != NULL; xattr++) {
34 xattr->name, xattr->value,
51 static int jffs2_security_getxattr(struct dentry *dentry, const char *name, argument
54 if (!strcmp(name, ""))
58 name, buffer, size);
61 static int jffs2_security_setxattr(struct dentry *dentry, const char *name, argument
64 if (!strcmp(name, ""))
68 name, buffer, size, flags);
72 size_t list_size, const char *name, size_t name_len, int type)
78 strcpy(list + XATTR_SECURITY_PREFIX_LEN, name);
71 jffs2_security_listxattr(struct dentry *dentry, char *list, size_t list_size, const char *name, size_t name_len, int type) argument
[all...]
/fs/cifs/
H A Ddns_resolve.c36 * dns_resolve_server_name_to_ip - Resolve UNC server name to ip address.
50 char *name; local
66 /* Search for server name delimiter */
71 cFYI(1, "%s: probably server name is whole unc: %s",
90 name = kmalloc(len + 1, GFP_KERNEL);
91 if (!name)
93 memcpy(name, hostname, len);
94 name[len] = 0;
95 cFYI(1, "%s: unc is IP, skipping dns upcall: %s", __func__, name);
96 *ip_addr = name;
[all...]
/fs/
H A Dfilesystems.c46 static struct file_system_type **find_filesystem(const char *name, unsigned len) argument
50 if (strlen((*p)->name) == len &&
51 strncmp((*p)->name, name, len) == 0)
74 BUG_ON(strchr(fs->name, '.'));
78 p = find_filesystem(fs->name, strlen(fs->name));
127 char * name; local
130 name = getname(__name);
131 err = PTR_ERR(name);
257 __get_fs_type(const char *name, int len) argument
269 get_fs_type(const char *name) argument
[all...]

Completed in 339 milliseconds

1234567891011>>