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
9167630d
Commit
9167630d
authored
May 05, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed methods.
parent
daa69251
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
fuseops/ops.go
fuseops/ops.go
+18
-18
No files found.
fuseops/ops.go
View file @
9167630d
...
...
@@ -64,7 +64,7 @@ type InitOp struct {
maxReadahead
uint32
}
func
(
o
*
InitOp
)
Respond
(
err
error
)
{
func
(
o
*
InitOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
resp
:=
bazilfuse
.
InitResponse
{}
// Ask the Linux kernel for larger write requests.
...
...
@@ -145,7 +145,7 @@ func (o *LookUpInodeOp) ShortDesc() (desc string) {
return
}
func
(
o
*
LookUpInodeOp
)
Respond
(
err
error
)
{
func
(
o
*
LookUpInodeOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
resp
:=
bazilfuse
.
LookupResponse
{}
convertChildInodeEntry
(
&
o
.
Entry
,
&
resp
)
...
...
@@ -169,7 +169,7 @@ type GetInodeAttributesOp struct {
AttributesExpiration
time
.
Time
}
func
(
o
*
GetInodeAttributesOp
)
Respond
(
err
error
)
{
func
(
o
*
GetInodeAttributesOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
resp
:=
bazilfuse
.
GetattrResponse
{
Attr
:
convertAttributes
(
o
.
Inode
,
o
.
Attributes
),
AttrValid
:
convertExpirationTime
(
o
.
AttributesExpiration
),
...
...
@@ -201,7 +201,7 @@ type SetInodeAttributesOp struct {
AttributesExpiration
time
.
Time
}
func
(
o
*
SetInodeAttributesOp
)
Respond
(
err
error
)
{
func
(
o
*
SetInodeAttributesOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
resp
:=
bazilfuse
.
SetattrResponse
{
Attr
:
convertAttributes
(
o
.
Inode
,
o
.
Attributes
),
AttrValid
:
convertExpirationTime
(
o
.
AttributesExpiration
),
...
...
@@ -259,7 +259,7 @@ type ForgetInodeOp struct {
N
uint64
}
func
(
o
*
ForgetInodeOp
)
Respond
(
err
error
)
{
func
(
o
*
ForgetInodeOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
o
.
commonOp
.
respond
(
nil
)
}
...
...
@@ -296,7 +296,7 @@ func (o *MkDirOp) ShortDesc() (desc string) {
return
}
func
(
o
*
MkDirOp
)
Respond
(
err
error
)
{
func
(
o
*
MkDirOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
resp
:=
bazilfuse
.
MkdirResponse
{}
convertChildInodeEntry
(
&
o
.
Entry
,
&
resp
.
LookupResponse
)
...
...
@@ -351,7 +351,7 @@ func (o *CreateFileOp) ShortDesc() (desc string) {
return
}
func
(
o
*
CreateFileOp
)
Respond
(
err
error
)
{
func
(
o
*
CreateFileOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
resp
:=
bazilfuse
.
CreateResponse
{
OpenResponse
:
bazilfuse
.
OpenResponse
{
Handle
:
bazilfuse
.
HandleID
(
o
.
Handle
),
...
...
@@ -382,7 +382,7 @@ type RmDirOp struct {
Name
string
}
func
(
o
*
RmDirOp
)
Respond
(
err
error
)
{
func
(
o
*
RmDirOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
o
.
commonOp
.
respond
(
nil
)
}
...
...
@@ -400,7 +400,7 @@ type UnlinkOp struct {
Name
string
}
func
(
o
*
UnlinkOp
)
Respond
(
err
error
)
{
func
(
o
*
UnlinkOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
o
.
commonOp
.
respond
(
nil
)
}
...
...
@@ -434,7 +434,7 @@ type OpenDirOp struct {
Handle
HandleID
}
func
(
o
*
OpenDirOp
)
Respond
(
err
error
)
{
func
(
o
*
OpenDirOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
resp
:=
bazilfuse
.
OpenResponse
{
Handle
:
bazilfuse
.
HandleID
(
o
.
Handle
),
}
...
...
@@ -532,7 +532,7 @@ type ReadDirOp struct {
Data
[]
byte
}
func
(
o
*
ReadDirOp
)
Respond
(
err
error
)
{
func
(
o
*
ReadDirOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
resp
:=
bazilfuse
.
ReadResponse
{
Data
:
o
.
Data
,
}
...
...
@@ -557,7 +557,7 @@ type ReleaseDirHandleOp struct {
Handle
HandleID
}
func
(
o
*
ReleaseDirHandleOp
)
Respond
(
err
error
)
{
func
(
o
*
ReleaseDirHandleOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
o
.
commonOp
.
respond
(
nil
)
}
...
...
@@ -590,7 +590,7 @@ type OpenFileOp struct {
Handle
HandleID
}
func
(
o
*
OpenFileOp
)
Respond
(
err
error
)
{
func
(
o
*
OpenFileOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
resp
:=
bazilfuse
.
OpenResponse
{
Handle
:
bazilfuse
.
HandleID
(
o
.
Handle
),
}
...
...
@@ -627,7 +627,7 @@ type ReadFileOp struct {
Data
[]
byte
}
func
(
o
*
ReadFileOp
)
Respond
(
err
error
)
{
func
(
o
*
ReadFileOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
resp
:=
bazilfuse
.
ReadResponse
{
Data
:
o
.
Data
,
}
...
...
@@ -705,7 +705,7 @@ type WriteFileOp struct {
Data
[]
byte
}
func
(
o
*
WriteFileOp
)
Respond
(
err
error
)
{
func
(
o
*
WriteFileOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
resp
:=
bazilfuse
.
WriteResponse
{
Size
:
len
(
o
.
Data
),
}
...
...
@@ -737,7 +737,7 @@ type SyncFileOp struct {
Handle
HandleID
}
func
(
o
*
SyncFileOp
)
Respond
(
err
error
)
{
func
(
o
*
SyncFileOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
o
.
commonOp
.
respond
(
nil
)
}
...
...
@@ -796,7 +796,7 @@ type FlushFileOp struct {
Handle
HandleID
}
func
(
o
*
FlushFileOp
)
Respond
(
err
error
)
{
func
(
o
*
FlushFileOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
o
.
commonOp
.
respond
(
nil
)
}
...
...
@@ -817,6 +817,6 @@ type ReleaseFileHandleOp struct {
Handle
HandleID
}
func
(
o
*
ReleaseFileHandleOp
)
Respond
(
err
error
)
{
func
(
o
*
ReleaseFileHandleOp
)
toBazilfuseResponse
()
(
bfResp
interface
{}
)
{
o
.
commonOp
.
respond
(
nil
)
}
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