rbd: add code to store/retrieve the image ID

cephcsi need to store and retrieve the rbd image ID
in the omap as we need the image ID to add a
task to remove the image from the Trash.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2020-06-24 12:31:06 +05:30
committed by mergify[bot]
parent 3dcef09676
commit 6ba0cd58b9
2 changed files with 26 additions and 0 deletions

View File

@ -96,6 +96,7 @@ type rbdVolume struct {
Mounter string `json:"mounter"`
ClusterID string `json:"clusterId"`
RequestName string
ReservedID string
VolName string `json:"volName"`
MonValueFromSecret string `json:"monValueFromSecret"`
VolSize int64 `json:"volSize"`
@ -121,6 +122,7 @@ type rbdSnapshot struct {
// Pool is where the image snapshot journal and snapshot is stored, and could be the same as `JournalPool`
SourceVolumeID string
RbdImageName string
ReservedID string
NamePrefix string
RbdSnapName string
SnapID string