mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-18 04:10:22 +00:00
rbd: remove redundant rbdVol.getTrashPath() function
This commit removes rbdVol.getTrashPath() function since it is no longer being used due to introduction of go-ceph rbd admin task api for deletion. Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
parent
9adb25691c
commit
420aa9ec57
@ -617,16 +617,6 @@ func isCephMgrSupported(ctx context.Context, clusterID string, err error) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// getTrashPath returns the image path for trash operation.
|
||||
func (rv *rbdVolume) getTrashPath() string {
|
||||
trashPath := rv.Pool
|
||||
if rv.RadosNamespace != "" {
|
||||
trashPath = trashPath + "/" + rv.RadosNamespace
|
||||
}
|
||||
|
||||
return trashPath + "/" + rv.ImageID
|
||||
}
|
||||
|
||||
// ensureImageCleanup finds image in trash and if found removes it
|
||||
// from trash.
|
||||
func (rv *rbdVolume) ensureImageCleanup(ctx context.Context) error {
|
||||
|
Loading…
Reference in New Issue
Block a user