Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

mount: fix new inode allocation (#3633)

VictorSFF10d545060f5b
diff --git a/weed/mount/inode_to_path.go b/weed/mount/inode_to_path.go
index 512d60f45e..ffa2c42718 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]
}
}
}