From: Miklos Szeredi Date: Fri, 25 Feb 2011 13:44:58 +0000 (+0100) Subject: fuse: fix truncate after open X-Git-Tag: v2.6.38-rc7~8^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d56addd70c7c0626502569e22cc8fce49ae39f5;p=pandora-kernel.git fuse: fix truncate after open Commit e1181ee6 "vfs: pass struct file to do_truncate on O_TRUNC opens" broke the behavior of open(O_TRUNC|O_RDONLY) in fuse. Fuse assumed that when called from open, a truncate() will be done, not an ftruncate(). Fix by restoring the old behavior, based on the ATTR_OPEN flag. Signed-off-by: Miklos Szeredi --- Reading git-diff-tree failed