Skip to content

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.

only use "" for hdd to avoid two values for the same thing

Chris Lu7403cd43c5e6
diff --git a/weed/storage/types/volume_disk_type.go b/weed/storage/types/volume_disk_type.go
index d49891a630..0e199a6264 100644
--- a/weed/storage/types/volume_disk_type.go
+++ b/weed/storage/types/volume_disk_type.go
@@ -7,7 +7,7 @@ import (
type DiskType string
const (
- HardDriveType DiskType = "hdd"
+ HardDriveType DiskType = ""
SsdType = "ssd"
)
@@ -27,7 +27,7 @@ func ToDiskType(vt string) (diskType DiskType) {
func (diskType DiskType) String() string{
if diskType == "" {
- return "hdd"
+ return ""
}
return string(diskType)
}