• Home
  • Raw
  • Download

Lines Matching refs:flags

65 		const void *value, size_t size, int flags)  in xfs_xattr_system_set()  argument
72 if (flags & XATTR_CREATE) in xfs_xattr_system_set()
117 size_t size, int flags, int xflags) in __xfs_xattr_set() argument
125 if (flags & XATTR_CREATE) in __xfs_xattr_set()
127 if (flags & XATTR_REPLACE) in __xfs_xattr_set()
144 const void *value, size_t size, int flags) in xfs_xattr_user_set() argument
146 return __xfs_xattr_set(inode, name, value, size, flags, 0); in xfs_xattr_user_set()
165 const void *value, size_t size, int flags) in xfs_xattr_trusted_set() argument
167 return __xfs_xattr_set(inode, name, value, size, flags, ATTR_ROOT); in xfs_xattr_trusted_set()
186 const void *value, size_t size, int flags) in xfs_xattr_secure_set() argument
188 return __xfs_xattr_set(inode, name, value, size, flags, ATTR_SECURE); in xfs_xattr_secure_set()
206 static unsigned int xfs_xattr_prefix_len(int flags) in xfs_xattr_prefix_len() argument
208 if (flags & XFS_ATTR_SECURE) in xfs_xattr_prefix_len()
210 else if (flags & XFS_ATTR_ROOT) in xfs_xattr_prefix_len()
216 static const char *xfs_xattr_prefix(int flags) in xfs_xattr_prefix() argument
218 if (flags & XFS_ATTR_SECURE) in xfs_xattr_prefix()
220 else if (flags & XFS_ATTR_ROOT) in xfs_xattr_prefix()
227 xfs_xattr_put_listent(struct xfs_attr_list_context *context, int flags, in xfs_xattr_put_listent() argument
230 unsigned int prefix_len = xfs_xattr_prefix_len(flags); in xfs_xattr_put_listent()
240 if ((flags & XFS_ATTR_ROOT) && !capable(CAP_SYS_ADMIN)) in xfs_xattr_put_listent()
249 strncpy(offset, xfs_xattr_prefix(flags), prefix_len); in xfs_xattr_put_listent()
259 xfs_xattr_put_listent_sizes(struct xfs_attr_list_context *context, int flags, in xfs_xattr_put_listent_sizes() argument
262 context->count += xfs_xattr_prefix_len(flags) + namelen + 1; in xfs_xattr_put_listent_sizes()