From bdf68ef1b5bd11db8f6f5a976ae07fcfb3caaab0 Mon Sep 17 00:00:00 2001 From: Praveen M Date: Wed, 8 Jan 2025 16:21:08 +0530 Subject: [PATCH] rbd: rename groupNamePrefix to volumeGroupNamePrefix CephFS uses the parameter `volumeGroupNamePrefix` for creating VolumeGroups. This commit renames `groupNamePrefix` to `volumeGroupNamePrefix` for RBD VolumeGroup creation to ensure consistent naming. Signed-off-by: Praveen M (cherry picked from commit eebfd15e78a184a9abf9321a3d57d91a57ef2a36) --- internal/rbd/manager.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/rbd/manager.go b/internal/rbd/manager.go index 8b0d6a064..ced7026fc 100644 --- a/internal/rbd/manager.go +++ b/internal/rbd/manager.go @@ -346,8 +346,8 @@ func (mgr *rbdManager) GetVolumeGroupSnapshotByName( return nil, errors.New("required 'pool' option missing in volume group parameters") } - // groupNamePrefix is an optional parameter, can be an empty string - prefix := mgr.parameters["groupNamePrefix"] + // volumeGroupNamePrefix is an optional parameter, can be an empty string + prefix := mgr.parameters["volumeGroupNamePrefix"] clusterID, err := util.GetClusterID(mgr.parameters) if err != nil { @@ -409,8 +409,8 @@ func (mgr *rbdManager) CreateVolumeGroupSnapshot( return nil, err } - // groupNamePrefix is an optional parameter, can be an empty string - prefix := mgr.parameters["groupNamePrefix"] + // volumeGroupNamePrefix is an optional parameter, can be an empty string + prefix := mgr.parameters["volumeGroupNamePrefix"] clusterID, err := vg.GetClusterID(ctx) if err != nil {