]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r317382
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 8 May 2017 21:58:29 +0000 (21:58 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 8 May 2017 21:58:29 +0000 (21:58 +0000)
commita167c7596684ef4325f458d3afd6dfcceafed13b
treef79e3ae2acbd3a59f55ff7a00edc1d26cdb9cddb
parent2f8458919a35d50013e62fda94c4a0b3a96e7e24
MFC: r317382
Allow use of a write open stateid for reading in the NFSv4 server.

The NFSv4 RFCs give a server the option of allowing the use of an open
stateid for write access to be used for a Read operation.
This patch enables this by default and adds a sysctl to disable it,
for anyone who does not want this capability.
Allowing this is particularily useful for a pNFS Data Server (DS), since
they are not permitted to allow the use of special stateids.
Discovered during recent testing of the pNFS server under development.

git-svn-id: svn://svn.freebsd.org/base/stable/10@317986 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfsserver/nfs_nfsdstate.c