remove nlink property from directory node

This commit is contained in:
Chris Lu
2018-05-12 22:42:28 -07:00
parent 9ecbf92569
commit fc7f81f6e7
4 changed files with 10 additions and 12 deletions

View File

@@ -28,7 +28,6 @@ type Attr struct {
Uid uint32 // owner uid
Gid uint32 // group gid
Size uint64 // total size in bytes
Nlink uint32 // number of links (usually 1)
}
type Entry struct {
@@ -60,7 +59,6 @@ var ErrNotFound = errors.New("filer: no entry is found in filer store")
type FilerStore interface {
InsertEntry(*Entry) (error)
AddDirectoryLink(directory *Entry, delta int32) (err error)
AppendFileChunk(FullPath, FileChunk) (err error)
FindEntry(FullPath) (found bool, entry *Entry, err error)
DeleteEntry(FullPath) (fileEntry *Entry, err error)