> 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 Works like a charm Thanks, Tom DISCLAIMER: Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. -- 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