diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-06-05 23:37:41 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-06-05 23:37:41 -0700 |
| commit | 299312c8057c5b96f67a8ac825ee026fe01dd8fc (patch) | |
| tree | ec17f807d12adcb3fb4b8b35663258cfbeaeeb3f /weed/filesys/file.go | |
| parent | 95fe745a0cf98975172e5e8fc166647c48f52c80 (diff) | |
| download | seaweedfs-299312c8057c5b96f67a8ac825ee026fe01dd8fc.tar.xz seaweedfs-299312c8057c5b96f67a8ac825ee026fe01dd8fc.zip | |
use separate filer grpc port
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 1fb7d53b1..625fd4f74 100644 --- a/weed/filesys/file.go +++ b/weed/filesys/file.go @@ -26,7 +26,7 @@ type File struct { isOpen bool } -func (file *File) Attr(context context.Context, attr *fuse.Attr) error { +func (file *File) Attr(ctx context.Context, attr *fuse.Attr) error { fullPath := filepath.Join(file.dir.Path, file.Name) @@ -45,7 +45,7 @@ func (file *File) Attr(context context.Context, attr *fuse.Attr) error { ParentDir: file.dir.Path, } - resp, err := client.GetEntryAttributes(context, request) + resp, err := client.GetEntryAttributes(ctx, request) if err != nil { glog.V(0).Infof("file attr read file %v: %v", request, err) return err @@ -129,7 +129,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 + // write the file chunks to the filerGrpcAddress glog.V(3).Infof("%s/%s fsync file %+v", file.dir.Path, file.Name, req) return nil |
