]> git.decadent.org.uk Git - nfs-utils.git/commit
mountd: move export lookup into separate function
authorJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 22 Dec 2009 16:22:58 +0000 (11:22 -0500)
committerSteve Dickson <steved@redhat.com>
Wed, 13 Jan 2010 20:39:14 +0000 (15:39 -0500)
commit48cf3539933f5b0ba9c891b4e4010c0b6651d648
tree9738b5806f21502dfedb4a0c26a4b8a7032f9c0f
parentd778309abd38fcd6a240448606192b9ef3411565
mountd: move export lookup into separate function

Move this main loop to a separate function, to make it a little easier
to follow the logic of the caller.

Also, instead of waiting till we find an export to do the dns
resolution, do it at the start; it will normally be needed anyway, and
this simplifies the control flow.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
utils/mountd/cache.c