rbd: add .requestName to the commonVolumeGroup struct

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos 2024-09-25 16:34:56 +02:00 committed by mergify[bot]
parent 4b13e9132b
commit 29bf5797b0

View File

@ -34,6 +34,9 @@ type commonVolumeGroup struct {
// is used to find the group in the journal. // is used to find the group in the journal.
id string id string
// requestName is passed by the caller when a group is created.
requestName string
// name is used in RBD API calls as the name of this object // name is used in RBD API calls as the name of this object
name string name string
@ -130,6 +133,7 @@ func (cvg *commonVolumeGroup) getVolumeGroupAttributes(ctx context.Context) (*jo
attrs = &journal.VolumeGroupAttributes{} attrs = &journal.VolumeGroupAttributes{}
} }
cvg.requestName = attrs.RequestName
cvg.name = attrs.GroupName cvg.name = attrs.GroupName
cvg.creationTime = attrs.CreationTime cvg.creationTime = attrs.CreationTime