From b1a0bb471402e52e43164a9185fa561eb1fd86b0 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 20 Dec 2021 19:36:24 +0530 Subject: [PATCH] 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 --- internal/rbd/rbd_util.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/rbd/rbd_util.go b/internal/rbd/rbd_util.go index 915412e8a..69bcc913a 100644 --- a/internal/rbd/rbd_util.go +++ b/internal/rbd/rbd_util.go @@ -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