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
Enforce umask correctly
Daniel Santos5a761bb7a4a2
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.goindex eaa66519ef..fe9ba28c46 100644--- a/weed/command/mount_std.go+++ b/weed/command/mount_std.go@@ -100,7 +100,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {uid, gid := uint32(0), uint32(0)mountMode := os.ModeDir | 0777if err == nil {- mountMode = os.ModeDir | fileInfo.Mode()+ mountMode := os.ModeDir | os.FileMode(0777)&^umaskuid, gid = util.GetFileUidGid(fileInfo)fmt.Printf("mount point owner uid=%d gid=%d mode=%s\n", uid, gid, fileInfo.Mode())} else {@@ -208,9 +208,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {})glog.V(0).Infof("mounted %s%s to %s", filer, mountRoot, dir)- server := fs.New(c, nil)- seaweedFileSystem.Server = server- err = server.Serve(seaweedFileSystem)+ err = fs.Serve(c, seaweedFileSystem)// check if the mount process has an error to report<-c.Ready