summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-01-29 23:19:08 +0000
committerrwatson <rwatson@FreeBSD.org>2005-01-29 23:19:08 +0000
commit39c4afac56e06313844b517438198196f5453fab (patch)
tree7fbf485dd975b679e87c45be98392a4d225c0add /sys/nfsclient
parent3548352d6e449f7fa63a0d1026e8ebf0a1b898ae (diff)
downloadFreeBSD-src-39c4afac56e06313844b517438198196f5453fab.zip
FreeBSD-src-39c4afac56e06313844b517438198196f5453fab.tar.gz
Style cleanup for O_DIRECT sysctl comment introduced in nfs_vnops.c:1.242.
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs_vnops.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c
index 7e3fe17..5a90982 100644
--- a/sys/nfsclient/nfs_vnops.c
+++ b/sys/nfsclient/nfs_vnops.c
@@ -216,14 +216,15 @@ SYSCTL_INT(_vfs_nfs, OID_AUTO, nfs_directio_enable, CTLFLAG_RW,
&nfs_directio_enable, 0, "Enable NFS directio");
/*
- * This sysctl allows other processes to mmap a file that has been opened O_DIRECT
- * by a process. In general, having processes mmap the file while Direct IO is in
- * progress can lead to Data Inconsistencies. But, we allow this by default to
- * prevent DoS attacks - to prevent a malicious user from opening up files O_DIRECT
- * preventing other users from mmap'ing these files. "Protected" environments where
- * stricter consistency guarantees are required can disable this knob.
- * The process that opened the file O_DIRECT cannot mmap() the file, because
- * mmap'ed IO on an O_DIRECT open() is not meaningful.
+ * This sysctl allows other processes to mmap a file that has been opened
+ * O_DIRECT by a process. In general, having processes mmap the file while
+ * Direct IO is in progress can lead to Data Inconsistencies. But, we allow
+ * this by default to prevent DoS attacks - to prevent a malicious user from
+ * opening up files O_DIRECT preventing other users from mmap'ing these
+ * files. "Protected" environments where stricter consistency guarantees are
+ * required can disable this knob. The process that opened the file O_DIRECT
+ * cannot mmap() the file, because mmap'ed IO on an O_DIRECT open() is not
+ * meaningful.
*/
int nfs_directio_allow_mmap = 1;
SYSCTL_INT(_vfs_nfs, OID_AUTO, nfs_directio_allow_mmap, CTLFLAG_RW,
OpenPOWER on IntegriCloud