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
Show 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,8 +786,10 @@ func (b *rawBridge) setStream(cancel <-chan struct{}, input *fuse.ReadIn, inode
...
@@ -786,8 +786,10 @@ func (b *rawBridge) setStream(cancel <-chan struct{}, input *fuse.ReadIn, inode
}
}
func
(
b
*
rawBridge
)
getStream
(
ctx
context
.
Context
,
inode
*
Inode
)
(
DirStream
,
syscall
.
Errno
)
{
func
(
b
*
rawBridge
)
getStream
(
ctx
context
.
Context
,
inode
*
Inode
)
(
DirStream
,
syscall
.
Errno
)
{
rd
,
ok
:=
inode
.
ops
.
(
Readdirer
)
if
rd
,
ok
:=
inode
.
ops
.
(
Readdirer
);
ok
{
if
!
ok
{
return
rd
.
Readdir
(
ctx
)
}
r
:=
[]
fuse
.
DirEntry
{}
r
:=
[]
fuse
.
DirEntry
{}
for
k
,
ch
:=
range
inode
.
Children
()
{
for
k
,
ch
:=
range
inode
.
Children
()
{
r
=
append
(
r
,
fuse
.
DirEntry
{
Mode
:
ch
.
Mode
(),
r
=
append
(
r
,
fuse
.
DirEntry
{
Mode
:
ch
.
Mode
(),
...
@@ -795,9 +797,6 @@ func (b *rawBridge) getStream(ctx context.Context, inode *Inode) (DirStream, sys
...
@@ -795,9 +797,6 @@ func (b *rawBridge) getStream(ctx context.Context, inode *Inode) (DirStream, sys
Ino
:
ch
.
StableAttr
()
.
Ino
})
Ino
:
ch
.
StableAttr
()
.
Ino
})
}
}
return
NewListDirStream
(
r
),
0
return
NewListDirStream
(
r
),
0
}
return
rd
.
Readdir
(
ctx
)
}
}
func
(
b
*
rawBridge
)
ReadDir
(
cancel
<-
chan
struct
{},
input
*
fuse
.
ReadIn
,
out
*
fuse
.
DirEntryList
)
fuse
.
Status
{
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