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
weed/storage: Fix volume info file permissions (#5246)
Benoît Knechtf6e39139d86b
diff --git a/weed/storage/volume_info/volume_info.go b/weed/storage/volume_info/volume_info.goindex 2c6896830a..59c08a8333 100644--- a/weed/storage/volume_info/volume_info.go+++ b/weed/storage/volume_info/volume_info.go@@ -76,9 +76,8 @@ func SaveVolumeInfo(fileName string, volumeInfo *volume_server_pb.VolumeInfo) erreturn fmt.Errorf("failed to marshal %s: %v", fileName, marshalErr)}- writeErr := util.WriteFile(fileName, text, 0755)- if writeErr != nil {- return fmt.Errorf("failed to write %s: %v", fileName, writeErr)+ if err := util.WriteFile(fileName, text, 0644); err != nil {+ return fmt.Errorf("failed to write %s: %v", fileName, err)}return nil