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
trim out name extension
Chris Lu3e925faddd66
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.goindex 5dec21c32c..1f58c9977d 100644--- a/weed/storage/disk_location.go+++ b/weed/storage/disk_location.go@@ -61,6 +61,7 @@ func parseCollectionVolumeId(base string) (collection string, vid needle.VolumeIfunc (l *DiskLocation) loadExistingVolume(fileInfo os.FileInfo, needleMapKind NeedleMapType) bool {name := fileInfo.Name()if !fileInfo.IsDir() && strings.HasSuffix(name, ".idx") {+ name := name[:len(name)-len(".idx")]noteFile := l.Directory + "/" + name + ".note"if util.FileExists(noteFile) {note, _ := ioutil.ReadFile(noteFile)@@ -93,7 +94,7 @@ func (l *DiskLocation) loadExistingVolume(fileInfo os.FileInfo, needleMapKind Nesize, _, _ := v.FileStat()glog.V(0).Infof("data file %s, replicaPlacement=%s v=%d size=%d ttl=%s",- l.Directory+"/"+name, v.ReplicaPlacement, v.Version(), size, v.Ttl.String())+ l.Directory+"/"+name+".dat", v.ReplicaPlacement, v.Version(), size, v.Ttl.String())return true}return false