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
5b44ce2e
Commit
5b44ce2e
authored
May 04, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print input parameters for unsupported opcode as well.
parent
048c6333
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
fuse/fuse.go
fuse/fuse.go
+9
-4
fuse/pathfilesystem.go
fuse/pathfilesystem.go
+1
-1
fuse/request.go
fuse/request.go
+2
-6
No files found.
fuse/fuse.go
View file @
5b44ce2e
...
@@ -209,11 +209,16 @@ func (me *MountState) handleRequest(req *request) {
...
@@ -209,11 +209,16 @@ func (me *MountState) handleRequest(req *request) {
if
req
.
handler
==
nil
{
if
req
.
handler
==
nil
{
return
return
}
}
if
me
.
Debug
{
log
.
Println
(
req
.
InputDebug
())
}
if
req
.
handler
.
Func
==
nil
{
log
.
Printf
(
"Unimplemented opcode %v"
,
req
.
inHeader
.
opcode
)
req
.
status
=
ENOSYS
return
}
if
req
.
status
==
OK
{
if
req
.
status
==
OK
{
if
me
.
Debug
{
log
.
Println
(
req
.
InputDebug
())
}
req
.
handler
.
Func
(
me
,
req
)
req
.
handler
.
Func
(
me
,
req
)
}
}
...
...
fuse/pathfilesystem.go
View file @
5b44ce2e
...
@@ -431,7 +431,7 @@ func (me *FileSystemConnector) Mount(mountPoint string, fs FileSystem, opts *Mou
...
@@ -431,7 +431,7 @@ func (me *FileSystemConnector) Mount(mountPoint string, fs FileSystem, opts *Mou
node
=
me
.
rootNode
node
=
me
.
rootNode
}
}
if
node
==
nil
{
if
node
==
nil
{
log
.
Println
(
"Could not find mountpoint?"
,
mount
p
oint
)
log
.
Println
(
"Could not find mountpoint?"
,
mount
P
oint
)
return
ENOENT
return
ENOENT
}
}
...
...
fuse/request.go
View file @
5b44ce2e
...
@@ -84,12 +84,8 @@ func (me *request) parse() {
...
@@ -84,12 +84,8 @@ func (me *request) parse() {
me
.
arg
=
me
.
inputBuf
[
inHSize
:
]
me
.
arg
=
me
.
inputBuf
[
inHSize
:
]
me
.
handler
=
getHandler
(
me
.
inHeader
.
opcode
)
me
.
handler
=
getHandler
(
me
.
inHeader
.
opcode
)
if
me
.
handler
==
nil
||
me
.
handler
.
Func
==
nil
{
if
me
.
handler
==
nil
{
msg
:=
"Unimplemented"
log
.
Printf
(
"Unknown opcode %v"
,
me
.
inHeader
.
opcode
)
if
me
.
handler
==
nil
{
msg
=
"Unknown"
}
log
.
Printf
(
"%s opcode %v"
,
msg
,
me
.
inHeader
.
opcode
)
me
.
status
=
ENOSYS
me
.
status
=
ENOSYS
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