From: Corin <wak...@gm...> - 2009-03-22 20:12:58
|
On 23.03.2009 08:24, Werner Baumann wrote: > Hello, > > when an application issues an open request with flag O_TRUNC set, davfs2 > gets two separate upcalls from fuse: > - FUSE_SETATTR to truncate the file to length zero > - FUSE_OPEN to open the file for writing I'm not a real fuse expert but at least fuse 2.8.0-rc has an option "FUSE_CAP_ATOMIC_O_TRUNC" which you can pass back to fuse in the struct fuse_conn_info->want in fuse_init callback. I guess it tells fuse that your open implementation can handle O_TRUNC and so does only one call to open with this flag set. Corin |