Fixed a build error.

geesefs-0-30-9
Aaron Jacobs 2015-07-27 14:27:34 +10:00
parent eb5fba11cb
commit 623ae99fae
2 changed files with 13 additions and 5 deletions

View File

@ -119,9 +119,9 @@ func (c *Connection) Init() (err error) {
return
}
initOp, ok := op.(*fuseops.InternalInitOp)
initOp, ok := op.(*internalInitOp)
if !ok {
err = fmt.Errorf("Expected *fuseops.InternalInitOp, got %T", op)
err = fmt.Errorf("Expected *internalInitOp, got %T", op)
return
}

14
ops.go
View File

@ -309,10 +309,18 @@ func (o *readSymlinkOp) kernelResponse() (b buffer.OutMessage) {
// Internal
////////////////////////////////////////////////////////////////////////
type internalStatFSOp struct {
// Common implementation for our "internal" ops that don't need to be pretty.
type internalOp struct {
opCommon
}
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{}))
@ -321,7 +329,7 @@ func (o *internalStatFSOp) kernelResponse() (b buffer.OutMessage) {
}
type internalInterruptOp struct {
opCommon
internalOp
FuseID uint64
}
@ -330,7 +338,7 @@ func (o *internalInterruptOp) kernelResponse() (b buffer.OutMessage) {
}
type internalInitOp struct {
opCommon
internalOp
// In
Kernel fusekernel.Protocol