fusego/not_implemented_file_system.go

38 lines
953 B
Go
Raw Normal View History

// Copyright 2015 Google Inc. All Rights Reserved.
// Author: jacobsa@google.com (Aaron Jacobs)
2015-02-27 00:57:18 +03:00
package fuse
import "golang.org/x/net/context"
// Embed this within your file system type to inherit default implementations
// of all methods that return ENOSYS.
type NotImplementedFileSystem struct {
}
var _ FileSystem = &NotImplementedFileSystem{}
2015-02-27 01:53:25 +03:00
func (fs *NotImplementedFileSystem) LookUpInode(
ctx context.Context,
2015-02-27 01:53:25 +03:00
req *LookUpInodeRequest) (*LookUpInodeResponse, error) {
return nil, ENOSYS
}
2015-02-27 01:53:25 +03:00
func (fs *NotImplementedFileSystem) ForgetInode(
ctx context.Context,
2015-02-27 01:53:25 +03:00
req *ForgetInodeRequest) (*ForgetInodeResponse, error) {
return nil, ENOSYS
}
2015-02-27 01:53:25 +03:00
func (fs *NotImplementedFileSystem) OpenDir(
ctx context.Context,
2015-02-27 01:53:25 +03:00
req *OpenDirRequest) (*OpenDirResponse, error) {
return nil, ENOSYS
}
func (fs *NotImplementedFileSystem) ReleaseHandle(
ctx context.Context,
req *ReleaseHandleRequest) (*ReleaseHandleResponse, error) {
return nil, ENOSYS
}