Skip to content

Commit

Permalink
rbd: add image size in toSnapshot
Browse files Browse the repository at this point in the history
we need to return the rbd image size
as a snapshot size in CreateSnapshot
Response.

fixes: #4788

Signed-off-by: Madhu Rajanna <[email protected]>
(cherry picked from commit 38fd27a)
  • Loading branch information
Madhu-1 authored and mergify[bot] committed Aug 21, 2024
1 parent b18a809 commit e3d4f57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/rbd/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e3d4f57

Please sign in to comment.