mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
cleanup: move internal/rbd/errors.go to internal/rbd/errors pacakge
Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
@ -19,6 +19,8 @@ package rbd
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
rbderrors "github.com/ceph/ceph-csi/internal/rbd/errors"
|
||||
)
|
||||
|
||||
// Sparsify checks the size of the objects in the RBD image and calls
|
||||
@ -33,7 +35,7 @@ func (ri *rbdImage) Sparsify(_ context.Context) error {
|
||||
}
|
||||
if inUse {
|
||||
// if the image is in use, we should not sparsify it, return ErrImageInUse.
|
||||
return ErrImageInUse
|
||||
return rbderrors.ErrImageInUse
|
||||
}
|
||||
|
||||
image, err := ri.open()
|
||||
|
Reference in New Issue
Block a user