Re: [PATCH v2 2/6] 9pfs: Don't use file descriptors in core code

2025-03-12 Thread Christian Schoenebeck
On Tuesday, March 11, 2025 6:28:05 PM CET Greg Kurz wrote: > 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 m

[PATCH v2 2/6] 9pfs: Don't use file descriptors in core code

2025-03-11 Thread Greg Kurz
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 h