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 committed Aug 21, 2024
1 parent cc6835e commit c44c09d
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 c44c09d

Please sign in to comment.