On Wed, 14 Apr 2010, Deseyn, Tom wrote: > Hello, > > I want to create a fuse file similar to the /proc/version file. > It's stat size is zero, but you can read from it. > > However when I set st_size to zero, the kernel-read returns zero. > When st_size is not zero, the kernel-read returns no more than st_size > bytes. > > Something seems to limit the amount of bytes to st_size. > How can I prevent this from happening to create a which behaves like > /proc/version? Try setting fi->direct_io = 1 in the open method. Thanks, Miklos -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html