Lines Matching +full:0 +full:- +full:9

7 #include "fsdev/file-op-9p.h"
8 #include "fsdev/9p-iov-marshal.h"
87 P9_QTDIR = 0x80,
88 P9_QTAPPEND = 0x40,
89 P9_QTEXCL = 0x20,
90 P9_QTMOUNT = 0x10,
91 P9_QTAUTH = 0x08,
92 P9_QTTMP = 0x04,
93 P9_QTSYMLINK = 0x02,
94 P9_QTLINK = 0x01,
95 P9_QTFILE = 0x00,
99 V9FS_PROTO_2000U = 0x01,
100 V9FS_PROTO_2000L = 0x02,
104 * Minimum message size supported by this 9pfs server.
118 #define FID_REFERENCED 0x1
119 #define FID_NON_RECLAIMABLE 0x2
122 return g_strdup_printf("%s/%s", ctx->fs_root, path); in rpath()
140 /* According to the specification, 9p messages start with a 7-byte header.
170 P9_FID_NONE = 0,
183 /* 9p2000.L xattr flags (matches Linux values) */
200 /* readdir mutex type used for 9P2000.u protocol variant */
202 /* readdir mutex type used for 9P2000.L protocol variant */
208 if (dir->proto_version == V9FS_PROTO_2000U) { in v9fs_readdir_lock()
209 qemu_co_mutex_lock(&dir->readdir_mutex_u); in v9fs_readdir_lock()
211 qemu_mutex_lock(&dir->readdir_mutex_L); in v9fs_readdir_lock()
217 if (dir->proto_version == V9FS_PROTO_2000U) { in v9fs_readdir_unlock()
218 qemu_co_mutex_unlock(&dir->readdir_mutex_u); in v9fs_readdir_unlock()
220 qemu_mutex_unlock(&dir->readdir_mutex_L); in v9fs_readdir_unlock()
226 dir->proto_version = proto_version; in v9fs_readdir_init()
228 qemu_co_mutex_init(&dir->readdir_mutex_u); in v9fs_readdir_init()
230 qemu_mutex_init(&dir->readdir_mutex_L); in v9fs_readdir_init()
235 * Type for 9p fs drivers' (a.k.a. 9p backends) result of readdir requests,
298 * property of being suffix-free (or prefix-free in case of prefixes)
368 /* 9p2000.L open flags */
389 /* 9p2000.L at flags */
390 #define P9_DOTL_AT_REMOVEDIR 0x200
392 /* 9P2000.L lock type */
393 #define P9_LOCK_TYPE_RDLCK 0
397 #define P9_LOCK_SUCCESS 0
430 if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) { in v9fs_path_write_lock()
431 qemu_co_rwlock_wrlock(&s->rename_lock); in v9fs_path_write_lock()
438 if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) { in v9fs_path_read_lock()
439 qemu_co_rwlock_rdlock(&s->rename_lock); in v9fs_path_read_lock()
446 if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) { in v9fs_path_unlock()
447 qemu_co_rwlock_unlock(&s->rename_lock); in v9fs_path_unlock()
453 return pdu->cancelled; in v9fs_request_cancelled()