From a6a5794f791896c885da326119577caabdb12d0d Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Wed, 21 Aug 2024 09:50:09 +0200 Subject: [PATCH] rbd: add image size in toSnapshot we need to return the rbd image size as a snapshot size in CreateSnapshot Response. fixes: #4788 Signed-off-by: Madhu Rajanna --- internal/rbd/snapshot.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/rbd/snapshot.go b/internal/rbd/snapshot.go index fd7badb41e6..d0234e8ca58 100644 --- a/internal/rbd/snapshot.go +++ b/internal/rbd/snapshot.go @@ -106,6 +106,7 @@ func (rv *rbdVolume) toSnapshot() *rbdSnapshot { rbdImage: rbdImage{ ClusterID: rv.ClusterID, VolID: rv.VolID, + VolSize: rv.VolSize, Monitors: rv.Monitors, Pool: rv.Pool, JournalPool: rv.JournalPool,