diff options
author | Greg Kurz <gkurz@linux.vnet.ibm.com> | 2016-06-06 11:52:34 +0200 |
---|---|---|
committer | Greg Kurz <gkurz@linux.vnet.ibm.com> | 2016-06-06 11:52:34 +0200 |
commit | f314ea4e30a1ef87bf8845da952c6dd0bac20b95 (patch) | |
tree | 16ceafb7280c2061bd8de7026a52b60f897bda71 /hw/9pfs/9p.h | |
parent | 8762a46d3637f388fd9d2463dd966814522d5689 (diff) |
9p: introduce the V9fsDir type
If we are to switch back to readdir(), we need a more complex type than
DIR * to be able to serialize concurrent accesses to the directory stream.
This patch introduces a placeholder type and fixes all users.
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Diffstat (limited to 'hw/9pfs/9p.h')
-rw-r--r-- | hw/9pfs/9p.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/9pfs/9p.h b/hw/9pfs/9p.h index 43378943cd..92ee309ef4 100644 --- a/hw/9pfs/9p.h +++ b/hw/9pfs/9p.h @@ -167,13 +167,17 @@ typedef struct V9fsXattr int flags; } V9fsXattr; +typedef struct V9fsDir { + DIR *stream; +} V9fsDir; + /* * Filled by fs driver on open and other * calls. */ union V9fsFidOpenState { int fd; - DIR *dir; + V9fsDir dir; V9fsXattr xattr; /* * private pointer for fs drivers, that |