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{} ...@@ -118,7 +118,6 @@ type DefaultFile struct{}
// //
// Include DefaultRawFileSystem to inherit a null implementation. // Include DefaultRawFileSystem to inherit a null implementation.
type RawFileSystem interface { type RawFileSystem interface {
Destroy(h *InHeader, input *InitIn)
Lookup(header *InHeader, name string) (out *EntryOut, status Status) Lookup(header *InHeader, name string) (out *EntryOut, status Status)
Forget(header *InHeader, input *ForgetIn) Forget(header *InHeader, input *ForgetIn)
......
...@@ -9,10 +9,6 @@ import ( ...@@ -9,10 +9,6 @@ import (
var _ = log.Println var _ = log.Println
var _ = fmt.Println var _ = fmt.Println
func (me *DefaultRawFileSystem) Destroy(h *InHeader, input *InitIn) {
}
func (me *DefaultRawFileSystem) Lookup(h *InHeader, name string) (out *EntryOut, code Status) { func (me *DefaultRawFileSystem) Lookup(h *InHeader, name string) (out *EntryOut, code Status) {
return nil, ENOSYS return nil, ENOSYS
} }
......
...@@ -159,11 +159,6 @@ func NewLockingRawFileSystem(rfs RawFileSystem) *LockingRawFileSystem { ...@@ -159,11 +159,6 @@ func NewLockingRawFileSystem(rfs RawFileSystem) *LockingRawFileSystem {
return l 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) { func (me *LockingRawFileSystem) Lookup(h *InHeader, name string) (out *EntryOut, code Status) {
defer me.locked()() defer me.locked()()
return me.RawFileSystem.Lookup(h, name) return me.RawFileSystem.Lookup(h, name)
......
...@@ -200,10 +200,6 @@ func doReadlink(state *MountState, req *request) { ...@@ -200,10 +200,6 @@ func doReadlink(state *MountState, req *request) {
req.flatData, req.status = state.fileSystem.Readlink(req.inHeader) 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) { func doLookup(state *MountState, req *request) {
lookupOut, s := state.fileSystem.Lookup(req.inHeader, req.filenames[0]) lookupOut, s := state.fileSystem.Lookup(req.inHeader, req.filenames[0])
req.status = s req.status = s
...@@ -442,7 +438,6 @@ func init() { ...@@ -442,7 +438,6 @@ func init() {
_OP_FORGET: doForget, _OP_FORGET: doForget,
_OP_READLINK: doReadlink, _OP_READLINK: doReadlink,
_OP_INIT: doInit, _OP_INIT: doInit,
_OP_DESTROY: doDestroy,
_OP_LOOKUP: doLookup, _OP_LOOKUP: doLookup,
_OP_MKNOD: doMknod, _OP_MKNOD: doMknod,
_OP_MKDIR: doMkdir, _OP_MKDIR: doMkdir,
......
...@@ -29,9 +29,6 @@ func (me *FileSystemConnector) GetPath(nodeid uint64) (path string, mount *fileS ...@@ -29,9 +29,6 @@ func (me *FileSystemConnector) GetPath(nodeid uint64) (path string, mount *fileS
return p, m, n return p, m, n
} }
func (me *FileSystemConnector) Destroy(h *InHeader, input *InitIn) {
}
func (me *fileSystemMount) setOwner(attr *Attr) { func (me *fileSystemMount) setOwner(attr *Attr) {
if me.options.Owner != nil { if me.options.Owner != nil {
attr.Owner = *me.options.Owner attr.Owner = *me.options.Owner
......
...@@ -31,11 +31,6 @@ func (me *TimingRawFileSystem) Latencies() map[string]float64 { ...@@ -31,11 +31,6 @@ func (me *TimingRawFileSystem) Latencies() map[string]float64 {
return me.LatencyMap.Latencies(1e-3) 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) { func (me *TimingRawFileSystem) Lookup(h *InHeader, name string) (out *EntryOut, code Status) {
defer me.startTimer("Lookup")() defer me.startTimer("Lookup")()
return me.RawFileSystem.Lookup(h, name) 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