Skip to content

9pfs: introduce P9Array

Christian Schoenebeck qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/59pfs: introduce P9Arrayfsdev/p9array.h+154 -02 replies
2/5fsdev/p9array.h: check scalar type in P9ARRAY_NEW()fsdev/p9array.h+6 -00 replies
3/59pfs: make V9fsString usable via P9Array APIfsdev/9p-marshal.c fsdev/9p-marshal.h+5 -00 replies
4/59pfs: make V9fsPath usable via P9Array APIfsdev/file-op-9p.h hw/9pfs/9p.c+4 -00 replies
5/59pfs: use P9Array in v9fs_walk()hw/9pfs/9p.c+5 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] 9pfs: introduce P9Array

This is simply a refactored follow-up of the following previous series ("introduce QArray"):
https://lists.gnu.org/archive/html/qemu-devel/2021-08/msg04530.html

There was no consensus about a project wide "QArray" shared utility code, nor does there seem to be a need for a project wide code, so let's just refactor QArray -> P9Array and make it a 9P local type for now:
https://lists.gnu.org/archive/html/qemu-devel/2021-09/msg07743.html

Changes QArray v3 -> P9Array v1:

* Moved header file, i.e. include/qemu/qarray.h -> fsdev/p9array.h

* Refactored *QArray* -> *P9Array*

* Refactored P9ARRAY_CREATE -> P9ARRAY_NEW and

    p9array_create_* -> p9array_new_* accordingly

* Refactored DECLARE_P9ARRAY_TYPE -> P9ARRAY_DECLARE_TYPE

* Refactored DEFINE_P9ARRAY_TYPE -> P9ARRAY_DEFINE_TYPE

[No behaviour changes whatsoever]

Christian Schoenebeck (5):
9pfs: introduce P9Array
fsdev/p9array.h: check scalar type in P9ARRAY_NEW() 9pfs: make V9fsString usable via P9Array API 9pfs: make V9fsPath usable via P9Array API 9pfs: use P9Array in v9fs_walk()

 fsdev/9p-marshal.c |   2 +
 fsdev/9p-marshal.h |   3 +
 fsdev/file-op-9p.h |   2 +
 fsdev/p9array.h    | 160 +++++++++++++++++++++++++++++++++++++++++++++
 hw/9pfs/9p.c       |  19 ++----
 5 files changed, 174 insertions(+), 12 deletions(-)
 create mode 100644 fsdev/p9array.h
Signature · 1 line
2.20.1