mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-05-29 10:06:41 +00:00
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 <madhupr007@gmail.com> (cherry picked from commit 38fd27a209cd986ae1bcffc8c9da5c3d316604be)
This commit is contained in:
parent
043ec22aa9
commit
02a79943cb
@ -106,6 +106,7 @@ func (rv *rbdVolume) toSnapshot() *rbdSnapshot {
|
|||||||
rbdImage: rbdImage{
|
rbdImage: rbdImage{
|
||||||
ClusterID: rv.ClusterID,
|
ClusterID: rv.ClusterID,
|
||||||
VolID: rv.VolID,
|
VolID: rv.VolID,
|
||||||
|
VolSize: rv.VolSize,
|
||||||
Monitors: rv.Monitors,
|
Monitors: rv.Monitors,
|
||||||
Pool: rv.Pool,
|
Pool: rv.Pool,
|
||||||
JournalPool: rv.JournalPool,
|
JournalPool: rv.JournalPool,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user