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