From 3eb619857b2f2fe896877c903a2c2eb28b632945 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Sat, 28 Jul 2007 17:50:30 -0400 Subject: 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 Signed-off-by: Neil Brown --- support/include/conn.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'support/include') diff --git a/support/include/conn.h b/support/include/conn.h index 11f16ab..f21c10e 100644 --- a/support/include/conn.h +++ b/support/include/conn.h @@ -18,9 +18,6 @@ #include #include -#define MNT_SENDBUFSIZE ((u_int)2048) -#define MNT_RECVBUFSIZE ((u_int)1024) - typedef struct { char **hostname; struct sockaddr_in saddr; @@ -36,8 +33,6 @@ int clnt_ping(struct sockaddr_in *, const u_long, const u_long, const u_int, u_long nfsvers_to_mnt(const u_long); u_long mntvers_to_nfs(const u_long); int get_socket(struct sockaddr_in *, u_int, int, int); -CLIENT * mnt_openclnt(clnt_addr_t *, int *); -void mnt_closeclnt(CLIENT *, int); #endif /* _CONN_H */ -- cgit