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 <m.praveen@ibm.com>
This commit is contained in:
Praveen M 2025-01-08 16:21:08 +05:30 committed by mergify[bot]
parent d8477cb9d4
commit eebfd15e78

View File

@ -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 {