From 10d545060f5b1ef517786857726f409ed0f95652 Mon Sep 17 00:00:00 2001 From: VictorSFF <113080569+VictorSFF@users.noreply.github.com> Date: Fri, 9 Sep 2022 21:32:19 +0800 Subject: [PATCH] mount: fix new inode allocation (#3633) --- weed/mount/inode_to_path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/mount/inode_to_path.go b/weed/mount/inode_to_path.go index 512d60f45..ffa2c4271 100644 --- a/weed/mount/inode_to_path.go +++ b/weed/mount/inode_to_path.go @@ -80,7 +80,7 @@ func (i *InodeToPath) Lookup(path util.FullPath, unixTime int64, isDirectory boo } if !isHardlink { for _, found := i.inode2path[inode]; found; inode++ { - _, found = i.inode2path[inode] + _, found = i.inode2path[inode+1] } } }