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
6450a1cb
Commit
6450a1cb
authored
Aug 06, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added special cases for ReadFile and WriteFile.
parent
5c05a7c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
debug.go
debug.go
+12
-0
No files found.
debug.go
View file @
6450a1cb
...
...
@@ -18,6 +18,8 @@ import (
"fmt"
"reflect"
"strings"
"github.com/jacobsa/fuse/fuseops"
)
// Decide on the name of the given op.
...
...
@@ -47,6 +49,16 @@ func describeRequest(op interface{}) (s string) {
switch
typed
:=
op
.
(
type
)
{
case
*
interruptOp
:
addComponent
(
"fuseid 0x%08x"
,
typed
.
FuseID
)
case
*
fuseops
.
ReadFileOp
:
addComponent
(
"handle %d"
,
typed
.
Handle
)
addComponent
(
"offset %d"
,
typed
.
Offset
)
addComponent
(
"%d bytes"
,
len
(
typed
.
Dst
))
case
*
fuseops
.
WriteFileOp
:
addComponent
(
"handle %d"
,
typed
.
Handle
)
addComponent
(
"offset %d"
,
typed
.
Offset
)
addComponent
(
"%d bytes"
,
len
(
typed
.
Data
))
}
// Use just the name if there is no extra info.
...
...
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