freebsd-dev/sys/fs/nfs
Rick Macklem 6406db24cb Make the NFSv4 client to use a write open for reading if allowed by the server.
An NFSv4 server has the option of allowing a Read to be done using a Write
Open. If this is not allowed, the server will return NFSERR_OPENMODE.
This patch attempts the read with a write open and then disables this
if the server replies NFSERR_OPENMODE.
This change will avoid some uses of the special stateids. This will be
useful for pNFS/DS Reads, since they cannot use special stateids.
It will also be useful for any NFSv4 server that does not support reading
via the special stateids. It has been tested against both types of NFSv4 server.

MFC after:	2 weeks
2017-04-23 21:51:28 +00:00
..
nfs_commonacl.c Cleanup unnecessary semicolons from the kernel. 2016-04-10 23:07:00 +00:00
nfs_commonkrpc.c Don't set ND_NOMOREDATA for a failed Setattr operation (NFSv4). 2017-04-21 23:01:32 +00:00
nfs_commonport.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfs_commonsubs.c Set default uid/gid to nobody/nogroup for NFSv4 mapping. 2017-04-21 20:08:10 +00:00
nfs_var.h Remove unused "cred" argument to ncl_flush(). 2017-04-14 13:25:45 +00:00
nfs.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfscl.h
nfsclstate.h Fix NFSv4.1 client recovery from NFS4ERR_BAD_SESSION errors. 2016-12-23 23:14:53 +00:00
nfsdport.h
nfskpiport.h
nfsm_subs.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsport.h Make the NFSv4 client to use a write open for reading if allowed by the server. 2017-04-23 21:51:28 +00:00
nfsproto.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsrvcache.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsrvstate.h NFS: spelling fixes on comments. 2016-04-29 16:07:25 +00:00
nfsv4_errstr.h
rpcv2.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
xdr_subs.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00