Lines Matching refs:flags
38 int xflags = handler->flags; in xfs_xattr_get()
81 const char *name, const void *value, size_t size, int flags) in xfs_xattr_set() argument
83 int xflags = handler->flags; in xfs_xattr_set()
91 if (flags & XATTR_CREATE) in xfs_xattr_set()
93 if (flags & XATTR_REPLACE) in xfs_xattr_set()
108 .flags = 0, /* no flags implies user namespace */
115 .flags = ATTR_ROOT,
122 .flags = ATTR_SECURE,
138 static unsigned int xfs_xattr_prefix_len(int flags) in xfs_xattr_prefix_len() argument
140 if (flags & XFS_ATTR_SECURE) in xfs_xattr_prefix_len()
142 else if (flags & XFS_ATTR_ROOT) in xfs_xattr_prefix_len()
148 static const char *xfs_xattr_prefix(int flags) in xfs_xattr_prefix() argument
150 if (flags & XFS_ATTR_SECURE) in xfs_xattr_prefix()
152 else if (flags & XFS_ATTR_ROOT) in xfs_xattr_prefix()
161 int flags, in xfs_xattr_put_listent() argument
167 unsigned int prefix_len = xfs_xattr_prefix_len(flags); in xfs_xattr_put_listent()
177 if ((flags & XFS_ATTR_ROOT) && !capable(CAP_SYS_ADMIN)) in xfs_xattr_put_listent()
186 strncpy(offset, xfs_xattr_prefix(flags), prefix_len); in xfs_xattr_put_listent()
198 int flags, in xfs_xattr_put_listent_sizes() argument
204 context->count += xfs_xattr_prefix_len(flags) + namelen + 1; in xfs_xattr_put_listent_sizes()