[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 7/8] 9pfs: make V9fsPath usable via P9Array API
From: |
Christian Schoenebeck |
Subject: |
[PULL 7/8] 9pfs: make V9fsPath usable via P9Array API |
Date: |
Wed, 27 Oct 2021 15:18:33 +0200 |
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id:
<79a0ddf8375f6c95f0565ef155a1bf1e9387664f.1633097129.git.qemu_oss@crudebyte.com>
---
fsdev/file-op-9p.h | 2 ++
hw/9pfs/9p.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/fsdev/file-op-9p.h b/fsdev/file-op-9p.h
index 42f677cf38..8fd89f0447 100644
--- a/fsdev/file-op-9p.h
+++ b/fsdev/file-op-9p.h
@@ -18,6 +18,7 @@
#include <utime.h>
#include <sys/vfs.h>
#include "qemu-fsdev-throttle.h"
+#include "p9array.h"
#define SM_LOCAL_MODE_BITS 0600
#define SM_LOCAL_DIR_MODE_BITS 0700
@@ -105,6 +106,7 @@ struct V9fsPath {
uint16_t size;
char *data;
};
+P9ARRAY_DECLARE_TYPE(V9fsPath);
typedef union V9fsFidOpenState V9fsFidOpenState;
diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c
index e874899ef5..15bb16f466 100644
--- a/hw/9pfs/9p.c
+++ b/hw/9pfs/9p.c
@@ -50,6 +50,8 @@ enum {
Oappend = 0x80,
};
+P9ARRAY_DEFINE_TYPE(V9fsPath, v9fs_path_free);
+
static ssize_t pdu_marshal(V9fsPDU *pdu, size_t offset, const char *fmt, ...)
{
ssize_t ret;
--
2.20.1
- [PULL 0/8] 9p queue 2021-10-27, Christian Schoenebeck, 2021/10/27
- [PULL 1/8] 9pfs: fix wrong I/O block size in Rgetattr, Christian Schoenebeck, 2021/10/27
- [PULL 2/8] 9pfs: deduplicate iounit code, Christian Schoenebeck, 2021/10/27
- [PULL 3/8] 9pfs: simplify blksize_to_iounit(), Christian Schoenebeck, 2021/10/27
- [PULL 4/8] 9pfs: introduce P9Array, Christian Schoenebeck, 2021/10/27
- [PULL 5/8] fsdev/p9array.h: check scalar type in P9ARRAY_NEW(), Christian Schoenebeck, 2021/10/27
- [PULL 7/8] 9pfs: make V9fsPath usable via P9Array API,
Christian Schoenebeck <=
- [PULL 6/8] 9pfs: make V9fsString usable via P9Array API, Christian Schoenebeck, 2021/10/27
- [PULL 8/8] 9pfs: use P9Array in v9fs_walk(), Christian Schoenebeck, 2021/10/27
- Re: [PULL 0/8] 9p queue 2021-10-27, Christian Schoenebeck, 2021/10/27
- Re: [PULL 0/8] 9p queue 2021-10-27, Philippe Mathieu-Daudé, 2021/10/27
- Re: [PULL 0/8] 9p queue 2021-10-27, Christian Schoenebeck, 2021/10/27
- Re: [PULL 0/8] 9p queue 2021-10-27, Philippe Mathieu-Daudé, 2021/10/27
- Re: [PULL 0/8] 9p queue 2021-10-27, Christian Schoenebeck, 2021/10/27
- Re: [PULL 0/8] 9p queue 2021-10-27, Philippe Mathieu-Daudé, 2021/10/27
- Re: [PULL 0/8] 9p queue 2021-10-27, Richard Henderson, 2021/10/27
- Re: [PULL 0/8] 9p queue 2021-10-27, Christian Schoenebeck, 2021/10/28