diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-04-18 20:29:11 (GMT) |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-04-19 17:23:09 (GMT) |
commit | 451146be933e26e21277852b5e40c6a52266ef96 (patch) | |
tree | 207795769b9e1b18952f67fda9db5c7259fb9d63 /fs/qnx6 | |
parent | 55725513b5ef9d462aa3e18527658a0362aaae83 (diff) | |
download | linux-451146be933e26e21277852b5e40c6a52266ef96.tar.xz |
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/qnx6')
0 files changed, 0 insertions, 0 deletions