diff options
Diffstat (limited to 'sys/nfsclient/nfs_vnops.c')
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 17 |
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, |