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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
mount: fix k8s pvc mount directory permission
limd59e91e9c7eac
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.goindex e84eebadac..cbac353510 100644--- a/weed/command/mount_std.go+++ b/weed/command/mount_std.go@@ -12,7 +12,6 @@ import ("runtime""strconv""strings"- "syscall""time""github.com/seaweedfs/fuse"@@ -92,9 +91,8 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {// detect mount folder modeif *option.dirAutoCreate {- oldMask := syscall.Umask(0)- os.MkdirAll(dir, os.ModePerm&^umask)- syscall.Umask(oldMask)+ os.MkdirAll(dir, os.FileMode(0777)&^umask)+ os.Chmod(dir, os.FileMode(0777)&^umask)}mountMode := os.ModeDir | 0777fileInfo, err := os.Stat(dir)