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
65a00e12
Commit
65a00e12
authored
Dec 29, 2010
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't set Inodes in Readdir.
parent
d8ad3cc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
examplelib/passthrough.go
examplelib/passthrough.go
+2
-2
fuse/types.go
fuse/types.go
+2
-0
No files found.
examplelib/passthrough.go
View file @
65a00e12
...
...
@@ -223,7 +223,7 @@ func (self *PassThroughDir) ReadDir(input *fuse.ReadIn) (*fuse.DirEntryList, fus
list
:=
fuse
.
NewDirEntryList
(
int
(
input
.
Size
))
if
self
.
leftOver
!=
nil
{
success
:=
list
.
AddString
(
self
.
leftOver
.
Name
,
self
.
leftOver
.
Ino
,
self
.
leftOver
.
Mode
)
success
:=
list
.
AddString
(
self
.
leftOver
.
Name
,
fuse
.
FUSE_UNKNOWN_INO
,
self
.
leftOver
.
Mode
)
self
.
exported
++
if
!
success
{
panic
(
"No space for single entry."
)
...
...
@@ -236,7 +236,7 @@ func (self *PassThroughDir) ReadDir(input *fuse.ReadIn) (*fuse.DirEntryList, fus
if
fi
==
nil
{
break
}
if
!
list
.
AddString
(
fi
.
Name
,
f
i
.
Ino
,
fi
.
Mode
)
{
if
!
list
.
AddString
(
fi
.
Name
,
f
use
.
FUSE_UNKNOWN_INO
,
fi
.
Mode
)
{
self
.
leftOver
=
fi
break
}
...
...
fuse/types.go
View file @
65a00e12
...
...
@@ -38,6 +38,8 @@ const (
FUSE_BIG_WRITES
=
(
1
<<
5
)
FUSE_DONT_MASK
=
(
1
<<
6
)
FUSE_UNKNOWN_INO
=
0xffffffff
CUSE_UNRESTRICTED_IOCTL
=
(
1
<<
0
)
FUSE_RELEASE_FLUSH
=
(
1
<<
0
)
...
...
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