Lines Matching +full:0 +full:- +full:9
2 * 9p xattr callback
10 * the COPYING file in the top-level directory.
15 * Not so fast! You might want to read the 9p developer docs first:
16 * https://wiki.qemu.org/Documentation/9p
20 #include "9p.h"
21 #include "fsdev/file-op-9p.h"
22 #include "9p-xattr.h"
23 #include "9p-util.h"
24 #include "9p-local.h"
32 if (!strncmp(name, xops->name, strlen(xops->name))) { in get_xattr_operations()
42 XattrOperations *xops = get_xattr_operations(ctx->xops, name); in v9fs_get_xattr()
44 return xops->getxattr(ctx, path, name, value, size); in v9fs_get_xattr()
47 return -1; in v9fs_get_xattr()
60 return -1; in pt_listxattr()
75 ssize_t size = 0; in v9fs_list_xattr()
79 ssize_t xattr_len, parsed_len = 0, attr_len; in v9fs_list_xattr()
87 if (dirfd == -1) { in v9fs_list_xattr()
88 return -1; in v9fs_list_xattr()
92 xattr_len = flistxattrat_nofollow(dirfd, name, value, 0); in v9fs_list_xattr()
93 if (xattr_len <= 0) { in v9fs_list_xattr()
104 if (xattr_len < 0) { in v9fs_list_xattr()
106 return -1; in v9fs_list_xattr()
112 xops = get_xattr_operations(ctx->xops, orig_value); in v9fs_list_xattr()
118 size += xops->listxattr(ctx, path, orig_value, value, vsize); in v9fs_list_xattr()
120 size = xops->listxattr(ctx, path, orig_value, value, vsize); in v9fs_list_xattr()
121 if (size < 0) { in v9fs_list_xattr()
125 vsize -= size; in v9fs_list_xattr()
134 size = value - ovalue; in v9fs_list_xattr()
145 XattrOperations *xops = get_xattr_operations(ctx->xops, name); in v9fs_set_xattr()
147 return xops->setxattr(ctx, path, name, value, size, flags); in v9fs_set_xattr()
150 return -1; in v9fs_set_xattr()
157 XattrOperations *xops = get_xattr_operations(ctx->xops, name); in v9fs_remove_xattr()
159 return xops->removexattr(ctx, path, name); in v9fs_remove_xattr()
162 return -1; in v9fs_remove_xattr()
172 ssize_t ret = -1; in local_getxattr_nofollow()
175 if (dirfd == -1) { in local_getxattr_nofollow()
200 ssize_t ret = -1; in local_setxattr_nofollow()
203 if (dirfd == -1) { in local_setxattr_nofollow()
227 ssize_t ret = -1; in local_removexattr_nofollow()
230 if (dirfd == -1) { in local_removexattr_nofollow()
251 return -1; in notsup_getxattr()
258 return -1; in notsup_setxattr()
264 return 0; in notsup_listxattr()
270 return -1; in notsup_removexattr()