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
Levin Zimmermann
go-fuse
Commits
b20262de
Commit
b20262de
authored
Mar 24, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse: add more docs to api.go
parent
51f7cee9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
fuse/api.go
fuse/api.go
+10
-1
No files found.
fuse/api.go
View file @
b20262de
// The fuse package provides APIs to implement filesystems in
// The fuse package provides APIs to implement filesystems in
// userspace. Typically, each call of the API happens in its own
// userspace. Typically, each call of the API happens in its own
// goroutine, so take care to make the file system thread-safe.
// goroutine, so take care to make the file system thread-safe.
package
fuse
package
fuse
import
(
import
(
...
@@ -18,8 +17,18 @@ import (
...
@@ -18,8 +17,18 @@ import (
// to represent fits in memory: you can construct FsNode at mount
// to represent fits in memory: you can construct FsNode at mount
// time, and the filesystem will be ready.
// time, and the filesystem will be ready.
type
NodeFileSystem
interface
{
type
NodeFileSystem
interface
{
// OnUnmount is executed just before a submount is removed,
// and when the process receives a forget for the FUSE root
// node.
OnUnmount
()
OnUnmount
()
// OnMount is called just after a mount is executed, either
// when the root is mounted, or when other filesystem are
// mounted in-process. The passed-in FileSystemConnector gives
// access to Notify methods and Debug settings.
OnMount
(
conn
*
FileSystemConnector
)
OnMount
(
conn
*
FileSystemConnector
)
// Root should return the inode for root of this file system.
Root
()
FsNode
Root
()
FsNode
// Used for debug outputs
// Used for debug outputs
...
...
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