W-M-R opened a new pull request, #21353:
URL: https://github.com/apache/nuttx/pull/21353
## Summary
`v9fs_client_convertdir()` returned `-ENAMETOOLONG` as soon as one entry of a
9p readdir reply had a name longer than `NAME_MAX`. The VFS layer has no way
to report that error for a single directory entry, so the whole `readdir()`
failed and the user got no listing at all.
Instead, drop only the offending entry: clear `d_name[0]` and let
`v9fs_vfs_readdir()` filter it out together with `.` and `..`, then continue
with the next entry in the same reply.
## Impact
- Only affects `fs/v9fs`; a directory containing one oversized name is now
still listable.
- No API, Kconfig or ABI change.
## Testing
- [FILL IN: mount a 9p export containing a name longer than NAME_MAX and
confirm `ls` still lists the remaining entries]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]