NFSv4: Map NFS4ERR_SHARE_DENIED into an EACCES error instead of EIO
commit6ab5902511d32b50b4b973320979ba99693aa5be
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 28 May 2012 15:36:28 +0000 (28 11:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jun 2012 15:32:59 +0000 (10 00:32 +0900)
treed82505ebfa2a512e74211dd7ef5a96a5169dac41
parent6ec1d66c8d22bc76ebf37860a87ca399790beb5d
NFSv4: Map NFS4ERR_SHARE_DENIED into an EACCES error instead of EIO

commit fb13bfa7e1bcfdcfdece47c24b62f1a1cad957e9 upstream.

If a file OPEN is denied due to a share lock, the resulting
NFS4ERR_SHARE_DENIED is currently mapped to the default EIO.
This patch adds a more appropriate mapping, and brings Linux
into line with what Solaris 10 does.

See https://bugzilla.kernel.org/show_bug.cgi?id=43286

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c