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
Levin Zimmermann
go-fuse
Commits
db03ba71
Commit
db03ba71
authored
Mar 03, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide a String() method for fuse Status type.
parent
ad9d8a5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fuse/fuse.go
fuse/fuse.go
+1
-1
fuse/misc.go
fuse/misc.go
+2
-2
No files found.
fuse/fuse.go
View file @
db03ba71
...
...
@@ -449,7 +449,7 @@ func serialize(h *InHeader, res Status, out interface{}, flatData []byte, debug
}
log
.
Printf
(
"Serialize: %v code: %v value: %v flat: %d
\n
"
,
operationName
(
h
.
Opcode
),
errorString
(
res
)
,
val
,
len
(
flatData
))
operationName
(
h
.
Opcode
),
res
,
val
,
len
(
flatData
))
}
return
data
...
...
fuse/misc.go
View file @
db03ba71
...
...
@@ -133,11 +133,11 @@ func operationName(opcode uint32) string {
return
"UNKNOWN"
}
func
errorString
(
code
Status
)
string
{
func
(
code
Status
)
String
(
)
string
{
if
code
==
OK
{
return
"OK"
}
return
fmt
.
Sprintf
(
"%d=%v"
,
code
,
os
.
Errno
(
code
))
return
fmt
.
Sprintf
(
"%d=%v"
,
int
(
code
)
,
os
.
Errno
(
code
))
}
func
newInput
(
opcode
uint32
)
Empty
{
...
...
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