diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-09-23 02:27:57 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-09-23 02:27:57 -0700 |
| commit | f0e325b6fce66f2e41f148ea0dde2774056f616f (patch) | |
| tree | 791b30c887ccc382c1346469dba142920e56ad9e | |
| parent | b61d33f251e7f2bea7a1e53b496a9777344e77e2 (diff) | |
| download | seaweedfs-f0e325b6fce66f2e41f148ea0dde2774056f616f.tar.xz seaweedfs-f0e325b6fce66f2e41f148ea0dde2774056f616f.zip | |
mount: auto created directory follow umask
| -rw-r--r-- | weed/filesys/wfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index 8d46e0862..0335d5d98 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -88,7 +88,7 @@ func NewSeaweedFileSystem(option *Option) *WFS { cacheUniqueId := util.Md5String([]byte(option.FilerGrpcAddress + option.FilerMountRootPath + util.Version()))[0:4] cacheDir := path.Join(option.CacheDir, cacheUniqueId) if option.CacheSizeMB > 0 { - os.MkdirAll(cacheDir, 0755) + os.MkdirAll(cacheDir, os.FileMode(0777) &^ option.Umask) wfs.chunkCache = chunk_cache.NewTieredChunkCache(256, cacheDir, option.CacheSizeMB) } |
