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: ceph#4788

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
  • Loading branch information
Madhu-1 authored and nixpanic committed Aug 21, 2024
1 parent 9181d20 commit a6a5794
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 a6a5794

Please sign in to comment.