diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-05-23 20:55:24 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-05-23 20:55:24 -0700 |
| commit | 849b6ec28d96540d530cf18c9f6fe3a08c1f5755 (patch) | |
| tree | d6a1bcff988c859a7fb822200bf3396ccd520683 /weed/filesys/file.go | |
| parent | d84b80b79510359fb1404bd13f91ad64173e8a8b (diff) | |
| download | seaweedfs-849b6ec28d96540d530cf18c9f6fe3a08c1f5755.tar.xz seaweedfs-849b6ec28d96540d530cf18c9f6fe3a08c1f5755.zip | |
seems editing already working
Need to handle multiple chunks read.
Need to cache local file changes.
Diffstat (limited to 'weed/filesys/file.go')
| -rw-r--r-- | weed/filesys/file.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/filesys/file.go b/weed/filesys/file.go index 55edaf515..d7f0d6bc0 100644 --- a/weed/filesys/file.go +++ b/weed/filesys/file.go @@ -77,7 +77,7 @@ func (file *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.Op fullPath := filepath.Join(file.dir.Path, file.Name) - glog.V(3).Infof("file open %v %+v", fullPath, req) + glog.V(3).Infof("%v file open %+v", fullPath, req) return &FileHandle{ wfs: file.wfs, @@ -96,7 +96,7 @@ func (file *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.Op func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error { fullPath := filepath.Join(file.dir.Path, file.Name) - glog.V(3).Infof("file setattr %v %+v", fullPath, req) + glog.V(3).Infof("%v file setattr %+v", fullPath, req) if req.Valid.Size() { if req.Size == 0 { @@ -128,7 +128,7 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f func (file *File) Fsync(ctx context.Context, req *fuse.FsyncRequest) error { // fsync works at OS level // write the file chunks to the filer - glog.V(3).Infof("fsync file %+v\n", req) + glog.V(3).Infof("%s/%s fsync file %+v", file.dir.Path, file.Name, req) return nil } |
