Commit 391230f2 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse/nodefs: clarify types.

parent 570a84cd
......@@ -23,8 +23,8 @@ type FileSystem interface {
SetDebug(debug bool)
}
// The Node implements the basic functionality of inodes; this is
// where the majority of the FS code for a typical filesystem will be.
// The Node interface implements the user-defined file system
// functionality
type Node interface {
// Inode and SetInode are basic getter/setters. They are
// called by the FileSystemConnector. You get them for free by
......
......@@ -7,9 +7,11 @@ import (
"github.com/hanwen/go-fuse/fuse"
)
// An Inode reflects the kernel's idea of the inode. Inodes may be
// created automatically when the kernel does lookups inode, or by
// explicitly by calling Inode.New().
// An Inode reflects the kernel's idea of the inode. Inodes have IDs
// that are communicated to the kernel, and they have a tree
// structure: a directory Inode may contain named children. Each
// Inode object is paired with a Node object, which file system
// implementers should supply.
type Inode struct {
handled handled
......
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