mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
show volume info in volume.list in weed shell
This commit is contained in:
parent
1becbce657
commit
7ae8b1cc86
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue