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
bc476921
Commit
bc476921
authored
May 05, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set bfResp.
parent
2aed770c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
fuseops/ops.go
fuseops/ops.go
+14
-0
No files found.
fuseops/ops.go
View file @
bc476921
...
...
@@ -66,6 +66,7 @@ type InitOp struct {
func
(
o
*
InitOp
)
toBazilfuseResponse
()
(
bfResp
interface
{})
{
resp
:=
bazilfuse
.
InitResponse
{}
bfResp
=
&
resp
// Ask the Linux kernel for larger write requests.
//
...
...
@@ -147,6 +148,8 @@ func (o *LookUpInodeOp) ShortDesc() (desc string) {
func
(
o
*
LookUpInodeOp
)
toBazilfuseResponse
()
(
bfResp
interface
{})
{
resp
:=
bazilfuse
.
LookupResponse
{}
bfResp
=
&
resp
convertChildInodeEntry
(
&
o
.
Entry
,
&
resp
)
o
.
commonOp
.
respond
(
&
resp
)
...
...
@@ -174,6 +177,7 @@ func (o *GetInodeAttributesOp) toBazilfuseResponse() (bfResp interface{}) {
Attr
:
convertAttributes
(
o
.
Inode
,
o
.
Attributes
),
AttrValid
:
convertExpirationTime
(
o
.
AttributesExpiration
),
}
bfResp
=
&
resp
o
.
commonOp
.
respond
(
&
resp
)
}
...
...
@@ -206,6 +210,7 @@ func (o *SetInodeAttributesOp) toBazilfuseResponse() (bfResp interface{}) {
Attr
:
convertAttributes
(
o
.
Inode
,
o
.
Attributes
),
AttrValid
:
convertExpirationTime
(
o
.
AttributesExpiration
),
}
bfResp
=
&
resp
o
.
commonOp
.
respond
(
&
resp
)
}
...
...
@@ -298,6 +303,8 @@ func (o *MkDirOp) ShortDesc() (desc string) {
func
(
o
*
MkDirOp
)
toBazilfuseResponse
()
(
bfResp
interface
{})
{
resp
:=
bazilfuse
.
MkdirResponse
{}
bfResp
=
&
resp
convertChildInodeEntry
(
&
o
.
Entry
,
&
resp
.
LookupResponse
)
o
.
commonOp
.
respond
(
&
resp
)
...
...
@@ -357,6 +364,8 @@ func (o *CreateFileOp) toBazilfuseResponse() (bfResp interface{}) {
Handle
:
bazilfuse
.
HandleID
(
o
.
Handle
),
},
}
bfResp
=
&
resp
convertChildInodeEntry
(
&
o
.
Entry
,
&
resp
.
LookupResponse
)
o
.
commonOp
.
respond
(
&
resp
)
...
...
@@ -438,6 +447,7 @@ func (o *OpenDirOp) toBazilfuseResponse() (bfResp interface{}) {
resp
:=
bazilfuse
.
OpenResponse
{
Handle
:
bazilfuse
.
HandleID
(
o
.
Handle
),
}
bfResp
=
&
resp
o
.
commonOp
.
respond
(
&
resp
)
}
...
...
@@ -536,6 +546,7 @@ func (o *ReadDirOp) toBazilfuseResponse() (bfResp interface{}) {
resp
:=
bazilfuse
.
ReadResponse
{
Data
:
o
.
Data
,
}
bfResp
=
&
resp
o
.
commonOp
.
respond
(
&
resp
)
}
...
...
@@ -594,6 +605,7 @@ func (o *OpenFileOp) toBazilfuseResponse() (bfResp interface{}) {
resp
:=
bazilfuse
.
OpenResponse
{
Handle
:
bazilfuse
.
HandleID
(
o
.
Handle
),
}
bfResp
=
&
resp
o
.
commonOp
.
respond
(
&
resp
)
}
...
...
@@ -631,6 +643,7 @@ func (o *ReadFileOp) toBazilfuseResponse() (bfResp interface{}) {
resp
:=
bazilfuse
.
ReadResponse
{
Data
:
o
.
Data
,
}
bfResp
=
&
resp
o
.
commonOp
.
respond
(
&
resp
)
}
...
...
@@ -709,6 +722,7 @@ func (o *WriteFileOp) toBazilfuseResponse() (bfResp interface{}) {
resp
:=
bazilfuse
.
WriteResponse
{
Size
:
len
(
o
.
Data
),
}
bfResp
=
&
resp
o
.
commonOp
.
respond
(
&
resp
)
}
...
...
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