From 02a79943cb492130d3637673a5acc3625f6019e5 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 (cherry picked from commit 38fd27a209cd986ae1bcffc8c9da5c3d316604be) --- 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,