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
adjust printing
Chris Lu0611233f16ff
diff --git a/weed/shell/command_volume_list.go b/weed/shell/command_volume_list.goindex 1409983380..dc8783cd1e 100644--- a/weed/shell/command_volume_list.go+++ b/weed/shell/command_volume_list.go@@ -48,6 +48,9 @@ func (c *commandVolumeList) Do(args []string, commandEnv *CommandEnv, writer io.func diskInfosToString(diskInfos map[string]*master_pb.DiskInfo) string {var buf bytes.Bufferfor diskType, diskInfo := range diskInfos {+ if diskType == "" {+ diskType = "hdd"+ }fmt.Fprintf(&buf, " %s(volume:%d/%d active:%d free:%d remote:%d)", diskType, diskInfo.VolumeCount, diskInfo.MaxVolumeCount, diskInfo.ActiveVolumeCount, diskInfo.FreeVolumeCount, diskInfo.RemoteVolumeCount)}return buf.String()@@ -107,7 +110,11 @@ func writeDataNodeInfo(writer io.Writer, t *master_pb.DataNodeInfo) statistics {func writeDiskInfo(writer io.Writer, t *master_pb.DiskInfo) statistics {var s statistics- fmt.Fprintf(writer, " Disk %s(%s)\n", t.Type, diskInfoToString(t))+ diskType := t.Type+ if diskType == "" {+ diskType = "hdd"+ }+ fmt.Fprintf(writer, " Disk %s(%s)\n", diskType, diskInfoToString(t))sort.Slice(t.VolumeInfos, func(i, j int) bool {return t.VolumeInfos[i].Id < t.VolumeInfos[j].Id})@@ -117,7 +124,7 @@ func writeDiskInfo(writer io.Writer, t *master_pb.DiskInfo) statistics {for _, ecShardInfo := range t.EcShardInfos {fmt.Fprintf(writer, " ec volume id:%v collection:%v shards:%v\n", ecShardInfo.Id, ecShardInfo.Collection, erasure_coding.ShardBits(ecShardInfo.EcIndexBits).ShardIds())}- fmt.Fprintf(writer, " Disk %s %+v \n", t.Type, s)+ fmt.Fprintf(writer, " Disk %s %+v \n", diskType, s)return s}