Commit ae5bbbe4 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse/nodefs: remove FileSystem type.

To update, change

   nodefs.MountFileSystem(dir, fs, opts)

to

   nodefs.MountRoot(dir, fs.Root(), opts)
parent 7f9a7dfa
...@@ -11,18 +11,6 @@ import ( ...@@ -11,18 +11,6 @@ import (
"github.com/hanwen/go-fuse/fuse" "github.com/hanwen/go-fuse/fuse"
) )
// This is a legacy type.
type FileSystem interface {
// Root should return the inode for root of this file system.
Root() Node
// Used for debug outputs
String() string
// If called, provide debug output through the log package.
SetDebug(debug bool)
}
// The Node interface implements the user-defined file system // The Node interface implements the user-defined file system
// functionality // functionality
type Node interface { type Node interface {
......
...@@ -13,8 +13,3 @@ func MountRoot(mountpoint string, root Node, opts *Options) (*fuse.Server, *File ...@@ -13,8 +13,3 @@ func MountRoot(mountpoint string, root Node, opts *Options) (*fuse.Server, *File
} }
return s, conn, nil return s, conn, nil
} }
// Mounts a filesystem on the given directory
func MountFileSystem(mountpoint string, fs FileSystem, opts *Options) (*fuse.Server, *FileSystemConnector, error) {
return MountRoot(mountpoint, fs.Root(), opts)
}
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