mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rebase: bump github.com/ceph/go-ceph from 0.22.0 to 0.23.0
Bumps [github.com/ceph/go-ceph](https://github.com/ceph/go-ceph) from 0.22.0 to 0.23.0. - [Release notes](https://github.com/ceph/go-ceph/releases) - [Changelog](https://github.com/ceph/go-ceph/blob/master/docs/release-process.md) - [Commits](https://github.com/ceph/go-ceph/compare/v0.22.0...v0.23.0) --- updated-dependencies: - dependency-name: github.com/ceph/go-ceph dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
mergify[bot]
parent
6b6257c45f
commit
ef84a10910
11
vendor/github.com/ceph/go-ceph/rbd/sparsify.go
generated
vendored
11
vendor/github.com/ceph/go-ceph/rbd/sparsify.go
generated
vendored
@ -1,5 +1,5 @@
|
||||
//go:build !nautilus && ceph_preview
|
||||
// +build !nautilus,ceph_preview
|
||||
//go:build !nautilus
|
||||
// +build !nautilus
|
||||
|
||||
package rbd
|
||||
|
||||
@ -56,7 +56,8 @@ type sparsifyCallbackCtx struct {
|
||||
// int rbd_sparsify_with_progress(rbd_image_t image, size_t sparse_size,
|
||||
// librbd_progress_fn_t cb, void *cbdata);
|
||||
func (image *Image) SparsifyWithProgress(
|
||||
sparseSize uint, cb SparsifyCallback, data interface{}) error {
|
||||
sparseSize uint, cb SparsifyCallback, data interface{},
|
||||
) error {
|
||||
// the provided callback must be a real function
|
||||
if cb == nil {
|
||||
return rbdError(C.EINVAL)
|
||||
@ -80,8 +81,8 @@ func (image *Image) SparsifyWithProgress(
|
||||
|
||||
//export sparsifyCallback
|
||||
func sparsifyCallback(
|
||||
offset, total C.uint64_t, index uintptr) C.int {
|
||||
|
||||
offset, total C.uint64_t, index uintptr,
|
||||
) C.int {
|
||||
v := sparsifyCallbacks.Lookup(index)
|
||||
ctx := v.(sparsifyCallbackCtx)
|
||||
return C.int(ctx.callback(uint64(offset), uint64(total), ctx.data))
|
||||
|
Reference in New Issue
Block a user