mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
mount: fix directory pagination when using midnight commander
This commit is contained in:
parent
a96d4254e9
commit
28b8974a3a
|
@ -132,11 +132,11 @@ func (wfs *WFS) ReadDirPlus(cancel <-chan struct{}, input *fuse.ReadIn, out *fus
|
||||||
func (wfs *WFS) doReadDirectory(input *fuse.ReadIn, out *fuse.DirEntryList, isPlusMode bool) fuse.Status {
|
func (wfs *WFS) doReadDirectory(input *fuse.ReadIn, out *fuse.DirEntryList, isPlusMode bool) fuse.Status {
|
||||||
|
|
||||||
dh := wfs.GetDirectoryHandle(DirectoryHandleId(input.Fh))
|
dh := wfs.GetDirectoryHandle(DirectoryHandleId(input.Fh))
|
||||||
if dh.isFinished {
|
if input.Offset == 0 {
|
||||||
if input.Offset == 0 {
|
dh.isFinished = false
|
||||||
dh.isFinished = false
|
dh.lastEntryName = ""
|
||||||
dh.lastEntryName = ""
|
} else {
|
||||||
} else {
|
if dh.isFinished {
|
||||||
return fuse.OK
|
return fuse.OK
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue