diff options
| author | chrislu <chris.lu@gmail.com> | 2022-02-28 12:16:53 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-02-28 12:16:53 -0800 |
| commit | fcf371444356b98d7f1c169068ee2a890889c122 (patch) | |
| tree | 20ebab68fb9cc96de6249b184fb685c538c7e089 /weed/mount/inode_to_path.go | |
| parent | ca0cd81a75b1bdce429ab3b32724bf6a40097a03 (diff) | |
| download | seaweedfs-fcf371444356b98d7f1c169068ee2a890889c122.tar.xz seaweedfs-fcf371444356b98d7f1c169068ee2a890889c122.zip | |
mount: add back support for filer.path
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 } |
