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
b6ae9475
Commit
b6ae9475
authored
Jul 24, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partially implemented sendReply.
parent
4a2eeda4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
connection.go
connection.go
+10
-7
No files found.
connection.go
View file @
b6ae9475
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
package
fuse
package
fuse
import
(
import
(
"errors"
"fmt"
"fmt"
"log"
"log"
"path"
"path"
...
@@ -236,13 +235,17 @@ func (c *Connection) ReadOp() (op fuseops.Op, err error) {
...
@@ -236,13 +235,17 @@ func (c *Connection) ReadOp() (op fuseops.Op, err error) {
sendReply
:=
func
(
sendReply
:=
func
(
fuseID
uint64
,
fuseID
uint64
,
m
sg
[]
byte
,
replyM
sg
[]
byte
,
opErr
error
)
(
err
error
)
{
opErr
error
)
(
err
error
)
{
// TODO(jacobsa): Turn this into a method and maybe kill the fuseID
// Clean up state for this op.
// parameter.
c
.
finishOp
(
m
.
Hdr
.
Opcode
,
m
.
Hdr
.
Unique
)
//
// TODO(jacobsa): Don't forget to destroy the message.
// Send the reply to the kernel.
err
=
errors
.
New
(
"TODO"
)
panic
(
"TODO"
)
// Destroy the message, as required by fuseshim.Connection.ReadMessage.
m
.
Destroy
()
return
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