Page MenuHomeFreeBSD

zfs: fixes for readdir
ClosedPublic

Authored by kib on Aug 16 2025, 1:43 AM.
Tags
None
Referenced Files
F140017255: D51930.id160547.diff
Fri, Dec 19, 2:26 AM
Unknown Object (File)
Thu, Nov 27, 6:38 AM
Unknown Object (File)
Tue, Nov 25, 3:43 PM
Unknown Object (File)
Thu, Nov 20, 4:20 PM
Unknown Object (File)
Thu, Nov 20, 2:28 PM
Unknown Object (File)
Nov 10 2025, 12:32 AM
Unknown Object (File)
Oct 30 2025, 5:32 AM
Unknown Object (File)
Oct 29 2025, 6:55 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Aug 16 2025, 1:43 AM
sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c
722

If you are returning some entrie(s) but the
last one failed with ENAMETOOLONG, doesn't
that mean there are still entrie(s) to read?
(In other words, I would have said *eofp should
be 0 for this case. ufs_readdir() doesn't set eofflag
when it returns EINVAL, if I read the code correctly?)

kib marked an inline comment as done.

Do not set *eofp when not at EOF, but copyout failed due to ENAMETOOLONG.

This revision is now accepted and ready to land.Aug 16 2025, 4:48 AM