commit | 5c5c5e51b26413d50a9efae2ca7d6c5c6cd453ac | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <mszeredi@suse.cz> | Wed Apr 30 00:54:43 2008 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Wed Apr 30 08:29:50 2008 -0700 |
tree | 4f78209ad05e429a0b89658e495fca9b9262d81d | |
parent | ea9b9907b82a09bd1a708004454f7065de77c5b0 [diff] |
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 <mszeredi@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>