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
228db4e1
Commit
228db4e1
authored
Oct 09, 2015
by
Jakob Unterwurzacher
Committed by
Han-Wen Nienhuys
Oct 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ReadDirPlus: Do not drop "." and ".."
The entries should exist on any filesystem. Fixes issue #62
parent
0757bc15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fuse/nodefs/dir.go
fuse/nodefs/dir.go
+5
-5
No files found.
fuse/nodefs/dir.go
View file @
228db4e1
...
...
@@ -70,10 +70,6 @@ func (d *connectorDir) ReadDirPlus(input *fuse.ReadIn, out *fuse.DirEntryList) (
continue
}
if
e
.
Name
==
"."
||
e
.
Name
==
".."
{
continue
}
// we have to be sure entry will fit if we try to add
// it, or we'll mess up the lookup counts.
entryDest
,
off
:=
out
.
AddDirLookupEntry
(
e
)
...
...
@@ -82,7 +78,11 @@ func (d *connectorDir) ReadDirPlus(input *fuse.ReadIn, out *fuse.DirEntryList) (
}
entryDest
.
Ino
=
uint64
(
fuse
.
FUSE_UNKNOWN_INO
)
// We ignore the return value
// No need to fill attributes for . and ..
if
e
.
Name
==
"."
||
e
.
Name
==
".."
{
continue
}
code
:=
d
.
rawFS
.
Lookup
(
&
input
.
InHeader
,
e
.
Name
,
entryDest
)
if
!
code
.
Ok
()
{
// if something went wrong, clear out the entry.
...
...
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