summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2008-11-02 17:00:23 +0000
committertrhodes <trhodes@FreeBSD.org>2008-11-02 17:00:23 +0000
commit3c9c77e15491f6a4261fe0d61119b8baebfcd5d9 (patch)
tree528551e392152f8d9fdc538805ac34ec59e746a9 /sys/nfsserver
parent1bdd099a165cd9460b02dc2817d77d624f104550 (diff)
downloadFreeBSD-src-3c9c77e15491f6a4261fe0d61119b8baebfcd5d9.zip
FreeBSD-src-3c9c77e15491f6a4261fe0d61119b8baebfcd5d9.tar.gz
Document a few sysctls in the NFS client and server code.
Minor style(9) where applicable. Approved by: alfred (slightly older version)
Diffstat (limited to 'sys/nfsserver')
-rw-r--r--sys/nfsserver/nfs_serv.c6
-rw-r--r--sys/nfsserver/nfs_syscalls.c9
2 files changed, 10 insertions, 5 deletions
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c
index 9eb8695..a0a0308 100644
--- a/sys/nfsserver/nfs_serv.c
+++ b/sys/nfsserver/nfs_serv.c
@@ -130,8 +130,10 @@ SYSCTL_NODE(_vfs, OID_AUTO, nfsrv, CTLFLAG_RW, 0, "NFS server");
static int nfs_async;
static int nfs_commit_blks;
static int nfs_commit_miss;
-SYSCTL_INT(_vfs_nfsrv, OID_AUTO, async, CTLFLAG_RW, &nfs_async, 0, "");
-SYSCTL_INT(_vfs_nfsrv, OID_AUTO, commit_blks, CTLFLAG_RW, &nfs_commit_blks, 0, "");
+SYSCTL_INT(_vfs_nfsrv, OID_AUTO, async, CTLFLAG_RW, &nfs_async, 0,
+ "Tell client that writes were synced even though they were not");
+SYSCTL_INT(_vfs_nfsrv, OID_AUTO, commit_blks, CTLFLAG_RW, &nfs_commit_blks, 0,
+ "Number of completed commits");
SYSCTL_INT(_vfs_nfsrv, OID_AUTO, commit_miss, CTLFLAG_RW, &nfs_commit_miss, 0, "");
struct nfsrvstats nfsrvstats;
diff --git a/sys/nfsserver/nfs_syscalls.c b/sys/nfsserver/nfs_syscalls.c
index 23db48c..d5e5e67 100644
--- a/sys/nfsserver/nfs_syscalls.c
+++ b/sys/nfsserver/nfs_syscalls.c
@@ -89,11 +89,14 @@ static int notstarted = 1;
static int nfs_privport = 0;
SYSCTL_INT(_vfs_nfsrv, NFS_NFSPRIVPORT, nfs_privport, CTLFLAG_RW,
- &nfs_privport, 0, "");
+ &nfs_privport, 0,
+ "Only allow clients using a privileged port");
SYSCTL_INT(_vfs_nfsrv, OID_AUTO, gatherdelay, CTLFLAG_RW,
- &nfsrvw_procrastinate, 0, "");
+ &nfsrvw_procrastinate, 0,
+ "Delay value for write gathering");
SYSCTL_INT(_vfs_nfsrv, OID_AUTO, gatherdelay_v3, CTLFLAG_RW,
- &nfsrvw_procrastinate_v3, 0, "");
+ &nfsrvw_procrastinate_v3, 0,
+ "Delay in seconds for NFSv3 write gathering");
static int nfssvc_addsock(struct file *, struct sockaddr *);
static void nfsrv_zapsock(struct nfssvc_sock *slp);
OpenPOWER on IntegriCloud