Lines Matching defs:options
106 static int default_listxattr(vnode_t vp, uio_t uio, size_t *size, int options,
116 int options, vfs_context_t context)
135 if (!(options & XATTR_NOSECURITY)) {
162 error = VNOP_GETXATTR(vp, name, uio, size, options, context);
163 if (error == ENOTSUP && !(options & XATTR_NODEFAULT)) {
168 error = default_getxattr(vp, name, uio, size, options, context);
178 vn_setxattr(vnode_t vp, const char *name, uio_t uio, int options, vfs_context_t context)
192 if ((options & (XATTR_REPLACE|XATTR_CREATE)) == (XATTR_REPLACE|XATTR_CREATE)) {
198 if (!(options & XATTR_NOSECURITY)) {
215 error = VNOP_SETXATTR(vp, name, uio, options, context);
232 if (options & XATTR_CREATE && (native || dufile)) {
236 if (options & XATTR_REPLACE && !(native || dufile)) {
244 options &= ~(XATTR_CREATE | XATTR_REPLACE);
245 error = VNOP_SETXATTR(vp, name, uio, options, context);
249 if (error == ENOTSUP && !(options & XATTR_NODEFAULT)) {
254 error = default_setxattr(vp, name, uio, options, context);
257 if ((error == 0) && !(options & XATTR_NOSECURITY) &&
269 vn_removexattr(vnode_t vp, const char * name, int options, vfs_context_t context)
286 if (!(options & XATTR_NOSECURITY)) {
296 error = VNOP_REMOVEXATTR(vp, name, options, context);
297 if (error == ENOTSUP && !(options & XATTR_NODEFAULT)) {
302 error = default_removexattr(vp, name, options, context);
311 error = default_removexattr(vp, name, options, context);
317 if ((error == 0) && !(options & XATTR_NOSECURITY) &&
329 vn_listxattr(vnode_t vp, uio_t uio, size_t *size, int options, vfs_context_t context)
343 if (!(options & XATTR_NOSECURITY)) {
355 error = VNOP_LISTXATTR(vp, uio, size, options, context);
356 if (error == ENOTSUP && !(options & XATTR_NODEFAULT)) {
363 error = default_listxattr(vp, uio, size, options, context);
1522 __unused int options, vfs_context_t context)
1643 default_setxattr(vnode_t vp, const char *name, uio_t uio, int options, vfs_context_t context)
1675 * But if either of those options were specified, we need to open the
1692 if ((options & (XATTR_CREATE|XATTR_REPLACE)) == 0 &&
1719 if (options & XATTR_CREATE) {
1725 if (options & XATTR_REPLACE) {
1730 if (options != 0 && bcmp(finfo, emptyfinfo, FINDERINFOSIZE) == 0) {
1741 * The common case where options == 0 was handled above.
1771 if (options & XATTR_CREATE) {
1777 if (options & XATTR_REPLACE) {
1826 if (options & XATTR_CREATE) {
1857 error = default_removexattr(vp, name, options, context);
1862 options &= ~XATTR_REPLACE;
1868 if (options & XATTR_REPLACE) {
2012 default_removexattr(vnode_t vp, const char *name, __unused int options, vfs_context_t context)
2235 default_listxattr(vnode_t vp, uio_t uio, size_t *size, __unused int options, vfs_context_t context)