Home
last modified time | relevance | path

Searched refs:prefix_len (Results 1 – 15 of 15) sorted by relevance

/fs/9p/
Dxattr_user.c28 size_t prefix_len = XATTR_USER_PREFIX_LEN; in v9fs_xattr_user_get() local
37 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); in v9fs_xattr_user_get()
40 memcpy(full_name, XATTR_USER_PREFIX, prefix_len); in v9fs_xattr_user_get()
41 memcpy(full_name+prefix_len, name, name_len); in v9fs_xattr_user_get()
42 full_name[prefix_len + name_len] = '\0'; in v9fs_xattr_user_get()
55 size_t prefix_len = XATTR_USER_PREFIX_LEN; in v9fs_xattr_user_set() local
64 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); in v9fs_xattr_user_set()
67 memcpy(full_name, XATTR_USER_PREFIX, prefix_len); in v9fs_xattr_user_set()
68 memcpy(full_name + prefix_len, name, name_len); in v9fs_xattr_user_set()
69 full_name[prefix_len + name_len] = '\0'; in v9fs_xattr_user_set()
Dxattr_trusted.c28 size_t prefix_len = XATTR_TRUSTED_PREFIX_LEN; in v9fs_xattr_trusted_get() local
37 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); in v9fs_xattr_trusted_get()
40 memcpy(full_name, XATTR_TRUSTED_PREFIX, prefix_len); in v9fs_xattr_trusted_get()
41 memcpy(full_name+prefix_len, name, name_len); in v9fs_xattr_trusted_get()
42 full_name[prefix_len + name_len] = '\0'; in v9fs_xattr_trusted_get()
55 size_t prefix_len = XATTR_TRUSTED_PREFIX_LEN; in v9fs_xattr_trusted_set() local
64 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); in v9fs_xattr_trusted_set()
67 memcpy(full_name, XATTR_TRUSTED_PREFIX, prefix_len); in v9fs_xattr_trusted_set()
68 memcpy(full_name + prefix_len, name, name_len); in v9fs_xattr_trusted_set()
69 full_name[prefix_len + name_len] = '\0'; in v9fs_xattr_trusted_set()
Dxattr_security.c28 size_t prefix_len = XATTR_SECURITY_PREFIX_LEN; in v9fs_xattr_security_get() local
37 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); in v9fs_xattr_security_get()
40 memcpy(full_name, XATTR_SECURITY_PREFIX, prefix_len); in v9fs_xattr_security_get()
41 memcpy(full_name+prefix_len, name, name_len); in v9fs_xattr_security_get()
42 full_name[prefix_len + name_len] = '\0'; in v9fs_xattr_security_get()
55 size_t prefix_len = XATTR_SECURITY_PREFIX_LEN; in v9fs_xattr_security_set() local
64 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); in v9fs_xattr_security_set()
67 memcpy(full_name, XATTR_SECURITY_PREFIX, prefix_len); in v9fs_xattr_security_set()
68 memcpy(full_name + prefix_len, name, name_len); in v9fs_xattr_security_set()
69 full_name[prefix_len + name_len] = '\0'; in v9fs_xattr_security_set()
/fs/ext2/
Dxattr_trusted.c15 const int prefix_len = XATTR_TRUSTED_PREFIX_LEN; in ext2_xattr_trusted_list() local
16 const size_t total_len = prefix_len + name_len + 1; in ext2_xattr_trusted_list()
22 memcpy(list, XATTR_TRUSTED_PREFIX, prefix_len); in ext2_xattr_trusted_list()
23 memcpy(list+prefix_len, name, name_len); in ext2_xattr_trusted_list()
24 list[prefix_len + name_len] = '\0'; in ext2_xattr_trusted_list()
Dxattr_user.c17 const size_t prefix_len = XATTR_USER_PREFIX_LEN; in ext2_xattr_user_list() local
18 const size_t total_len = prefix_len + name_len + 1; in ext2_xattr_user_list()
24 memcpy(list, XATTR_USER_PREFIX, prefix_len); in ext2_xattr_user_list()
25 memcpy(list+prefix_len, name, name_len); in ext2_xattr_user_list()
26 list[prefix_len + name_len] = '\0'; in ext2_xattr_user_list()
Dxattr_security.c14 const int prefix_len = XATTR_SECURITY_PREFIX_LEN; in ext2_xattr_security_list() local
15 const size_t total_len = prefix_len + name_len + 1; in ext2_xattr_security_list()
18 memcpy(list, XATTR_SECURITY_PREFIX, prefix_len); in ext2_xattr_security_list()
19 memcpy(list+prefix_len, name, name_len); in ext2_xattr_security_list()
20 list[prefix_len + name_len] = '\0'; in ext2_xattr_security_list()
/fs/ext3/
Dxattr_trusted.c15 const size_t prefix_len = XATTR_TRUSTED_PREFIX_LEN; in ext3_xattr_trusted_list() local
16 const size_t total_len = prefix_len + name_len + 1; in ext3_xattr_trusted_list()
22 memcpy(list, XATTR_TRUSTED_PREFIX, prefix_len); in ext3_xattr_trusted_list()
23 memcpy(list+prefix_len, name, name_len); in ext3_xattr_trusted_list()
24 list[prefix_len + name_len] = '\0'; in ext3_xattr_trusted_list()
Dxattr_user.c15 const size_t prefix_len = XATTR_USER_PREFIX_LEN; in ext3_xattr_user_list() local
16 const size_t total_len = prefix_len + name_len + 1; in ext3_xattr_user_list()
22 memcpy(list, XATTR_USER_PREFIX, prefix_len); in ext3_xattr_user_list()
23 memcpy(list+prefix_len, name, name_len); in ext3_xattr_user_list()
24 list[prefix_len + name_len] = '\0'; in ext3_xattr_user_list()
Dxattr_security.c14 const size_t prefix_len = XATTR_SECURITY_PREFIX_LEN; in ext3_xattr_security_list() local
15 const size_t total_len = prefix_len + name_len + 1; in ext3_xattr_security_list()
19 memcpy(list, XATTR_SECURITY_PREFIX, prefix_len); in ext3_xattr_security_list()
20 memcpy(list+prefix_len, name, name_len); in ext3_xattr_security_list()
21 list[prefix_len + name_len] = '\0'; in ext3_xattr_security_list()
/fs/ext4/
Dxattr_trusted.c19 const size_t prefix_len = XATTR_TRUSTED_PREFIX_LEN; in ext4_xattr_trusted_list() local
20 const size_t total_len = prefix_len + name_len + 1; in ext4_xattr_trusted_list()
26 memcpy(list, XATTR_TRUSTED_PREFIX, prefix_len); in ext4_xattr_trusted_list()
27 memcpy(list+prefix_len, name, name_len); in ext4_xattr_trusted_list()
28 list[prefix_len + name_len] = '\0'; in ext4_xattr_trusted_list()
Dxattr_user.c18 const size_t prefix_len = XATTR_USER_PREFIX_LEN; in ext4_xattr_user_list() local
19 const size_t total_len = prefix_len + name_len + 1; in ext4_xattr_user_list()
25 memcpy(list, XATTR_USER_PREFIX, prefix_len); in ext4_xattr_user_list()
26 memcpy(list+prefix_len, name, name_len); in ext4_xattr_user_list()
27 list[prefix_len + name_len] = '\0'; in ext4_xattr_user_list()
Dxattr_security.c18 const size_t prefix_len = sizeof(XATTR_SECURITY_PREFIX)-1; in ext4_xattr_security_list() local
19 const size_t total_len = prefix_len + name_len + 1; in ext4_xattr_security_list()
23 memcpy(list, XATTR_SECURITY_PREFIX, prefix_len); in ext4_xattr_security_list()
24 memcpy(list+prefix_len, name, name_len); in ext4_xattr_security_list()
25 list[prefix_len + name_len] = '\0'; in ext4_xattr_security_list()
/fs/xfs/
Dxfs_xattr.c140 unsigned int prefix_len = xfs_xattr_prefix_len(flags); in xfs_xattr_put_listent() local
153 arraytop = context->count + prefix_len + namelen + 1; in xfs_xattr_put_listent()
159 strncpy(offset, xfs_xattr_prefix(flags), prefix_len); in xfs_xattr_put_listent()
160 offset += prefix_len; in xfs_xattr_put_listent()
164 context->count += prefix_len + namelen + 1; in xfs_xattr_put_listent()
/fs/f2fs/
Dxattr.c32 int total_len, prefix_len = 0; in f2fs_xattr_generic_list() local
40 prefix_len = XATTR_USER_PREFIX_LEN; in f2fs_xattr_generic_list()
46 prefix_len = XATTR_TRUSTED_PREFIX_LEN; in f2fs_xattr_generic_list()
50 prefix_len = XATTR_SECURITY_PREFIX_LEN; in f2fs_xattr_generic_list()
56 total_len = prefix_len + len + 1; in f2fs_xattr_generic_list()
58 memcpy(list, prefix, prefix_len); in f2fs_xattr_generic_list()
59 memcpy(list + prefix_len, name, len); in f2fs_xattr_generic_list()
60 list[prefix_len + len] = '\0'; in f2fs_xattr_generic_list()
/fs/ocfs2/
Dxattr.c898 int prefix_len = strlen(prefix); in ocfs2_xattr_list_entry() local
899 int total_len = prefix_len + name_len + 1; in ocfs2_xattr_list_entry()
910 memcpy(p, prefix, prefix_len); in ocfs2_xattr_list_entry()
911 memcpy(p + prefix_len, name, name_len); in ocfs2_xattr_list_entry()
912 p[prefix_len + name_len] = '\0'; in ocfs2_xattr_list_entry()
7242 const size_t prefix_len = XATTR_SECURITY_PREFIX_LEN; in ocfs2_xattr_security_list() local
7243 const size_t total_len = prefix_len + name_len + 1; in ocfs2_xattr_security_list()
7246 memcpy(list, XATTR_SECURITY_PREFIX, prefix_len); in ocfs2_xattr_security_list()
7247 memcpy(list + prefix_len, name, name_len); in ocfs2_xattr_security_list()
7248 list[prefix_len + name_len] = '\0'; in ocfs2_xattr_security_list()
[all …]