qemu/fsdev
Greg Kurz f2bb367d2b 9pfs: Don't use file descriptors in core code
v9fs_getattr() currently peeks into V9fsFidOpenState to know if a fid
has a valid file descriptor or directory stream. Even though the fields
are accessible, this is an implementation detail of the local backend
that should not be manipulated directly by the server code.

Abstract that with a new has_valid_file_handle() backend operation.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <20250312152933.383967-3-groug@kaod.org>
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
2025-05-05 11:28:29 +02:00
..
9p-iov-marshal.c fsdep/9p: fix -Werror=maybe-uninitialized false-positive 2024-10-02 16:14:29 +04:00
9p-iov-marshal.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
9p-marshal.c Replace GCC_FMT_ATTR with G_GNUC_PRINTF 2022-03-22 14:40:51 +04:00
9p-marshal.h 9pfs: make V9fsString usable via P9Array API 2021-10-27 14:45:22 +02:00
file-op-9p.h 9pfs: Don't use file descriptors in core code 2025-05-05 11:28:29 +02:00
meson.build 9p: remove 'proxy' filesystem backend driver 2024-10-03 19:33:25 +02:00
p9array.h Don't include headers already included by qemu/osdep.h 2023-02-08 07:28:05 +01:00
qemu-fsdev-dummy.c Include qemu/module.h where needed, drop it from qemu-common.h 2019-06-12 13:18:33 +02:00
qemu-fsdev-opts.c 9p: Added virtfs option 'multidevs=remap|forbid|warn' 2019-10-10 11:36:05 +02:00
qemu-fsdev-throttle.c fsdev: Use ThrottleDirection instread of bool is_write 2023-08-29 10:49:24 +02:00
qemu-fsdev-throttle.h fsdev: Use ThrottleDirection instread of bool is_write 2023-08-29 10:49:24 +02:00
qemu-fsdev.c 9p: remove 'proxy' filesystem backend driver 2024-10-03 19:33:25 +02:00
qemu-fsdev.h 9p: remove 'proxy' filesystem backend driver 2024-10-03 19:33:25 +02:00