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
Kirill Smelkov
go-fuse
Commits
2f50caab
Commit
2f50caab
authored
Mar 06, 2019
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse: clear EntryOut for READDIRPLUS in base library
parent
a533f0a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
fuse/direntry.go
fuse/direntry.go
+3
-1
fuse/nodefs/dir.go
fuse/nodefs/dir.go
+0
-3
No files found.
fuse/direntry.go
View file @
2f50caab
...
...
@@ -100,7 +100,9 @@ func (l *DirEntryList) AddDirLookupEntry(e DirEntry) *EntryOut {
if
!
ok
{
return
nil
}
return
(
*
EntryOut
)(
unsafe
.
Pointer
(
&
l
.
buf
[
lastStart
]))
result
:=
(
*
EntryOut
)(
unsafe
.
Pointer
(
&
l
.
buf
[
lastStart
]))
*
result
=
EntryOut
{}
return
result
}
func
(
l
*
DirEntryList
)
bytes
()
[]
byte
{
...
...
fuse/nodefs/dir.go
View file @
2f50caab
...
...
@@ -98,9 +98,6 @@ func (d *connectorDir) ReadDirPlus(input *fuse.ReadIn, out *fuse.DirEntryList) (
continue
}
// Clear entryDest before use it, some fields can be corrupted if does not set all fields in rawFS.Lookup
*
entryDest
=
fuse
.
EntryOut
{}
d
.
rawFS
.
Lookup
(
&
input
.
InHeader
,
e
.
Name
,
entryDest
)
}
return
fuse
.
OK
...
...
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