Re: fuse: read zero size files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux