]> git.decadent.org.uk Git - nfs-utils.git/commit
text-based mount: Replace nfs_lookup() with getaddrinfo(3)
authorChuck Lever <chuck.lever@oracle.com>
Fri, 12 Feb 2010 18:10:03 +0000 (13:10 -0500)
committerSteve Dickson <steved@redhat.com>
Fri, 12 Feb 2010 18:41:48 +0000 (13:41 -0500)
commit25dd860f13b93109dfd54ef8be0bfd91e4353af1
tree8c33d05f0b40c39401f1499a4fb8ab43ed61ee74
parentdf6c9d1821585c773297fbfffa1dd315b9c84359
text-based mount: Replace nfs_lookup() with getaddrinfo(3)

Originally I thought it would be best to share the DNS query code
between the legacy mount code and the new text-based code, hence
the introduction of nfs_lookup().  However, it now appears we want
the text-based code to do a little more than take the first address
returned by the query.

So, let's invoke getaddrinfo(3) directly in stropts.c, and save
the returned addrinfo struct until the end of processing.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/stropts.c