Skip to content

Commit 90ae26a

Browse files
anoopcs9mergify[bot]
authored andcommitted
rbd: Fix a typo in comment for Image.Resize2
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
1 parent ee8d569 commit 90ae26a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/api-status.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,7 +1921,7 @@
19211921
"preview_api": [
19221922
{
19231923
"name": "Image.Resize2",
1924-
"comment": "Resize2 resizes an rbd image and allows configuration of allow_shrink and a callback function. The callback\nfunction will be called with the first argument as the progress, the second argument as the total, and the third\nargument as an opaque value that is passed to the Resize2 function's data argument in each callback execution.\nThe resize operation will be aborted if the progress callback returns a non-zero value.\n\nImplements:\n\n\tint rbd_resize(rbd_image_t image, uint64_t size, allow_shrink bool, librbd_progress_fn_t cb, void *cbdata);\n",
1924+
"comment": "Resize2 resizes an rbd image and allows configuration of allow_shrink and a callback function. The callback\nfunction will be called with the first argument as the progress, the second argument as the total, and the third\nargument as an opaque value that is passed to the Resize2 function's data argument in each callback execution.\nThe resize operation will be aborted if the progress callback returns a non-zero value.\n\nImplements:\n\n\tint rbd_resize2(rbd_image_t image, uint64_t size, allow_shrink bool, librbd_progress_fn_t cb, void *cbdata);\n",
19251925
"added_in_version": "v0.25.0",
19261926
"expected_stable_version": "v0.27.0"
19271927
}
@@ -2216,4 +2216,4 @@
22162216
}
22172217
]
22182218
}
2219-
}
2219+
}

rbd/resize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func resize2Callback(
5252
//
5353
// Implements:
5454
//
55-
// int rbd_resize(rbd_image_t image, uint64_t size, allow_shrink bool, librbd_progress_fn_t cb, void *cbdata);
55+
// int rbd_resize2(rbd_image_t image, uint64_t size, allow_shrink bool, librbd_progress_fn_t cb, void *cbdata);
5656
func (image *Image) Resize2(size uint64, allowShrink bool, cb Resize2ProgressCallback, data interface{}) error {
5757
// the provided callback must be a real function
5858
if cb == nil {

0 commit comments

Comments
 (0)