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
efeaec5e
Commit
efeaec5e
authored
Jul 27, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deleted internal ops.
parent
dce2ceff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
62 deletions
+0
-62
fuseops/ops.go
fuseops/ops.go
+0
-62
No files found.
fuseops/ops.go
View file @
efeaec5e
...
...
@@ -18,9 +18,7 @@ import (
"fmt"
"os"
"time"
"unsafe"
"github.com/jacobsa/fuse/internal/buffer"
"github.com/jacobsa/fuse/internal/fusekernel"
"golang.org/x/net/context"
)
...
...
@@ -766,63 +764,3 @@ type ReadSymlinkOp struct {
// Set by the file system: the target of the symlink.
Target
string
}
////////////////////////////////////////////////////////////////////////
// Internal
////////////////////////////////////////////////////////////////////////
// TODO(jacobsa): Untangle the way ops work and move these to an internal
// package, along with Convert. I think all of the behavior wants to be on
// Connection. Ops have only String methods. Connection.ReadOp returns an
// interace{} and a context. If we must restore debug logging later, we can
// stuff an op ID in that context and add a Connection.Logf method. Connection
// has a Reply method that takes a descendent context and an error.
// Do not use this struct directly. See the TODO in fuseops/ops.go.
type
InternalStatFSOp
struct
{
commonOp
}
func
(
o
*
InternalStatFSOp
)
kernelResponse
()
(
b
buffer
.
OutMessage
)
{
b
=
buffer
.
NewOutMessage
(
unsafe
.
Sizeof
(
fusekernel
.
StatfsOut
{}))
b
.
Grow
(
unsafe
.
Sizeof
(
fusekernel
.
StatfsOut
{}))
return
}
// Do not use this struct directly. See the TODO in fuseops/ops.go.
type
InternalInterruptOp
struct
{
commonOp
FuseID
uint64
}
func
(
o
*
InternalInterruptOp
)
kernelResponse
()
(
b
buffer
.
OutMessage
)
{
panic
(
"Shouldn't get here."
)
}
// Do not use this struct directly. See the TODO in fuseops/ops.go.
type
InternalInitOp
struct
{
commonOp
// In
Kernel
fusekernel
.
Protocol
// Out
Library
fusekernel
.
Protocol
MaxReadahead
uint32
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