Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go-fuse
Commits
e8c92b25
Commit
e8c92b25
authored
Jan 04, 2014
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse/nodefs: document nodefs package.
parent
9adcb60f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
fuse/nodefs/api.go
fuse/nodefs/api.go
+15
-11
No files found.
fuse/nodefs/api.go
View file @
e8c92b25
// The nodefs package offers a high level API that resembles the
// kernel's idea of what an FS looks like. File systems can have
// multiple hard-links to one file, for example. It is also suited if
// the data to represent fits in memory: you can construct the
// complete file system tree at mount time
package
nodefs
import
(
...
...
@@ -6,16 +12,12 @@ import (
"github.com/hanwen/go-fuse/fuse"
)
// FileSystem is a high level API that resembles the kernel's idea
// of what an FS looks like. FileSystems can have multiple
// hard-links to one file, for example. It is also suited if the data
// to represent fits in memory: you can construct Node at mount
// time, and the filesystem will be ready.
// The FileSystem is the unit that can be mounted. It's essential
// function is the Root() method, which provides access to the file
// system tree.
type
FileSystem
interface
{
// OnUnmount is executed just before a submount is removed,
// and when the process receives a forget for the FUSE root
// node.
OnUnmount
()
// Root should return the inode for root of this file system.
Root
()
Node
// OnMount is called just after a mount is executed, either
// when the root is mounted, or when other filesystem are
...
...
@@ -23,8 +25,10 @@ type FileSystem interface {
// access to Notify methods and Debug settings.
OnMount
(
conn
*
FileSystemConnector
)
// Root should return the inode for root of this file system.
Root
()
Node
// OnUnmount is executed just before a submount is removed,
// and when the process receives a forget for the FUSE root
// node.
OnUnmount
()
// Used for debug outputs
String
()
string
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment