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
17598b8b
Commit
17598b8b
authored
Apr 09, 2019
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nodefs: fix style in doReadDir
parent
15ae7b59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
nodefs/bridge.go
nodefs/bridge.go
+9
-10
No files found.
nodefs/bridge.go
View file @
17598b8b
...
...
@@ -786,18 +786,17 @@ func (b *rawBridge) setStream(cancel <-chan struct{}, input *fuse.ReadIn, inode
}
func
(
b
*
rawBridge
)
getStream
(
ctx
context
.
Context
,
inode
*
Inode
)
(
DirStream
,
syscall
.
Errno
)
{
rd
,
ok
:=
inode
.
ops
.
(
Readdirer
)
if
!
ok
{
r
:=
[]
fuse
.
DirEntry
{}
for
k
,
ch
:=
range
inode
.
Children
()
{
r
=
append
(
r
,
fuse
.
DirEntry
{
Mode
:
ch
.
Mode
(),
Name
:
k
,
Ino
:
ch
.
StableAttr
()
.
Ino
})
}
return
NewListDirStream
(
r
),
0
if
rd
,
ok
:=
inode
.
ops
.
(
Readdirer
);
ok
{
return
rd
.
Readdir
(
ctx
)
}
return
rd
.
Readdir
(
ctx
)
r
:=
[]
fuse
.
DirEntry
{}
for
k
,
ch
:=
range
inode
.
Children
()
{
r
=
append
(
r
,
fuse
.
DirEntry
{
Mode
:
ch
.
Mode
(),
Name
:
k
,
Ino
:
ch
.
StableAttr
()
.
Ino
})
}
return
NewListDirStream
(
r
),
0
}
func
(
b
*
rawBridge
)
ReadDir
(
cancel
<-
chan
struct
{},
input
*
fuse
.
ReadIn
,
out
*
fuse
.
DirEntryList
)
fuse
.
Status
{
...
...
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