|
|
@ -1,9 +1,13 @@ |
|
|
|
package mount |
|
|
|
|
|
|
|
import "github.com/hanwen/go-fuse/v2/fuse" |
|
|
|
import ( |
|
|
|
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb" |
|
|
|
"github.com/hanwen/go-fuse/v2/fuse" |
|
|
|
) |
|
|
|
|
|
|
|
func (wfs *WFS) AcquireHandle(inode uint64, uid, gid uint32) (fileHandle *FileHandle, code fuse.Status) { |
|
|
|
_, _, entry, status := wfs.maybeReadEntry(inode) |
|
|
|
func (wfs *WFS) AcquireHandle(inode uint64, uid, gid uint32) (fileHandle *FileHandle, status fuse.Status) { |
|
|
|
var entry *filer_pb.Entry |
|
|
|
_, _, entry, status = wfs.maybeReadEntry(inode) |
|
|
|
if status == fuse.OK { |
|
|
|
fileHandle = wfs.fhmap.AcquireFileHandle(wfs, inode, entry) |
|
|
|
fileHandle.entry = entry |
|
|
|