diff options
Diffstat (limited to 'weed/mount/inode_to_path.go')
| -rw-r--r-- | weed/mount/inode_to_path.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/mount/inode_to_path.go b/weed/mount/inode_to_path.go index 1e2126b74..cae0144bc 100644 --- a/weed/mount/inode_to_path.go +++ b/weed/mount/inode_to_path.go @@ -21,13 +21,13 @@ type InodeEntry struct { isChildrenCached bool } -func NewInodeToPath() *InodeToPath { +func NewInodeToPath(root util.FullPath) *InodeToPath { t := &InodeToPath{ inode2path: make(map[uint64]*InodeEntry), path2inode: make(map[util.FullPath]uint64), } - t.inode2path[1] = &InodeEntry{"/", 1, true, false} - t.path2inode["/"] = 1 + t.inode2path[1] = &InodeEntry{root, 1, true, false} + t.path2inode[root] = 1 return t } |
