diff --git a/dir.go b/dir.go index a4c5dae..f98b5a4 100644 --- a/dir.go +++ b/dir.go @@ -26,6 +26,7 @@ import ( "bazil.org/fuse" "bazil.org/fuse/fs" "golang.org/x/net/context" + "log" "os" "path" ) @@ -81,6 +82,8 @@ func (this *versionedDir) createFile(name string, flags int) (*versionedFile, er file := newVersionedFile(node, this) file.handle = handle + log.Printf("createFile: %s => %v", childPath, file.node.info.Size()) + this.files[name] = file return file, nil } diff --git a/file.go b/file.go index bf178f3..ad0724b 100644 --- a/file.go +++ b/file.go @@ -27,6 +27,7 @@ import ( "bazil.org/fuse/fs" "errors" "golang.org/x/net/context" + "log" "os" ) @@ -83,6 +84,8 @@ func (this *versionedFile) Setattr(ctx context.Context, req *fuse.SetattrRequest return err } + log.Printf("Setattr: %s => %v", this.node.path, req) + this.node.info = info this.Attr(&resp.Attr) return nil diff --git a/fs/vfs_2/root/test_file b/fs/vfs_2/root/test_file index 584c647..707782a 100644 --- a/fs/vfs_2/root/test_file +++ b/fs/vfs_2/root/test_file @@ -1 +1,2 @@ Blahblahblah +bobobo