Right now, mountd does a getnameinfo call for every request, even ones where it doesn't use them. A FreeNAS user noticed this was resulting in large delays (due to a resolv.conf error); in looking at the code, there's no reason for it to call getnameinfo in most cases.
Details
Details
- Reviewers
mav imp - Commits
- rS341641: Reduce number of DNS queries in mountd.
Export files via NFS, and ensure mounting on client works.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
Generally looks good to me, except one cosmetic issue -- the line seems to go beyond 80 columns, so it would be nice to re-wrap it earlier.