opnsense-src/sys/fs/devfs
Konstantin Belousov 011efaa5cd devfs readdir: handle short buffer same as UFS
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 (previous version)
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D51667
2025-08-01 19:48:53 +03:00
..
devfs.h sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
devfs_devs.c sysctl(9): Ease exporting struct sizes; Discourage doing that 2025-05-07 12:13:40 +02:00
devfs_dir.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
devfs_int.h devfs: add integrity asserts for cdevp_list 2023-09-21 11:51:12 -05:00
devfs_rule.c devfs(5): Fix a typo in a source code comment 2024-01-20 17:25:45 +01:00
devfs_vfsops.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
devfs_vnops.c devfs readdir: handle short buffer same as UFS 2025-08-01 19:48:53 +03:00