Commit 24d412fa authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Remove unused api methods.

parent a1859173
...@@ -28,11 +28,6 @@ type FsNode interface { ...@@ -28,11 +28,6 @@ type FsNode interface {
Inode() *Inode Inode() *Inode
SetInode(node *Inode) SetInode(node *Inode)
// RmChild and AddChild run inside the critical section for
// the mutex behind Inode().LockTree().
RmChild(name string, child FsNode)
AddChild(name string, child FsNode)
Lookup(name string, context *Context) (fi *os.FileInfo, node FsNode, code Status) Lookup(name string, context *Context) (fi *os.FileInfo, node FsNode, code Status)
OnForget() OnForget()
...@@ -52,7 +47,6 @@ type FsNode interface { ...@@ -52,7 +47,6 @@ type FsNode interface {
// Files // Files
Create(name string, flags uint32, mode uint32, context *Context) (file File, fi *os.FileInfo, newNode FsNode, code Status) Create(name string, flags uint32, mode uint32, context *Context) (file File, fi *os.FileInfo, newNode FsNode, code Status)
Open(flags uint32, context *Context) (file File, code Status) Open(flags uint32, context *Context) (file File, code Status)
Flush(file File, openFlags uint32, context *Context) (code Status)
OpenDir(context *Context) (chan DirEntry, Status) OpenDir(context *Context) (chan DirEntry, Status)
// XAttrs // XAttrs
......
...@@ -43,12 +43,6 @@ func (me *DefaultFsNode) Inode() *Inode { ...@@ -43,12 +43,6 @@ func (me *DefaultFsNode) Inode() *Inode {
func (me *DefaultFsNode) OnForget() { func (me *DefaultFsNode) OnForget() {
} }
func (me *DefaultFsNode) RmChild(name string, child FsNode) {
}
func (me *DefaultFsNode) AddChild(name string, child FsNode) {
}
func (me *DefaultFsNode) Lookup(name string, context *Context) (fi *os.FileInfo, node FsNode, code Status) { func (me *DefaultFsNode) Lookup(name string, context *Context) (fi *os.FileInfo, node FsNode, code Status) {
return nil, nil, ENOSYS return nil, nil, ENOSYS
} }
......
...@@ -277,12 +277,6 @@ func (me *FileSystemConnector) Release(header *InHeader, input *ReleaseIn) { ...@@ -277,12 +277,6 @@ func (me *FileSystemConnector) Release(header *InHeader, input *ReleaseIn) {
opened.WithFlags.File.Release() opened.WithFlags.File.Release()
} }
func (me *FileSystemConnector) Flush(header *InHeader, input *FlushIn) Status {
node := me.toInode(header.NodeId)
opened := node.mount.getOpenedFile(input.Fh)
return node.fsInode.Flush(opened.WithFlags.File, opened.WithFlags.OpenFlags, &header.Context)
}
func (me *FileSystemConnector) ReleaseDir(header *InHeader, input *ReleaseIn) { func (me *FileSystemConnector) ReleaseDir(header *InHeader, input *ReleaseIn) {
node := me.toInode(header.NodeId) node := me.toInode(header.NodeId)
opened := node.mount.unregisterFileHandle(input.Fh, node) opened := node.mount.unregisterFileHandle(input.Fh, node)
......
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