mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-24 18:03:38 +08:00
mount2: dir read opened file
This commit is contained in:
@@ -176,6 +176,10 @@ func (wfs *WFS) doReadDirectory(input *fuse.ReadIn, out *fuse.DirEntryList, isPl
|
||||
isEarlyTerminated = true
|
||||
return false
|
||||
}
|
||||
if fh, found := wfs.fhmap.FindFileHandle(inode); found {
|
||||
glog.V(4).Infof("readdir opened file %s", dirPath.Child(dirEntry.Name))
|
||||
entry = filer.FromPbEntry(string(dirPath), fh.entry)
|
||||
}
|
||||
wfs.outputFilerEntry(entryOut, inode, entry)
|
||||
}
|
||||
dh.lastEntryName = entry.Name()
|
||||
|
Reference in New Issue
Block a user