Return EINVAL if this is the first dirent encountered with the short buffer, or EJUSTRETURN if something was already copied out. This is needed to pass eof check in vop_readdir_post(): we are not at eof but resid was not advanced. Reported and tested by: pho
Details
Details
- Reviewers
markj - Commits
- rG011efaa5cd24: devfs readdir: handle short buffer same as UFS
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/fs/devfs/devfs_vnops.c | ||
---|---|---|
1503 | Why not just return 0 in this case? At least one dirent was successfully copied. |