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 <madhupr007@gmail.com>
(cherry picked from commit 38fd27a)
  • Loading branch information
Madhu-1 authored and nixpanic committed Aug 22, 2024
1 parent 043ec22 commit 9e18721
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 9e18721

Please sign in to comment.