Page MenuHomeFreeBSD

zfs: fixes for readdir
ClosedPublic

Authored by kib on Aug 16 2025, 1:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 17, 12:43 PM
Unknown Object (File)
Jun 4 2026, 8:58 AM
Unknown Object (File)
May 30 2026, 10:25 PM
Unknown Object (File)
May 17 2026, 7:19 AM
Unknown Object (File)
May 15 2026, 1:52 AM
Unknown Object (File)
May 14 2026, 9:30 PM
Unknown Object (File)
May 14 2026, 1:25 PM
Unknown Object (File)
May 14 2026, 1:22 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

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

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