diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2007-07-28 17:50:30 -0400 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-07-30 16:12:53 +1000 |
commit | 3eb619857b2f2fe896877c903a2c2eb28b632945 (patch) | |
tree | 60026acb3f9a7413e88e8f0b544f5ead25b7d548 /utils/mount/network.h | |
parent | 7b763f58bb882caf4fbe44d9668237c4d3e77728 (diff) | |
download | nfs-utils-3eb619857b2f2fe896877c903a2c2eb28b632945.tar.gz nfs-utils-3eb619857b2f2fe896877c903a2c2eb28b632945.tar.xz nfs-utils-3eb619857b2f2fe896877c903a2c2eb28b632945.zip |
libnfs.a: move mnt_{open, close}clnt calls to utils/mount/network.c
It turns out that get_socket() accesses a global variable, "verbose," that
is only available in the mount command; yet it's in libnfs.a. This creates
an undocumented API dependency that will bite someone someday. This
mount-specific functionality doesn't really belong in libnfs.a anyway.
The simplest way to resolve this is to move all of the functions in
support/nfs/conn.c into utils/mount. network.c seems like the logical
place to put these. An added benefit is we eventually get to make
get_socket() static.
Let's start with the mnt_{open,close}clnt functions.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'utils/mount/network.h')
-rw-r--r-- | utils/mount/network.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/mount/network.h b/utils/mount/network.h index 83375f0..81a59da 100644 --- a/utils/mount/network.h +++ b/utils/mount/network.h @@ -24,8 +24,14 @@ #include "conn.h" #include "mount.h" +#define MNT_SENDBUFSIZE (2048U) +#define MNT_RECVBUFSIZE (1024U) + int probe_bothports(clnt_addr_t *, clnt_addr_t *); int nfs_gethostbyname(const char *, struct sockaddr_in *); int nfs_call_umount(clnt_addr_t *, dirpath *); int start_statd(void); + +CLIENT *mnt_openclnt(clnt_addr_t *, int *); +void mnt_closeclnt(CLIENT *, int); |