Page MenuHomeFreeBSD

fdescfs: Set *eofflag in fdesc_readdir()
ClosedPublic

Authored by markj on Jul 15 2025, 12:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 11:11 AM
Unknown Object (File)
Sun, Oct 12, 11:11 AM
Unknown Object (File)
Sun, Oct 12, 11:11 AM
Unknown Object (File)
Sun, Oct 12, 11:11 AM
Unknown Object (File)
Sun, Oct 12, 12:20 AM
Unknown Object (File)
Thu, Oct 9, 11:14 AM
Unknown Object (File)
Sun, Oct 5, 12:18 AM
Unknown Object (File)
Thu, Sep 25, 6:48 PM
Subscribers

Diff Detail

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

Event Timeline

sys/fs/fdescfs/fdesc_vnops.c
564–569

Might be write this without duplication?

while (uio->uio_resid >= UIO_MX) {
     if (i >= fdp->fd_nfiles + 2) {
           if (ap->a_eofflag != NULL)
             *ap->a_eofflag = 1;
          break;
    }
markj marked an inline comment as done.

Deduplicate

This revision is now accepted and ready to land.Jul 15 2025, 12:49 AM
This revision was automatically updated to reflect the committed changes.