mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-02-12 05:49: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)
|
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.
|
// cleanupRBDImage removes the rbd image and OMAP metadata associated with it.
|
||||||
func cleanupRBDImage(ctx context.Context,
|
func (rbdVol *rbdVolume) cleanupRBDImage(ctx context.Context,
|
||||||
rbdVol *rbdVolume, cr *util.Credentials,
|
cr *util.Credentials,
|
||||||
) (*csi.DeleteVolumeResponse, error) {
|
) (*csi.DeleteVolumeResponse, error) {
|
||||||
info, err := rbdVol.GetMirroringInfo(ctx)
|
info, err := rbdVol.GetMirroringInfo(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user