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] [regression] `filer.path` option results in empty mount in 2.32

Chris Lu22a07a12d2cc
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go
index 6168425af3..dc208dcbb4 100644
--- a/weed/filesys/dir.go
+++ b/weed/filesys/dir.go
@@ -552,5 +552,8 @@ func (dir *Dir) saveEntry() error {
}
func (dir *Dir) FullPath() string {
- return string(dir.entry.FullPath)
+ if dir.wfs.option.FilerMountRootPath == "/" {
+ return string(dir.entry.FullPath)
+ }
+ return string(dir.entry.FullPath)[len(dir.wfs.option.FilerMountRootPath):]
}