From: Trond Myklebust Date: Wed, 18 Apr 2012 20:29:11 +0000 (-0400) Subject: NFSv4: Fix open(O_TRUNC) and ftruncate() error handling X-Git-Tag: v3.4-rc5~29^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=451146be933e26e21277852b5e40c6a52266ef96;p=pandora-kernel.git 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 Signed-off-by: Trond Myklebust Cc: stable@vger.kernel.org --- Reading git-diff-tree failed