Commit 382f4469 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Remove for Destroy/_OP_DESTROY.

DESTROY is only sent for fuseblk devices which we (probably) don't
support anyway.
parent 7748573a
......@@ -118,7 +118,6 @@ type DefaultFile struct{}
//
// Include DefaultRawFileSystem to inherit a null implementation.
type RawFileSystem interface {
Destroy(h *InHeader, input *InitIn)
Lookup(header *InHeader, name string) (out *EntryOut, status Status)
Forget(header *InHeader, input *ForgetIn)
......
......@@ -9,10 +9,6 @@ import (
var _ = log.Println
var _ = fmt.Println
func (me *DefaultRawFileSystem) Destroy(h *InHeader, input *InitIn) {
}
func (me *DefaultRawFileSystem) Lookup(h *InHeader, name string) (out *EntryOut, code Status) {
return nil, ENOSYS
}
......
......@@ -159,11 +159,6 @@ func NewLockingRawFileSystem(rfs RawFileSystem) *LockingRawFileSystem {
return l
}
func (me *LockingRawFileSystem) Destroy(h *InHeader, input *InitIn) {
defer me.locked()()
me.RawFileSystem.Destroy(h, input)
}
func (me *LockingRawFileSystem) Lookup(h *InHeader, name string) (out *EntryOut, code Status) {
defer me.locked()()
return me.RawFileSystem.Lookup(h, name)
......
......@@ -200,10 +200,6 @@ func doReadlink(state *MountState, req *request) {
req.flatData, req.status = state.fileSystem.Readlink(req.inHeader)
}
func doDestroy(state *MountState, req *request) {
state.fileSystem.Destroy(req.inHeader, (*InitIn)(req.inData))
}
func doLookup(state *MountState, req *request) {
lookupOut, s := state.fileSystem.Lookup(req.inHeader, req.filenames[0])
req.status = s
......@@ -442,7 +438,6 @@ func init() {
_OP_FORGET: doForget,
_OP_READLINK: doReadlink,
_OP_INIT: doInit,
_OP_DESTROY: doDestroy,
_OP_LOOKUP: doLookup,
_OP_MKNOD: doMknod,
_OP_MKDIR: doMkdir,
......
......@@ -29,9 +29,6 @@ func (me *FileSystemConnector) GetPath(nodeid uint64) (path string, mount *fileS
return p, m, n
}
func (me *FileSystemConnector) Destroy(h *InHeader, input *InitIn) {
}
func (me *fileSystemMount) setOwner(attr *Attr) {
if me.options.Owner != nil {
attr.Owner = *me.options.Owner
......
......@@ -31,11 +31,6 @@ func (me *TimingRawFileSystem) Latencies() map[string]float64 {
return me.LatencyMap.Latencies(1e-3)
}
func (me *TimingRawFileSystem) Destroy(h *InHeader, input *InitIn) {
defer me.startTimer("Destroy")()
me.RawFileSystem.Destroy(h, input)
}
func (me *TimingRawFileSystem) Lookup(h *InHeader, name string) (out *EntryOut, code Status) {
defer me.startTimer("Lookup")()
return me.RawFileSystem.Lookup(h, name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment