Adding logging
This commit is contained in:
parent
5b55310dd7
commit
5e10b3d8c1
3
dir.go
3
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
|
||||
}
|
||||
|
3
file.go
3
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
|
||||
|
@ -1 +1,2 @@
|
||||
Blahblahblah
|
||||
bobobo
|
||||
|
Loading…
Reference in New Issue
Block a user