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
e4f22131
Commit
e4f22131
authored
Aug 14, 2010
by
Ivan Krasin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of direct using of makeManagerRequest
parent
1e1606d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
fuse/fuse.go
fuse/fuse.go
+15
-3
No files found.
fuse/fuse.go
View file @
e4f22131
...
...
@@ -188,7 +188,7 @@ func openDir(h *InHeader, r io.Reader, c *managerClient) (data [][]byte, err os.
return
}
fmt
.
Printf
(
"FUSE_OPENDIR: %v
\n
"
,
in
)
resp
:=
c
.
makeManagerRequest
(
h
.
NodeId
,
0
,
openDirOp
,
""
)
resp
:=
c
.
openDir
(
h
.
NodeId
)
err
=
resp
.
err
if
err
!=
nil
{
data
,
err
=
serialize
(
h
,
EIO
,
nil
)
...
...
@@ -209,7 +209,7 @@ func readDir(h *InHeader, r io.Reader, c *managerClient) (data [][]byte, err os.
return
}
fmt
.
Printf
(
"FUSE_READDIR: %v
\n
"
,
in
)
resp
:=
c
.
makeManagerRequest
(
h
.
NodeId
,
in
.
Fh
,
getHandleOp
,
""
)
resp
:=
c
.
getDirReader
(
h
.
NodeId
,
in
.
Fh
)
err
=
resp
.
err
if
err
!=
nil
{
data
,
_
=
serialize
(
h
,
EIO
,
nil
)
...
...
@@ -290,7 +290,7 @@ func releaseDir(h *InHeader, r io.Reader, c *managerClient) (data [][]byte, err
return
}
fmt
.
Printf
(
"FUSE_RELEASEDIR: %v
\n
"
,
in
)
resp
:=
c
.
makeManagerRequest
(
h
.
NodeId
,
in
.
Fh
,
closeDirOp
,
""
)
resp
:=
c
.
closeDir
(
h
.
NodeId
,
in
.
Fh
)
err
=
resp
.
err
if
err
!=
nil
{
return
...
...
@@ -402,6 +402,18 @@ func (c *managerClient) lookup(nodeId uint64, filename string) (resp *managerRes
return
c
.
makeManagerRequest
(
nodeId
,
0
,
lookupOp
,
filename
)
}
func
(
c
*
managerClient
)
openDir
(
nodeId
uint64
)
(
resp
*
managerResponse
)
{
return
c
.
makeManagerRequest
(
nodeId
,
0
,
openDirOp
,
""
)
}
func
(
c
*
managerClient
)
getDirReader
(
nodeId
,
fh
uint64
)
(
resp
*
managerResponse
)
{
return
c
.
makeManagerRequest
(
nodeId
,
fh
,
getHandleOp
,
""
)
}
func
(
c
*
managerClient
)
closeDir
(
nodeId
,
fh
uint64
)
(
resp
*
managerResponse
)
{
return
c
.
makeManagerRequest
(
nodeId
,
fh
,
closeDirOp
,
""
)
}
func
(
m
*
manager
)
run
(
requests
chan
*
managerRequest
)
{
var
resp
*
managerResponse
for
req
:=
range
requests
{
...
...
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