9p.h (1a6ed33cc56997479bbe5b48337ff8da44585bd4) 9p.h (f3fe4a2d92bb4ee5b599b8b1eb781b2ae68af36c)
1#ifndef QEMU_9P_H
2#define QEMU_9P_H
3
4#include <dirent.h>
5#include <utime.h>
6#include <sys/resource.h>
7#include "fsdev/file-op-9p.h"
8#include "fsdev/9p-iov-marshal.h"

--- 231 unchanged lines hidden (view full) ---

240
241/* QID path prefix entry, see stat_to_qid */
242typedef struct {
243 dev_t dev;
244 uint16_t ino_prefix;
245 uint16_t qp_prefix;
246} QppEntry;
247
1#ifndef QEMU_9P_H
2#define QEMU_9P_H
3
4#include <dirent.h>
5#include <utime.h>
6#include <sys/resource.h>
7#include "fsdev/file-op-9p.h"
8#include "fsdev/9p-iov-marshal.h"

--- 231 unchanged lines hidden (view full) ---

240
241/* QID path prefix entry, see stat_to_qid */
242typedef struct {
243 dev_t dev;
244 uint16_t ino_prefix;
245 uint16_t qp_prefix;
246} QppEntry;
247
248/* QID path full entry, as above */
249typedef struct {
250 dev_t dev;
251 ino_t ino;
252 uint64_t path;
253} QpfEntry;
254
248struct V9fsState
249{
250 QLIST_HEAD(, V9fsPDU) free_list;
251 QLIST_HEAD(, V9fsPDU) active_list;
252 V9fsFidState *fid_list;
253 FileOperations *ops;
254 FsContext ctx;
255 char *tag;

--- 7 unchanged lines hidden (view full) ---

263 */
264 CoRwlock rename_lock;
265 int32_t root_fid;
266 Error *migration_blocker;
267 V9fsConf fsconf;
268 V9fsQID root_qid;
269 dev_t dev_id;
270 struct qht qpp_table;
255struct V9fsState
256{
257 QLIST_HEAD(, V9fsPDU) free_list;
258 QLIST_HEAD(, V9fsPDU) active_list;
259 V9fsFidState *fid_list;
260 FileOperations *ops;
261 FsContext ctx;
262 char *tag;

--- 7 unchanged lines hidden (view full) ---

270 */
271 CoRwlock rename_lock;
272 int32_t root_fid;
273 Error *migration_blocker;
274 V9fsConf fsconf;
275 V9fsQID root_qid;
276 dev_t dev_id;
277 struct qht qpp_table;
278 struct qht qpf_table;
271 uint16_t qp_prefix_next;
279 uint16_t qp_prefix_next;
280 uint64_t qp_fullpath_next;
272};
273
274/* 9p2000.L open flags */
275#define P9_DOTL_RDONLY 00000000
276#define P9_DOTL_WRONLY 00000001
277#define P9_DOTL_RDWR 00000002
278#define P9_DOTL_NOACCESS 00000003
279#define P9_DOTL_CREATE 00000100

--- 108 unchanged lines hidden ---
281};
282
283/* 9p2000.L open flags */
284#define P9_DOTL_RDONLY 00000000
285#define P9_DOTL_WRONLY 00000001
286#define P9_DOTL_RDWR 00000002
287#define P9_DOTL_NOACCESS 00000003
288#define P9_DOTL_CREATE 00000100

--- 108 unchanged lines hidden ---