]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Map NFS4ERR_SHARE_DENIED into an EACCES error instead of EIO
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 28 May 2012 15:36:28 +0000 (11:36 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 28 May 2012 21:21:48 +0000 (17:21 -0400)
commita425b152be9f368e1530a571698d0179549351c0
treee4df7a2bb6737e6e725c7b333e824a9edf77a98f
parent47c2afb1dfb0a0b11ead80f6a9a88927456e22ac
NFSv4: Map NFS4ERR_SHARE_DENIED into an EACCES error instead of EIO

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>
Cc: stable@vger.kernel.org
fs/nfs/nfs4proc.c