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.

add back mkdir

chrislu65bfeafb5a36
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index 2a8ecd2356..6c91246c1f 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -302,6 +302,7 @@ func (wfs *WFS) getCurrentFiler() pb.ServerAddress {
func (option *Option) setupUniqueCacheDirectory() {
cacheUniqueId := util.Md5String([]byte(option.MountDirectory + string(option.FilerAddresses[0]) + option.FilerMountRootPath + util.Version()))[0:8]
option.uniqueCacheDir = path.Join(option.CacheDir, cacheUniqueId)
+ os.MkdirAll(option.uniqueCacheDir, os.FileMode(0777)&^option.Umask)
}
func (option *Option) getUniqueCacheDir() string {
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go
index 11958c39e5..47cb5ad989 100644
--- a/weed/mount/weedfs.go
+++ b/weed/mount/weedfs.go
@@ -176,6 +176,7 @@ func (wfs *WFS) getCurrentFiler() pb.ServerAddress {
func (option *Option) setupUniqueCacheDirectory() {
cacheUniqueId := util.Md5String([]byte(option.MountDirectory + string(option.FilerAddresses[0]) + option.FilerMountRootPath + util.Version()))[0:8]
option.uniqueCacheDir = path.Join(option.CacheDir, cacheUniqueId)
+ os.MkdirAll(option.uniqueCacheDir, os.FileMode(0777)&^option.Umask)
}
func (option *Option) getUniqueCacheDir() string {