diff options
author | Weston Andros Adamson <dros@netapp.com> | 2013-05-07 11:25:29 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2013-05-07 11:47:35 -0400 |
commit | 342446a4a624d4ee8254af859bb7f1de6d268679 (patch) | |
tree | 75b007d719971b7fb0d789df62e69862cbf4d390 /utils/mount | |
parent | 8fc8022c75956efb14cd2b1fa93210d534310cf9 (diff) | |
download | nfs-utils-342446a4a624d4ee8254af859bb7f1de6d268679.tar.gz nfs-utils-342446a4a624d4ee8254af859bb7f1de6d268679.tar.xz nfs-utils-342446a4a624d4ee8254af859bb7f1de6d268679.zip |
statd: exit if a statd is already running
Moves nfs_probe_statd from mount to nfs support lib to share with statd.
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mount')
-rw-r--r-- | utils/mount/network.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/utils/mount/network.c b/utils/mount/network.c index 4be48cd..e2cdcaf 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -65,11 +65,6 @@ extern int nfs_mount_data_version; extern char *progname; extern int verbose; -static const char *nfs_ns_pgmtbl[] = { - "status", - NULL, -}; - static const char *nfs_mnt_pgmtbl[] = { "mount", "mountd", @@ -761,18 +756,6 @@ int probe_bothports(clnt_addr_t *mnt_server, clnt_addr_t *nfs_server) &nfs_server->pmap); } -static int nfs_probe_statd(void) -{ - struct sockaddr_in addr = { - .sin_family = AF_INET, - .sin_addr.s_addr = htonl(INADDR_LOOPBACK), - }; - rpcprog_t program = nfs_getrpcbyname(NSMPROG, nfs_ns_pgmtbl); - - return nfs_getport_ping(SAFE_SOCKADDR(&addr), sizeof(addr), - program, (rpcvers_t)1, IPPROTO_UDP); -} - /** * start_statd - attempt to start rpc.statd * |