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
f93dfe35
Commit
f93dfe35
authored
Jul 27, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the signature for Convert.
parent
585af568
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
19 deletions
+6
-19
conversions.go
conversions.go
+6
-19
No files found.
conversions.go
View file @
f93dfe35
...
...
@@ -17,36 +17,23 @@ package fuse
import
(
"bytes"
"errors"
"log"
"os"
"syscall"
"time"
"unsafe"
"github.com/jacobsa/fuse/fuseops"
"github.com/jacobsa/fuse/internal/buffer"
"github.com/jacobsa/fuse/internal/fusekernel"
"golang.org/x/net/context"
)
//
This function is an implementation detail of the fuse package, and must not
//
be called by anyone else
.
//
Convert a kernel message to an appropriate implementation of fuseops.Op. If
//
the op is unknown, a special unexported type will be used
.
//
// Convert the supplied fuse kernel message to an Op. sendReply will be used to
// send the reply back to the kernel once the user calls o.Respond. If the op
// is unknown, a special unexported type will be used.
//
// The debug logging function and error logger may be nil. The caller is
// responsible for arranging for the message to be destroyed.
func
Convert
(
opCtx
context
.
Context
,
// The caller is responsible for arranging for the message to be destroyed.
func
convertInMessage
(
m
*
buffer
.
InMessage
,
protocol
fusekernel
.
Protocol
,
debugLogForOp
func
(
int
,
string
,
...
interface
{}),
errorLogger
*
log
.
Logger
,
sendReply
replyFunc
)
(
o
Op
,
err
error
)
{
var
co
*
commonOp
var
io
internalOp
protocol
fusekernel
.
Protocol
)
(
o
fuseops
.
Op
,
err
error
)
{
switch
m
.
Header
()
.
Opcode
{
case
fusekernel
.
OpLookup
:
buf
:=
m
.
ConsumeBytes
(
m
.
Len
())
...
...
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