show volume info in volume.list in weed shell

This commit is contained in:
Chris Lu 2019-12-02 23:38:56 -08:00
parent 1becbce657
commit 7ae8b1cc86

View file

@ -37,6 +37,8 @@ func NewVolumeInfo(m *master_pb.VolumeInformationMessage) (vi VolumeInfo, err er
Version: needle.Version(m.Version), Version: needle.Version(m.Version),
CompactRevision: m.CompactRevision, CompactRevision: m.CompactRevision,
ModifiedAtSecond: m.ModifiedAtSecond, ModifiedAtSecond: m.ModifiedAtSecond,
RemoteStorageName: m.RemoteStorageName,
RemoteStorageKey: m.RemoteStorageKey,
} }
rp, e := NewReplicaPlacementFromByte(byte(m.ReplicaPlacement)) rp, e := NewReplicaPlacementFromByte(byte(m.ReplicaPlacement))
if e != nil { if e != nil {
@ -81,6 +83,8 @@ func (vi VolumeInfo) ToVolumeInformationMessage() *master_pb.VolumeInformationMe
Ttl: vi.Ttl.ToUint32(), Ttl: vi.Ttl.ToUint32(),
CompactRevision: vi.CompactRevision, CompactRevision: vi.CompactRevision,
ModifiedAtSecond: vi.ModifiedAtSecond, ModifiedAtSecond: vi.ModifiedAtSecond,
RemoteStorageName: vi.RemoteStorageName,
RemoteStorageKey: vi.RemoteStorageKey,
} }
} }