mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-27 16:50:23 +00:00
rbd: extract volumeNamePrefix in RegenerateJournal()
Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit b960e3633a
)
This commit is contained in:
parent
5189ccc13e
commit
2545101842
@ -523,6 +523,7 @@ func undoVolReservation(ctx context.Context, rbdVol *rbdVolume, cr *util.Credent
|
|||||||
|
|
||||||
// RegenerateJournal performs below operations
|
// RegenerateJournal performs below operations
|
||||||
// Extract parameters journalPool, pool from volumeAttributes
|
// Extract parameters journalPool, pool from volumeAttributes
|
||||||
|
// Extract optional parameter volumeNamePrefix from volumeAttributes
|
||||||
// Extract information from volumeID
|
// Extract information from volumeID
|
||||||
// Get pool ID from pool name
|
// Get pool ID from pool name
|
||||||
// Extract uuid from volumeID
|
// Extract uuid from volumeID
|
||||||
@ -587,7 +588,7 @@ func RegenerateJournal(
|
|||||||
}
|
}
|
||||||
|
|
||||||
rbdVol.RequestName = requestName
|
rbdVol.RequestName = requestName
|
||||||
// TODO add Nameprefix also
|
rbdVol.NamePrefix = volumeAttributes["volumeNamePrefix"]
|
||||||
|
|
||||||
kmsID := ""
|
kmsID := ""
|
||||||
imageData, err := j.CheckReservation(
|
imageData, err := j.CheckReservation(
|
||||||
|
Loading…
Reference in New Issue
Block a user