diff options
author | Jeff Layton <jlayton@redhat.com> | 2009-08-14 13:30:04 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-08-14 13:30:04 -0400 |
commit | 094b26031a376050d8610d055eb01c7949ad6547 (patch) | |
tree | 90673db324c93714a41e686fe5da7f2de2888cf9 /utils/nfsd/nfssvc.h | |
parent | 4c477855cd025a18ac9decaf1bc9002aaae75689 (diff) | |
download | nfs-utils-094b26031a376050d8610d055eb01c7949ad6547.tar.gz nfs-utils-094b26031a376050d8610d055eb01c7949ad6547.tar.xz nfs-utils-094b26031a376050d8610d055eb01c7949ad6547.zip |
nfs-utils: convert nfssvc_setfds to use getaddrinfo
Convert nfssvc_setfds to use getaddrinfo. Change the args that it takes
and fix up nfssvc function to pass in the proper args. The things that
nfssvc has to do to call the new nfssvc_setfds is a little cumbersome
for now, but that will eventually be cleaned up in a later patch.
nfs-utils: break up the nfssvc interface
Currently, the only public interface to the routines in nfssvc.c is
nfssvc(). This means that we do an awful lot of work after closing
stderr that could be done while it's still available.
Add prototypes to the header so that more functions in nfssvc.c can be
called individually, and change the nfsd program to call those routines
individually.
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/nfsd/nfssvc.h')
-rw-r--r-- | utils/nfsd/nfssvc.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/nfsd/nfssvc.h b/utils/nfsd/nfssvc.h index fe522ad..0c69bd6 100644 --- a/utils/nfsd/nfssvc.h +++ b/utils/nfsd/nfssvc.h @@ -20,5 +20,8 @@ * */ -int nfssvc(int port, int nrservs, unsigned int versbits, int minorvers4, - unsigned int portbits, char *haddr); +int nfssvc_inuse(void); +int nfssvc_set_sockets(const int family, const unsigned int protobits, + const char *host, const char *port); +void nfssvc_setvers(unsigned int ctlbits, int minorvers4); +int nfssvc_threads(unsigned short port, int nrservs); |