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
local file sink: create backup files with permission 0755
Chris Luf2fcb77808a7
diff --git a/weed/replication/sink/localsink/local_sink.go b/weed/replication/sink/localsink/local_sink.goindex c76647fcc9..2b9b3e69a7 100644--- a/weed/replication/sink/localsink/local_sink.go+++ b/weed/replication/sink/localsink/local_sink.go@@ -78,13 +78,13 @@ func (localsink *LocalSink) CreateEntry(key string, entry *filer_pb.Entry, signaif _, err := os.Stat(dir); os.IsNotExist(err) {glog.V(4).Infof("Create Direcotry key: %s", dir)- if err = os.MkdirAll(dir, 0); err != nil {+ if err = os.MkdirAll(dir, 0755); err != nil {return err}}writeFunc := func(data []byte) error {- writeErr := ioutil.WriteFile(key, data, 0)+ writeErr := ioutil.WriteFile(key, data, 0755)return writeErr}