diff options
author | Neil Brown <neilb@suse.de> | 2007-02-22 16:41:24 +1100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-02-22 16:41:24 +1100 |
commit | fa2058d9dc483dbed373ddc04a898ddd7f135f6f (patch) | |
tree | 6736f3ef16289892d8122d20210991c834da84c8 /support | |
parent | c0bacbb67aa75f0e88640fae0dfa82702f40d3ef (diff) | |
download | nfs-utils-fa2058d9dc483dbed373ddc04a898ddd7f135f6f.tar.gz nfs-utils-fa2058d9dc483dbed373ddc04a898ddd7f135f6f.tar.xz nfs-utils-fa2058d9dc483dbed373ddc04a898ddd7f135f6f.zip |
Remove rpc.lockd
This was only needed for kernels 2.2.14 through 2.2.17.
These have long since been superceded, so remove some dead weight.
Diffstat (limited to 'support')
-rw-r--r-- | support/include/nfs/nfs.h | 4 | ||||
-rw-r--r-- | support/include/nfslib.h | 3 | ||||
-rw-r--r-- | support/nfs/Makefile.am | 2 | ||||
-rw-r--r-- | support/nfs/lockdsvc.c | 22 |
4 files changed, 1 insertions, 30 deletions
diff --git a/support/include/nfs/nfs.h b/support/include/nfs/nfs.h index f0286b2..fc26f4e 100644 --- a/support/include/nfs/nfs.h +++ b/support/include/nfs/nfs.h @@ -39,10 +39,6 @@ struct nfs_fh_old { #define NFSCTL_GETFD 7 /* get an fh by path (used by mountd) */ #define NFSCTL_GETFS 8 /* get an fh by path with max size (used by mountd) */ -/* Above this is for lockd. */ -#define NFSCTL_LOCKD 0x10000 -#define LOCKDCTL_SVC NFSCTL_LOCKD - #define NFSCTL_VERUNSET(_cltbits, _v) ((_cltbits) &= ~(1 << ((_v) - 1))) #define NFSCTL_UDPUNSET(_cltbits) ((_cltbits) &= ~(1 << (17 - 1))) #define NFSCTL_TCPUNSET(_cltbits) ((_cltbits) &= ~(1 << (18 - 1))) diff --git a/support/include/nfslib.h b/support/include/nfslib.h index c085029..1372635 100644 --- a/support/include/nfslib.h +++ b/support/include/nfslib.h @@ -144,9 +144,6 @@ int check_new_cache(void); void closeall(int min); -/* lockd. */ -int lockdsvc(); - int svctcp_socket (u_long __number, int __reuse); int svcudp_socket (u_long __number, int __reuse); diff --git a/support/nfs/Makefile.am b/support/nfs/Makefile.am index af8181d..6006df6 100644 --- a/support/nfs/Makefile.am +++ b/support/nfs/Makefile.am @@ -3,7 +3,7 @@ noinst_LIBRARIES = libnfs.a libnfs_a_SOURCES = exports.c rmtab.c xio.c rpcmisc.c rpcdispatch.c \ xlog.c xcommon.c wildmat.c nfssvc.c nfsclient.c \ - nfsexport.c getfh.c nfsctl.c lockdsvc.c \ + nfsexport.c getfh.c nfsctl.c \ svc_socket.c cacheio.c closeall.c conn.c fstab.c nfs_mntent.c MAINTAINERCLEANFILES = Makefile.in diff --git a/support/nfs/lockdsvc.c b/support/nfs/lockdsvc.c deleted file mode 100644 index ca1e862..0000000 --- a/support/nfs/lockdsvc.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * support/nfs/nfssvc.c - * - * Run an NFS daemon. - * - * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de> - */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include <nfslib.h> - -int -lockdsvc() -{ - struct nfsctl_arg arg; - - arg.ca_version = NFSCTL_VERSION; - return nfsctl(LOCKDCTL_SVC, &arg, NULL); -} |