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

@@ -71,7 +71,6 @@ func (f *Filer) CreateEntry(entry *Entry) (error) {
Mode: os.ModeDir | 0660,
Uid: entry.Uid,
Gid: entry.Gid,
Nlink: 2,
},
}
@@ -102,9 +101,6 @@ func (f *Filer) CreateEntry(entry *Entry) (error) {
if err := f.store.InsertEntry(entry); err != nil {
return fmt.Errorf("insert entry %s: %v", entry.FullPath, err)
}
if err := f.store.AddDirectoryLink(lastDirectoryEntry, 1); err != nil {
return fmt.Errorf("insert entry %s: %v", entry.FullPath, err)
}
return nil
}