csiaddons: use rbd.Manager within ReclaimSpaceControllerServer

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos
2025-01-20 11:11:07 +01:00
committed by mergify[bot]
parent 6560eee3d8
commit af0a223edb
5 changed files with 19 additions and 13 deletions

View File

@ -17,6 +17,7 @@ limitations under the License.
package rbd
import (
"context"
"fmt"
)
@ -25,7 +26,7 @@ import (
// of the image.
// This function will return ErrImageInUse if the image is in use, since
// sparsifying an image on which i/o is in progress is not optimal.
func (ri *rbdImage) Sparsify() error {
func (ri *rbdImage) Sparsify(_ context.Context) error {
inUse, err := ri.isInUse()
if err != nil {
return fmt.Errorf("failed to check if image is in use: %w", err)