mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 15:50:23 +00:00
At the end of a directory the 9P server returns no entries. v9fs_client_convertdir() then failed with -EIO, so readdir() returned NULL with errno set to EIO at the end of every directory. A program that checks errno after readdir() reports an I/O error. Return -ENOENT when the server returns no entries. The VFS turns that into a clean end of directory. Also check the space for the fixed part of an entry against the bytes left after head, not against the whole buffer. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com> |
||
|---|---|---|
| .. | ||
| client.c | ||
| client.h | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Make.defs | ||
| socket_9p.c | ||
| transport.c | ||
| v9fs.c | ||
| virtio_9p.c | ||