Re: [go-nuts] help with bazil.org/fuse

2016-09-07 Thread Dan Kortschak
Thank you so much, Julian. That makes everything clear. On Wed, 2016-09-07 at 19:02 +0100, Julian Phillips wrote: > Not here. The resulting file is 31 bytes, with 19 leading NULs. You > won't see the NULs if you just cat the file though. -- You received this message because you are subscribe

Re: [go-nuts] help with bazil.org/fuse

2016-09-07 Thread Julian Phillips
On 07/09/2016 10:39, Dan Kortschak wrote: On Wed, 2016-09-07 at 09:22 +0100, Julian Phillips wrote: On 07/09/2016 01:08, Dan Kortschak wrote: > On Wed, 2016-09-07 at 09:05 +0930, Dan Kortschak wrote: >> > These are just the flags passed to open. If you want to act on the >> > truncate flag, do i

Re: [go-nuts] help with bazil.org/fuse

2016-09-07 Thread Julian Phillips
On 07/09/2016 01:08, Dan Kortschak wrote: On Wed, 2016-09-07 at 09:05 +0930, Dan Kortschak wrote: > These are just the flags passed to open. If you want to act on the > truncate flag, do it once within open, not on every single subsequent > call to write. > That makes sense. So, we're narrowing

Re: [go-nuts] help with bazil.org/fuse

2016-09-06 Thread Dan Kortschak
On Wed, 2016-09-07 at 09:05 +0930, Dan Kortschak wrote: > > These are just the flags passed to open. If you want to act on the > > truncate flag, do it once within open, not on every single > subsequent > > call to write. > > > That makes sense. So, we're narrowing down on my field of ignorance. >

Re: [go-nuts] help with bazil.org/fuse

2016-09-06 Thread Dan Kortschak
On Tue, 2016-09-06 at 19:54 +0200, Lars Seipel wrote: > These are just the flags passed to open. If you want to act on the > truncate flag, do it once within open, not on every single subsequent > call to write. > That makes sense. So, we're narrowing down on my field of ignorance. Am I right in

Re: [go-nuts] help with bazil.org/fuse

2016-09-06 Thread Lars Seipel
On Mon, Sep 05, 2016 at 12:47:51PM +0930, Dan Kortschak wrote: > func (f *RW) Write(ctx context.Context, req *fuse.WriteRequest, resp > *fuse.WriteResponse) error { > f.mu.Lock() > defer f.mu.Unlock() > > f.mtime = f.fs.now() > > var err error > if req.FileFlags&fus

Re: [go-nuts] help with bazil.org/fuse

2016-09-04 Thread Dan Kortschak
I have found some errors (not properly communicating size changes in the Setattr response), but these do not fix the problem. The Setattr method is now // Setattr satisfies the bazil.org/fuse/fs.NodeSetattrer interface. func (f *RW) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fu