Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-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
jacobsa-fuse
Commits
66dad039
Commit
66dad039
authored
May 05, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert
parent
e6656ea8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
fuseops/convert.go
fuseops/convert.go
+7
-7
No files found.
fuseops/convert.go
View file @
66dad039
...
...
@@ -15,7 +15,6 @@
package
fuseops
import
(
"sync"
"time"
"golang.org/x/net/context"
...
...
@@ -23,16 +22,17 @@ import (
"github.com/jacobsa/bazilfuse"
)
// Convert the supplied bazilfuse request struct to an Op, returning nil if it
// is unknown.
//
// This function is an implementation detail of the fuse package, and must not
// be called by anyone else.
//
// Convert the supplied bazilfuse request struct to an Op, returning nil if it
// is unknown. finished will be called with the error supplied to o.Respond
// when the user invokes that method.
func
Convert
(
parent
Ctx
context
.
Context
,
op
Ctx
context
.
Context
,
r
bazilfuse
.
Request
,
logForOp
func
(
int
,
string
,
...
interface
{}),
opsInFlight
*
sync
.
WaitGroup
)
(
o
Op
)
{
finished
func
(
error
)
)
(
o
Op
)
{
var
co
*
commonOp
switch
typed
:=
r
.
(
type
)
{
...
...
@@ -215,7 +215,7 @@ func Convert(
return
}
co
.
init
(
parentCtx
,
o
,
r
,
logForOp
,
opsInFlight
)
co
.
init
(
opCtx
,
o
,
r
,
logForOp
,
finished
)
return
}
...
...
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