summaryrefslogtreecommitdiff
path: root/include/linux/lockd
diff options
context:
space:
mode:
authorJamie Lokier <jamie@shareable.org>2003-08-17 03:56:06 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-08-17 03:56:06 -0700
commit3fd4a6458b91de92ce50d3b63146663c9200a074 (patch)
treea758198c4fc1d2796b2b92117715b5e5fadd5e3b /include/linux/lockd
parent47da214c1ced0687df0b8b7e504f4cb7c8000112 (diff)
[PATCH] make NFS lockd port numbers assignable at run time
When writing firewall rules, and you are serving NFS, it's really useful to know the port numbers of the various NFS services. nfsd has a standard value; mountd and statd are userspace daemons, and those ports are settable on the command line. The fiddly one is lockd. nlm_udpport and nlm_tcpport can be set on the kernel command line or at module load time, but after that it's a bit awkward (particularly as the lockd module can't be unloaded safely - "rmmod -f lockd" sometimes panics). This patch allows the port numbers and the other lockd parameters to be set through files in /proc/sys/fs/nfs/nlm_*. The port numbers take effect when lockd is next started or restarted. In order to install the sysctl table even when compiled into the kernel, it was necessary to update the initialisation code to the current methods, using module_init() et al. This patch does that and in so doing updates the module/kernel parameters to use the 2.6 module_param() method, as well as making the numeric range changes consistent between the two.
Diffstat (limited to 'include/linux/lockd')
-rw-r--r--include/linux/lockd/lockd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h
index 5bba7632919a..fe6827394579 100644
--- a/include/linux/lockd/lockd.h
+++ b/include/linux/lockd/lockd.h
@@ -26,7 +26,7 @@
/*
* Version string
*/
-#define LOCKD_VERSION "0.4"
+#define LOCKD_VERSION "0.5"
/*
* Default timeout for RPC calls (seconds)