summaryrefslogtreecommitdiffstats
path: root/fs/nfs/read.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-04-18 22:29:11 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-04-19 19:23:09 +0200
commit451146be933e26e21277852b5e40c6a52266ef96 (patch)
tree207795769b9e1b18952f67fda9db5c7259fb9d63 /fs/nfs/read.c
parentNFSv4: Ensure that we check lock exclusive/shared type against open modes (diff)
downloadlinux-451146be933e26e21277852b5e40c6a52266ef96.tar.xz
linux-451146be933e26e21277852b5e40c6a52266ef96.zip
NFSv4: Fix open(O_TRUNC) and ftruncate() error handling
If the file wasn't opened for writing, then truncate and ftruncate need to report the appropriate errors. Reported-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'fs/nfs/read.c')
0 files changed, 0 insertions, 0 deletions