From: Miklos Szeredi Date: Wed, 30 Apr 2008 07:54:43 +0000 (-0700) Subject: fuse: update file size on short read X-Git-Tag: v2.6.26-rc1~145 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c5c5e51b26413d50a9efae2ca7d6c5c6cd453ac;p=pandora-kernel.git fuse: update file size on short read If the READ request returned a short count, then either - cached size is incorrect - filesystem is buggy, as short reads are only allowed on EOF So assume that the size is wrong and refresh it, so that cached read() doesn't zero fill the missing chunk. Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed