rbd: move VolSize to rbdImage struct

move the Volsize to the rbdImage struct
as size is more applicable for rbdImage
as rbdImage is used for both rbdVolume
and rbdSnapshot.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2021-12-20 19:36:24 +05:30 committed by mergify[bot]
parent a0829e9e93
commit b1a0bb4714

View File

@ -107,6 +107,9 @@ type rbdImage struct {
// identifying this rbd image
VolID string `json:"volID"`
// VolSize is the size of the RBD image backing this rbdImage.
VolSize int64
Monitors string
// JournalPool is the ceph pool in which the CSI Journal/CSI snapshot Journal is
// stored
@ -163,7 +166,6 @@ type rbdVolume struct {
LogStrategy string
VolName string
MonValueFromSecret string
VolSize int64
// RequestedVolSize has the size of the volume requested by the user and
// this value will not be updated when doing getImageInfo() on rbdVolume.
RequestedVolSize int64