mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-02-07 11:59:29 +00:00
rbd: make cleanupRBDImage
a function of rbdVolume
Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
parent
6965c434ed
commit
075abcac67
@ -981,12 +981,12 @@ func (cs *ControllerServer) DeleteVolume(
|
||||
}
|
||||
defer cs.VolumeLocks.Release(requestName)
|
||||
|
||||
return cleanupRBDImage(ctx, rbdVol, cr)
|
||||
return rbdVol.cleanupRBDImage(ctx, cr)
|
||||
}
|
||||
|
||||
// cleanupRBDImage removes the rbd image and OMAP metadata associated with it.
|
||||
func cleanupRBDImage(ctx context.Context,
|
||||
rbdVol *rbdVolume, cr *util.Credentials,
|
||||
func (rbdVol *rbdVolume) cleanupRBDImage(ctx context.Context,
|
||||
cr *util.Credentials,
|
||||
) (*csi.DeleteVolumeResponse, error) {
|
||||
info, err := rbdVol.GetMirroringInfo(ctx)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user