]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: fix reading past EOF
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 29 Nov 2007 00:21:59 +0000 (16:21 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 29 Nov 2007 17:24:54 +0000 (09:24 -0800)
commitb125ccd29adc7084d3f996260931f7d7fc4ecb68
tree11a3aad0dc7df29906e2b379d13f14ccf26c9b56
parent4cb551ea078fe4a34a0fc563e6a0737d488eaed7
fuse: fix reading past EOF

Currently reading a fuse file will stop at cached i_size and return
EOF, even though the file might have grown since the attributes were
last updated.

So detect if trying to read past EOF, and refresh the attributes
before continuing with the read.

Thanks to mpb for the report.

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>
fs/fuse/dir.c
fs/fuse/file.c
fs/fuse/fuse_i.h