From: Kobi Cohen-A. <kob...@gm...> - 2012-06-29 16:12:48
|
On Fri, Jun 29, 2012 at 7:55 AM, Miklos Szeredi <mi...@sz...> wrote: > Gao feng <ga...@cn...> writes: > > > Hi > > > > Sorry for disturb you. > > I don't know if this mail-list is the right place to ask this question. > > > > I am trying to use fuse to provide some functions like proc filesystem. > > I want to display the file's context dynamically in fuse_operations.read, > > so I don't know what is the value of file's st_size in > fuse_operations.getattr should > > be set. > > Set st_size to zero (just like proc files) and use the '-odirect_io' > option. > Quick question - what exactly happens under the hood when you set size to 0 and use direct_io? Thanks, Kobi > Thanks, > Miklos > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > fuse-devel mailing list > fus...@li... > https://lists.sourceforge.net/lists/listinfo/fuse-devel > |