Home
last modified time | relevance | path

Searched refs:name_size (Results 1 – 12 of 12) sorted by relevance

/fs/squashfs/
Dxattr.c48 int name_size; in squashfs_listxattr() local
55 name_size = le16_to_cpu(entry.size); in squashfs_listxattr()
62 if (prefix_size + name_size + 1 > rest) { in squashfs_listxattr()
70 &offset, name_size); in squashfs_listxattr()
74 buffer[name_size] = '\0'; in squashfs_listxattr()
75 buffer += name_size + 1; in squashfs_listxattr()
77 rest -= prefix_size + name_size + 1; in squashfs_listxattr()
81 &offset, name_size); in squashfs_listxattr()
125 int type, prefix, name_size; in squashfs_xattr_get() local
132 name_size = le16_to_cpu(entry.size); in squashfs_xattr_get()
[all …]
/fs/ecryptfs/
Dcrypto.c1514 const char *name, size_t name_size) in ecryptfs_copy_filename() argument
1518 (*copied_name) = kmalloc((name_size + 1), GFP_KERNEL); in ecryptfs_copy_filename()
1523 memcpy((void *)(*copied_name), (void *)name, name_size); in ecryptfs_copy_filename()
1524 (*copied_name)[(name_size)] = '\0'; /* Only for convenience in ecryptfs_copy_filename()
1528 (*copied_name_size) = name_size; in ecryptfs_copy_filename()
1892 const char *name, size_t name_size) in ecryptfs_encrypt_and_encode_filename() argument
1909 filename->filename_size = name_size; in ecryptfs_encrypt_and_encode_filename()
1970 name, name_size); in ecryptfs_encrypt_and_encode_filename()
1976 static bool is_dot_dotdot(const char *name, size_t name_size) in is_dot_dotdot() argument
1978 if (name_size == 1 && name[0] == '.') in is_dot_dotdot()
[all …]
Dfile.c62 size_t name_size; in ecryptfs_filldir() local
67 rc = ecryptfs_decode_and_decrypt_filename(&name, &name_size, in ecryptfs_filldir()
88 rc = !dir_emit(buf->caller, name, name_size, ino, d_type); in ecryptfs_filldir()
Decryptfs_kernel.h553 const char *name, size_t name_size);
559 const char *name, size_t name_size);
/fs/ceph/
Dxattr.c35 size_t name_size; /* strlen(name) + 1 (for '\0') */ member
362 .name_size = sizeof (CEPH_XATTR_NAME(_type, _name)), \
372 .name_size = sizeof (CEPH_XATTR_NAME(_type, _name)), \
380 .name_size = sizeof (CEPH_XATTR_NAME2(_type, _name, _field)), \
388 .name_size = sizeof(CEPH_XATTR_NAME(_type, _name)), \
397 .name_size = sizeof("ceph.dir.layout"),
418 .name_size = sizeof("ceph.dir.pin"),
425 .name_size = sizeof("ceph.quota"),
434 .name_size = sizeof("ceph.snap.btime"),
441 .name_size = sizeof("ceph.caps"),
[all …]
/fs/efivarfs/
Dsuper.c108 unsigned long name_size, void *data) in efivarfs_callback() argument
124 memcpy(entry->var.VariableName, name16, name_size); in efivarfs_callback()
/fs/ntfs/
Ddir.c197 int name_size = sizeof(ntfs_name); in ntfs_lookup_inode_by_name() local
214 name_size += len * sizeof(ntfschar); in ntfs_lookup_inode_by_name()
215 name = kmalloc(name_size, GFP_NOFS); in ntfs_lookup_inode_by_name()
457 int name_size = sizeof(ntfs_name); in ntfs_lookup_inode_by_name() local
476 name_size += len * sizeof(ntfschar); in ntfs_lookup_inode_by_name()
477 name = kmalloc(name_size, GFP_NOFS); in ntfs_lookup_inode_by_name()
/fs/befs/
Dbefs_fs_types.h170 fs16 name_size; member
/fs/jfs/
Dxattr.c95 static inline int name_size(struct jfs_ea *ea) in name_size() function
881 size += name_size(ea) + 1; in jfs_listxattr()
/fs/ocfs2/
Dxattr.c1527 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len); in ocfs2_xa_fill_value_buf() local
1532 (name_size + OCFS2_XATTR_ROOT_SIZE)); in ocfs2_xa_fill_value_buf()
1538 name_size); in ocfs2_xa_fill_value_buf()
2047 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len); in ocfs2_xa_install_value_root() local
2052 memcpy(nameval_buf + name_size, &def_xv, OCFS2_XATTR_ROOT_SIZE); in ocfs2_xa_install_value_root()
2065 int name_size = OCFS2_XATTR_SIZE(xi->xi_name_len); in ocfs2_xa_reuse_entry() local
2072 name_size); in ocfs2_xa_reuse_entry()
2077 memset(nameval_buf + name_size, 0, in ocfs2_xa_reuse_entry()
2078 namevalue_size_xe(loc->xl_entry) - name_size); in ocfs2_xa_reuse_entry()
2088 memset(nameval_buf + name_size, 0, in ocfs2_xa_reuse_entry()
[all …]
/fs/ntfs3/
Dfrecord.c1403 u32 name_size = ALIGN(name_len * sizeof(short), 8); in ni_insert_nonresident() local
1405 u32 run_off = name_off + name_size; in ni_insert_nonresident()
1473 u32 name_size = ALIGN(name_len * sizeof(short), 8); in ni_insert_resident() local
1474 u32 asize = SIZEOF_RESIDENT + name_size + ALIGN(data_size, 8); in ni_insert_resident()
1486 attr->res.data_off = cpu_to_le16(SIZEOF_RESIDENT + name_size); in ni_insert_resident()
Dfslog.c2973 u32 name_size = ALIGN(name_len * sizeof(short), 8); in attr_create_nonres_log() local
2975 u32 asize = name_size + in attr_create_nonres_log()
2998 cpu_to_le16(SIZEOF_NONRESIDENT_EX + name_size); in attr_create_nonres_log()
3004 cpu_to_le16(SIZEOF_NONRESIDENT + name_size); in attr_create_nonres_log()