5 * Copyright IBM, Corp. 2011
10 * This work is licensed under the terms of the GNU GPL, version 2. See
11 * the COPYING file in the top-level directory.
15 #include "fsdev/qemu-fsdev.h"
16 #include "qemu-thread.h"
17 #include "qemu-coroutine.h"
18 #include "virtio-9p-coth.h"
20 int v9fs_co_llistxattr(V9fsState *s, V9fsString *path, void *value, size_t size)
24 v9fs_co_run_in_worker(
26 err = s->ops->llistxattr(&s->ctx, path->data, value, size);
34 int v9fs_co_lgetxattr(V9fsState *s, V9fsString *path,
35 V9fsString *xattr_name,
36 void *value, size_t size)
40 v9fs_co_run_in_worker(
42 err = s->ops->lgetxattr(&s->ctx, path->data,
52 int v9fs_co_lsetxattr(V9fsState *s, V9fsString *path,
53 V9fsString *xattr_name, void *value,
54 size_t size, int flags)
58 v9fs_co_run_in_worker(
60 err = s->ops->lsetxattr(&s->ctx, path->data,
61 xattr_name->data, value,
70 int v9fs_co_lremovexattr(V9fsState *s, V9fsString *path,
71 V9fsString *xattr_name)
75 v9fs_co_run_in_worker(
77 err = s->ops->lremovexattr(&s->ctx, path->data,