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
407b005d
Commit
407b005d
authored
Jul 27, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deleted some dead code.
parent
9441e60e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
44 deletions
+0
-44
ops.go
ops.go
+0
-44
No files found.
ops.go
View file @
407b005d
...
...
@@ -193,45 +193,14 @@ type unknownOp struct {
inode
fuseops
.
InodeID
}
func
(
o
*
unknownOp
)
ShortDesc
()
(
desc
string
)
{
desc
=
fmt
.
Sprintf
(
"<opcode %d>(inode=%v)"
,
o
.
opCode
,
o
.
inode
)
return
}
func
(
o
*
unknownOp
)
DebugString
()
string
{
return
o
.
ShortDesc
()
}
// Common implementation for our "internal" ops that don't need to be pretty.
type
internalOp
struct
{
}
func
(
o
*
internalOp
)
ShortDesc
()
string
{
return
"<internalOp>"
}
func
(
o
*
internalOp
)
DebugString
()
string
{
return
"<internalOp>"
}
type
internalStatFSOp
struct
{
internalOp
}
func
(
o
*
internalStatFSOp
)
kernelResponse
()
(
b
buffer
.
OutMessage
)
{
b
=
buffer
.
NewOutMessage
(
unsafe
.
Sizeof
(
fusekernel
.
StatfsOut
{}))
b
.
Grow
(
unsafe
.
Sizeof
(
fusekernel
.
StatfsOut
{}))
return
}
type
internalInterruptOp
struct
{
internalOp
FuseID
uint64
}
func
(
o
*
internalInterruptOp
)
kernelResponse
()
(
b
buffer
.
OutMessage
)
{
panic
(
"Shouldn't get here."
)
}
type
internalInitOp
struct
{
internalOp
// In
Kernel
fusekernel
.
Protocol
...
...
@@ -241,16 +210,3 @@ type internalInitOp struct {
Flags
fusekernel
.
InitFlags
MaxWrite
uint32
}
func
(
o
*
internalInitOp
)
kernelResponse
()
(
b
buffer
.
OutMessage
)
{
b
=
buffer
.
NewOutMessage
(
unsafe
.
Sizeof
(
fusekernel
.
InitOut
{}))
out
:=
(
*
fusekernel
.
InitOut
)(
b
.
Grow
(
unsafe
.
Sizeof
(
fusekernel
.
InitOut
{})))
out
.
Major
=
o
.
Library
.
Major
out
.
Minor
=
o
.
Library
.
Minor
out
.
MaxReadahead
=
o
.
MaxReadahead
out
.
Flags
=
uint32
(
o
.
Flags
)
out
.
MaxWrite
=
o
.
MaxWrite
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