From: Gao f. <ga...@cn...> - 2012-06-30 13:53:14
|
于 2012年06月29日 22:55, Miklos Szeredi 写道: > 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. Hi Miklos thank you very much, it works! ;) > > Thanks, > Miklos > |