]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Remove rpc.lockd
authorNeil Brown <neilb@suse.de>
Thu, 22 Feb 2007 05:41:24 +0000 (16:41 +1100)
committerNeil Brown <neilb@suse.de>
Thu, 22 Feb 2007 05:41:24 +0000 (16:41 +1100)
This was only needed for kernels 2.2.14 through 2.2.17.

These have long since been superceded, so remove some dead weight.

configure.in
support/include/nfs/nfs.h
support/include/nfslib.h
support/nfs/Makefile.am
support/nfs/lockdsvc.c [deleted file]
utils/Makefile.am
utils/lockd/Makefile.am [deleted file]
utils/lockd/lockd.c [deleted file]
utils/lockd/lockd.man [deleted file]

index 61e5be241473403ad6f98d7fc0d0282d49345533..c0148bd1c87d3fc6330f85770a7f78cec9440026 100644 (file)
@@ -331,7 +331,6 @@ AC_CONFIG_FILES([
        utils/exportfs/Makefile
        utils/gssd/Makefile
        utils/idmapd/Makefile
-       utils/lockd/Makefile
        utils/mount/Makefile
        utils/mountd/Makefile
        utils/nfsd/Makefile
index f0286b2ca07704a49c84502004333aefd8fceea5..fc26f4ec10a58500343455c59f5cbaaf27fde24b 100644 (file)
@@ -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))) 
index c0850291222fa64a45273cf83600aa05ad943bdd..1372635b9a6fcf792e805ffbe1027670f1f2d689 100644 (file)
@@ -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);
 
index af8181da9e28d9c9dbf91ca6b533b39a0f3f8ab1..6006df63c5d7f36964a3f3daad01fb86b70b686f 100644 (file)
@@ -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 (file)
index ca1e862..0000000
+++ /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);
-}
index 723657c7c69463d1fd047f9fd319a40064232e16..c1bc0599ecef4ac1a9fa9261002e393ecb6cdf9c 100644 (file)
@@ -20,7 +20,6 @@ endif
 
 SUBDIRS = \
        exportfs \
-       lockd \
        mountd \
        nfsd \
        nfsstat \
diff --git a/utils/lockd/Makefile.am b/utils/lockd/Makefile.am
deleted file mode 100644 (file)
index e1546a4..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-man8_MANS      = lockd.man
-EXTRA_DIST     = $(man8_MANS)
-
-RPCPREFIX      = rpc.
-KPREFIX                = @kprefix@
-sbin_PROGRAMS  = lockd
-lockd_SOURCES = lockd.c
-lockd_LDADD = ../../support/export/libexport.a \
-             ../../support/nfs/libnfs.a \
-             ../../support/misc/libmisc.a
-
-MAINTAINERCLEANFILES = Makefile.in
-
-#######################################################################
-# The following allows the current practice of having
-# daemons renamed during the install to include RPCPREFIX
-# and the KPREFIX
-# This could all be done much easier with program_transform_name
-# ( program_transform_name = s/^/$(RPCPREFIX)$(KPREFIX)/ )
-# but that also renames the man pages, which the current
-# practice does not do.
-install-exec-hook:
-       (cd $(DESTDIR)$(sbindir) && \
-         for p in $(sbin_PROGRAMS); do \
-           mv -f $$p$(EXEEXT) $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\
-         done)
-uninstall-hook:
-       (cd $(DESTDIR)$(sbindir) && \
-         for p in $(sbin_PROGRAMS); do \
-           rm -f $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\
-         done)
-
-
-# XXX This makes some assumptions about what automake does.
-# XXX But there is no install-man-hook or install-man-local.
-install-man: install-man8 install-man-links
-uninstall-man: uninstall-man8 uninstall-man-links
-
-install-man-links:
-       (cd $(DESTDIR)$(man8dir) && \
-         for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
-           inst=`echo $$m | sed -e 's/man$$/8/'`; \
-           rm -f $(RPCPREFIX)$$inst ; \
-           $(LN_S) $$inst $(RPCPREFIX)$$inst ; \
-         done)
-
-uninstall-man-links:
-       (cd $(DESTDIR)$(man8dir) && \
-         for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
-           inst=`echo $$m | sed -e 's/man$$/8/'`; \
-           rm -f $(RPCPREFIX)$$inst ; \
-         done)
-
diff --git a/utils/lockd/lockd.c b/utils/lockd/lockd.c
deleted file mode 100644 (file)
index 71b31b0..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * lockd
- *
- * This is the user level part of lockd. This is very primitive, because
- * all the work is now done in the kernel module.
- *
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <nfslib.h>
-
-
-
-static void    usage(const char *);
-
-int
-main(int argc, char **argv)
-{
-       int error;
-
-       if (argc > 1)
-               usage (argv [0]);
-       
-       if (chdir(NFS_STATEDIR)) {
-               fprintf(stderr, "%s: chdir(%s) failed: %s\n",
-                       argv [0], NFS_STATEDIR, strerror(errno));
-               exit(1);
-       }
-
-       if ((error = lockdsvc()) < 0) {
-               if (errno == EINVAL)
-                       /* Ignore EINVAL since kernel may start
-                          lockd automatically. */
-                       error = 0;
-               else
-                       perror("lockdsvc");
-       }
-
-       return (error != 0);
-}
-
-static void
-usage(const char *prog)
-{
-       fprintf(stderr, "usage:\n%s\n", prog);
-       exit(2);
-}
diff --git a/utils/lockd/lockd.man b/utils/lockd/lockd.man
deleted file mode 100644 (file)
index aa76019..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-.\"
-.\" lockd(8)
-.\"
-.\" Copyright (C) 2000 Chip Salzenberg <chip@debian.org>
-.\"
-.TH rpc.lockd 8 "25 Feb 2000"
-.SH NAME
-rpc.lockd \- start kernel lockd process
-.SH SYNOPSIS
-.B "rpc.lockd
-.SH DESCRIPTION
-The
-.B rpc.lockd
-program starts the NFS lock manager (NLM) on kernels that don't start
-it automatically.  However, since most kernels \fIdo\fR start it
-automatically,
-.BR rpc.lockd .
-is usually not required.  Even so, running it anyway is harmless.
-.SH SEE ALSO
-.BR rpc.statd (8),
-.BR  rpc.nfsd (8)
-.SH AUTHORS
-.br
-H.J. Lu <hjl@valinux.com>