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
correct .vif file creation
Chris Lu03ab0b1b9a0f
diff --git a/weed/pb/volume_info.go b/weed/pb/volume_info.goindex 661e5b0030..b2edf9c5e4 100644--- a/weed/pb/volume_info.go+++ b/weed/pb/volume_info.go@@ -52,10 +52,8 @@ func MaybeLoadVolumeInfo(fileName string) (*volume_server_pb.VolumeInfo, bool) {func SaveVolumeInfo(fileName string, volumeInfo *volume_server_pb.VolumeInfo) error {- tierFileName := fileName + ".vif"-- if exists, _, canWrite, _, _ := util.CheckFile(tierFileName); exists && !canWrite {- return fmt.Errorf("%s not writable", tierFileName)+ if exists, _, canWrite, _, _ := util.CheckFile(fileName); exists && !canWrite {+ return fmt.Errorf("%s not writable", fileName)}m := jsonpb.Marshaler{@@ -68,9 +66,9 @@ func SaveVolumeInfo(fileName string, volumeInfo *volume_server_pb.VolumeInfo) erreturn fmt.Errorf("marshal to %s: %v", fileName, marshalErr)}- writeErr := ioutil.WriteFile(tierFileName, []byte(text), 0755)+ writeErr := ioutil.WriteFile(fileName, []byte(text), 0755)if writeErr != nil {- return fmt.Errorf("fail to write %s : %v", tierFileName, writeErr)+ return fmt.Errorf("fail to write %s : %v", fileName, writeErr)}return nil