android_kernel_xiaomi_sdm845/fs/fuse
Miklos Szeredi bcb4be809d 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>
2007-11-29 09:24:54 -08:00
..
control.c [PATCH] mark struct inode_operations const 1 2007-02-12 09:48:46 -08:00
dev.c fuse: no ENOENT from fuse device read 2007-10-17 08:43:04 -07:00
dir.c fuse: fix reading past EOF 2007-11-29 09:24:54 -08:00
file.c fuse: fix reading past EOF 2007-11-29 09:24:54 -08:00
fuse_i.h fuse: fix reading past EOF 2007-11-29 09:24:54 -08:00
inode.c fuse: add blksize field to fuse_attr 2007-10-18 14:37:31 -07:00
Makefile