Skip to content

Commit

Permalink
rbd: rename groupNamePrefix to volumeGroupNamePrefix
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
iPraveenParihar committed Jan 9, 2025
1 parent d8477cb commit 03f5326
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/rbd/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 03f5326

Please sign in to comment.