Skip to content

Commit

Permalink
rbd: promote Image.Resize2 api to stable
Browse files Browse the repository at this point in the history
Signed-off-by: John Mulligan <jmulligan@redhat.com>
  • Loading branch information
phlogistonjohn authored and mergify[bot] committed Apr 9, 2024
1 parent 2146f1a commit 0a78704
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/api-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -1923,15 +1923,15 @@
"comment": "LockRelease releases a lock on the image.\n\nImplements:\n\n\tint rbd_lock_release(rbd_image_t image);\n",
"added_in_version": "v0.22.0",
"became_stable_version": "v0.24.0"
}
],
"preview_api": [
},
{
"name": "Image.Resize2",
"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",
"added_in_version": "v0.25.0",
"expected_stable_version": "v0.27.0"
},
"became_stable_version": "v0.27.0"
}
],
"preview_api": [
{
"name": "Image.GetSnapGroupNamespace",
"comment": "GetSnapGroupNamespace returns the SnapGroupNamespace of the snapshot which\nis part of a group. The caller should make sure that the snapshot ID passed\nin this function belongs to a snapshot that was taken as part of a group\nsnapshot.\n\nImplements:\n\n\t\tint rbd_snap_get_group_namespace(rbd_image_t image, uint64_t snap_id,\n\t rbd_snap_group_namespace_t *group_snap,\n\t size_t group_snap_size)\n",
Expand Down
1 change: 0 additions & 1 deletion docs/api-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ No Preview/Deprecated APIs found. All APIs are considered stable.

Name | Added in Version | Expected Stable Version |
---- | ---------------- | ----------------------- |
Image.Resize2 | v0.25.0 | v0.27.0 |
Image.GetSnapGroupNamespace | $NEXT_RELEASE | $NEXT_RELEASE_STABLE |

### Deprecated APIs
Expand Down
2 changes: 0 additions & 2 deletions rbd/resize.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build ceph_preview

package rbd

/*
Expand Down
2 changes: 0 additions & 2 deletions rbd/resize_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build ceph_preview

package rbd

import (
Expand Down

0 comments on commit 0a78704

Please sign in to comment.