diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-05-09 23:18:02 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-05-09 23:18:02 -0700 |
| commit | 9f345da20fc7a0d3766df62d1e6f49062373588d (patch) | |
| tree | 1cc49c9f2f2ec364595ffe56f169b31c5127bebc /weed/filesys/file.go | |
| parent | 942c2cbd7b504813e242ad78837ac3561f9a2130 (diff) | |
| download | seaweedfs-9f345da20fc7a0d3766df62d1e6f49062373588d.tar.xz seaweedfs-9f345da20fc7a0d3766df62d1e6f49062373588d.zip | |
mv filer proto to filer_pb
Diffstat (limited to 'weed/filesys/file.go')
| -rw-r--r-- | weed/filesys/file.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/weed/filesys/file.go b/weed/filesys/file.go index e743509e9..e4c79c055 100644 --- a/weed/filesys/file.go +++ b/weed/filesys/file.go @@ -8,6 +8,7 @@ import ( "github.com/chrislusf/seaweedfs/weed/filer" "bazil.org/fuse/fs" "github.com/chrislusf/seaweedfs/weed/glog" + "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" ) var _ = fs.Node(&File{}) @@ -26,9 +27,9 @@ type File struct { func (file *File) Attr(context context.Context, attr *fuse.Attr) error { attr.Mode = 0444 - return file.wfs.withFilerClient(func(client filer.SeaweedFilerClient) error { + return file.wfs.withFilerClient(func(client filer_pb.SeaweedFilerClient) error { - request := &filer.GetFileAttributesRequest{ + request := &filer_pb.GetFileAttributesRequest{ Name: file.Name, ParentDir: "", //TODO add parent folder FileId: string(file.FileId), @@ -48,9 +49,9 @@ func (file *File) Attr(context context.Context, attr *fuse.Attr) error { func (file *File) ReadAll(ctx context.Context) (content []byte, err error) { - err = file.wfs.withFilerClient(func(client filer.SeaweedFilerClient) error { + err = file.wfs.withFilerClient(func(client filer_pb.SeaweedFilerClient) error { - request := &filer.GetFileContentRequest{ + request := &filer_pb.GetFileContentRequest{ FileId: string(file.FileId), } |
