refactoring

This commit is contained in:
Chris Lu
2018-05-25 00:57:25 -07:00
parent f8776ad5cd
commit 0a223838bd
4 changed files with 44 additions and 62 deletions

View File

@@ -78,15 +78,11 @@ func (file *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.Op
glog.V(3).Infof("%v file open %+v", fullPath, req)
return &FileHandle{
wfs: file.wfs,
dirPath: file.dir.Path,
name: file.Name,
RequestId: req.Header.ID,
NodeId: req.Header.Node,
Uid: req.Uid,
Gid: req.Gid,
attributes: file.attributes,
Chunks: file.Chunks,
f: file,
RequestId: req.Header.ID,
NodeId: req.Header.Node,
Uid: req.Uid,
Gid: req.Gid,
}, nil
}