aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/disk_location.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-12-14 00:51:57 -0800
committerChris Lu <chris.lu@gmail.com>2020-12-14 00:51:57 -0800
commit2e8dba571b9182ea5f5cdc74bffabce33db514a7 (patch)
treeeac54b588b1553fbaa64c663f5ad32dcad27647f /weed/storage/disk_location.go
parentbf5873022d2f78aa2780b458afa18985057e0b60 (diff)
downloadseaweedfs-2e8dba571b9182ea5f5cdc74bffabce33db514a7.tar.xz
seaweedfs-2e8dba571b9182ea5f5cdc74bffabce33db514a7.zip
adjust volume server UI
Diffstat (limited to 'weed/storage/disk_location.go')
-rw-r--r--weed/storage/disk_location.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go
index 88a52ccd8..7030900dc 100644
--- a/weed/storage/disk_location.go
+++ b/weed/storage/disk_location.go
@@ -354,3 +354,10 @@ func (l *DiskLocation) CheckDiskSpace() {
}
}
+
+func (l *DiskLocation) GetDiskType() string {
+ if l.DiskType == SsdType {
+ return "SSD"
+ }
+ return "HDD"
+} \ No newline at end of file