From 29bf5797b01713b18c135cd7ff09b93f17412c63 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 25 Sep 2024 16:34:56 +0200 Subject: [PATCH] rbd: add `.requestName` to the `commonVolumeGroup` struct Signed-off-by: Niels de Vos --- internal/rbd/group/util.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/rbd/group/util.go b/internal/rbd/group/util.go index f32b24cd8..a588eba3e 100644 --- a/internal/rbd/group/util.go +++ b/internal/rbd/group/util.go @@ -34,6 +34,9 @@ type commonVolumeGroup struct { // is used to find the group in the journal. 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 string @@ -130,6 +133,7 @@ func (cvg *commonVolumeGroup) getVolumeGroupAttributes(ctx context.Context) (*jo attrs = &journal.VolumeGroupAttributes{} } + cvg.requestName = attrs.RequestName cvg.name = attrs.GroupName cvg.creationTime = attrs.CreationTime