Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Levin Zimmermann
go-fuse
Commits
b02df882
Commit
b02df882
authored
Mar 07, 2019
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nodefs: fix overflow handling in READDIRPLUS
parent
d5a1bca6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
nodefs/bridge.go
nodefs/bridge.go
+0
-6
nodefs/simple_test.go
nodefs/simple_test.go
+1
-1
No files found.
nodefs/bridge.go
View file @
b02df882
...
...
@@ -596,12 +596,6 @@ func (b *rawBridge) ReadDirPlus(input *fuse.ReadIn, out *fuse.DirEntryList) fuse
return
code
}
if
f
.
hasOverflow
{
// always succeeds.
out
.
AddDirEntry
(
f
.
overflow
)
f
.
hasOverflow
=
false
}
for
f
.
dirStream
.
HasNext
()
{
var
e
fuse
.
DirEntry
var
code
fuse
.
Status
...
...
nodefs/simple_test.go
View file @
b02df882
...
...
@@ -502,7 +502,7 @@ func TestReadDir(t *testing.T) {
// XXX what about ".." and "." ?
want
:=
map
[
string
]
bool
{}
for
i
:=
0
;
i
<
2
;
i
++
{
for
i
:=
0
;
i
<
110
;
i
++
{
// 40 bytes of filename, so 110 entries overflows a
// 4096 page.
nm
:=
fmt
.
Sprintf
(
"file%036x"
,
i
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment