mount: fix new inode allocation (#3633)

This commit is contained in:
VictorSFF 2022-09-09 21:32:19 +08:00 committed by GitHub
parent 41af5a6ee5
commit 10d545060f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ func (i *InodeToPath) Lookup(path util.FullPath, unixTime int64, isDirectory boo
} }
if !isHardlink { if !isHardlink {
for _, found := i.inode2path[inode]; found; inode++ { for _, found := i.inode2path[inode]; found; inode++ {
_, found = i.inode2path[inode] _, found = i.inode2path[inode+1]
} }
} }
} }