> An entry like this in the FAQ might save time for someone else, I spent
> many hours to find a solution.
> Q. I can not know the file size in advance, how do I force EOF from
> fs_read() to be seen in the application?
> A. Set direct_io in fs_open()
Please feel free to add it to the FAQ.
> Also, are there future plans to allow updating file size from the fuse
> module directly? I can not know the correct file size in fs_getattr().
> I saw a thread (
> ) back in February that explained it. Has something happened with
> respect to that?
Yes, a patch has been merged into linux-2.6.26, that will truncate the
file size on a short read.