summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_vfsops.c
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/nfsclient/nfs_vfsops.c
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/nfsclient/nfs_vfsops.c')
-rw-r--r--sys/nfsclient/nfs_vfsops.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c
index 5d30c6c..d3044ff 100644
--- a/sys/nfsclient/nfs_vfsops.c
+++ b/sys/nfsclient/nfs_vfsops.c
@@ -92,18 +92,22 @@ SYSCTL_STRUCT(_vfs_nfs, NFS_NFSSTATS, nfsstats, CTLFLAG_RW,
&nfsstats, nfsstats, "S,nfsstats");
static int nfs_ip_paranoia = 1;
SYSCTL_INT(_vfs_nfs, OID_AUTO, nfs_ip_paranoia, CTLFLAG_RW,
- &nfs_ip_paranoia, 0, "");
+ &nfs_ip_paranoia, 0,
+ "Disallow accepting replies from IPs which differ from those sent");
#ifdef NFS_DEBUG
int nfs_debug;
-SYSCTL_INT(_vfs_nfs, OID_AUTO, debug, CTLFLAG_RW, &nfs_debug, 0, "");
+SYSCTL_INT(_vfs_nfs, OID_AUTO, debug, CTLFLAG_RW, &nfs_debug, 0,
+ "Toggle debug flag");
#endif
static int nfs_tprintf_initial_delay = NFS_TPRINTF_INITIAL_DELAY;
SYSCTL_INT(_vfs_nfs, NFS_TPRINTF_INITIAL_DELAY,
- downdelayinitial, CTLFLAG_RW, &nfs_tprintf_initial_delay, 0, "");
+ downdelayinitial, CTLFLAG_RW, &nfs_tprintf_initial_delay, 0,
+ "Delay before printing \"nfs server not responding\" messages");
/* how long between console messages "nfs server foo not responding" */
static int nfs_tprintf_delay = NFS_TPRINTF_DELAY;
SYSCTL_INT(_vfs_nfs, NFS_TPRINTF_DELAY,
- downdelayinterval, CTLFLAG_RW, &nfs_tprintf_delay, 0, "");
+ downdelayinterval, CTLFLAG_RW, &nfs_tprintf_delay, 0,
+ "Delay between printing \"nfs server not responding\" messages");
static void nfs_decode_args(struct mount *mp, struct nfsmount *nmp,
struct nfs_args *argp, const char *hostname);
@@ -158,14 +162,15 @@ struct nfsv3_diskless nfsv3_diskless = { { { 0 } } };
int nfs_diskless_valid = 0;
SYSCTL_INT(_vfs_nfs, OID_AUTO, diskless_valid, CTLFLAG_RD,
- &nfs_diskless_valid, 0, "");
+ &nfs_diskless_valid, 0,
+ "Has the diskless struct been filled correctly");
SYSCTL_STRING(_vfs_nfs, OID_AUTO, diskless_rootpath, CTLFLAG_RD,
- nfsv3_diskless.root_hostnam, 0, "");
+ nfsv3_diskless.root_hostnam, 0, "Path to nfs root");
SYSCTL_OPAQUE(_vfs_nfs, OID_AUTO, diskless_rootaddr, CTLFLAG_RD,
- &nfsv3_diskless.root_saddr, sizeof nfsv3_diskless.root_saddr,
- "%Ssockaddr_in", "");
+ &nfsv3_diskless.root_saddr, sizeof nfsv3_diskless.root_saddr,
+ "%Ssockaddr_in", "Diskless root nfs address");
void nfsargs_ntoh(struct nfs_args *);
OpenPOWER on IntegriCloud