From 70ddb1dbea2139cb4f2677220e8fa0b919ec1a61 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 3 Oct 2023 10:06:08 -0400 Subject: [PATCH] rbd: promote lock apis to stable Signed-off-by: John Mulligan --- docs/api-status.json | 17 ++++++++--------- docs/api-status.md | 10 ---------- rbd/locks.go | 4 ++-- rbd/locks_test.go | 4 ++-- 4 files changed, 12 insertions(+), 23 deletions(-) diff --git a/docs/api-status.json b/docs/api-status.json index ac9ee65..fdc3422 100644 --- a/docs/api-status.json +++ b/docs/api-status.json @@ -1894,40 +1894,39 @@ "comment": "SparsifyWithProgress makes an image sparse by deallocating runs of zeros.\nThe sparseSize value will be used to find runs of zeros and must be\na power of two no less than 4096 and no larger than the image size.\nThe given progress callback will be called to report on the progress\nof sparse. The operation will be aborted if the progress callback returns\na non-zero value.\n\nImplements:\n\n\tint rbd_sparsify_with_progress(rbd_image_t image, size_t sparse_size,\n\t\t\t\t\t\t\t\t librbd_progress_fn_t cb, void *cbdata);\n", "added_in_version": "v0.21.0", "became_stable_version": "v0.23.0" - } - ], - "preview_api": [ + }, { "name": "Image.LockAcquire", "comment": "LockAcquire takes a lock on the given image as per the provided lock_mode.\n\nImplements:\n\n\tint rbd_lock_acquire(rbd_image_t image, rbd_lock_mode_t lock_mode);\n", "added_in_version": "v0.22.0", - "expected_stable_version": "v0.24.0" + "became_stable_version": "v0.24.0" }, { "name": "Image.LockBreak", "comment": "LockBreak breaks the lock of lock_mode on the provided lock_owner.\n\nImplements:\n\n\tint rbd_lock_break(rbd_image_t image, rbd_lock_mode_t lock_mode,\n\t\t\t\t\t const char *lock_owner);\n", "added_in_version": "v0.22.0", - "expected_stable_version": "v0.24.0" + "became_stable_version": "v0.24.0" }, { "name": "Image.LockGetOwners", "comment": "LockGetOwners fetches the list of lock owners.\n\nImplements:\n\n\tint rbd_lock_get_owners(rbd_image_t image, rbd_lock_mode_t *lock_mode,\n\t\t\t\t\t\t\tchar **lock_owners, size_t *max_lock_owners);\n", "added_in_version": "v0.22.0", - "expected_stable_version": "v0.24.0" + "became_stable_version": "v0.24.0" }, { "name": "Image.LockIsExclusiveOwner", "comment": "LockIsExclusiveOwner gets the status of the image exclusive lock.\n\nImplements:\n\n\tint rbd_is_exclusive_lock_owner(rbd_image_t image, int *is_owner);\n", "added_in_version": "v0.22.0", - "expected_stable_version": "v0.24.0" + "became_stable_version": "v0.24.0" }, { "name": "Image.LockRelease", "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", - "expected_stable_version": "v0.24.0" + "became_stable_version": "v0.24.0" } - ] + ], + "preview_api": [] }, "rbd/admin": { "stable_api": [ diff --git a/docs/api-status.md b/docs/api-status.md index f9528b6..064a1d2 100644 --- a/docs/api-status.md +++ b/docs/api-status.md @@ -27,16 +27,6 @@ No Preview/Deprecated APIs found. All APIs are considered stable. ## Package: rbd -### Preview APIs - -Name | Added in Version | Expected Stable Version | ----- | ---------------- | ----------------------- | -Image.LockAcquire | v0.22.0 | v0.24.0 | -Image.LockBreak | v0.22.0 | v0.24.0 | -Image.LockGetOwners | v0.22.0 | v0.24.0 | -Image.LockIsExclusiveOwner | v0.22.0 | v0.24.0 | -Image.LockRelease | v0.22.0 | v0.24.0 | - ### Deprecated APIs Name | Deprecated in Version | Expected Removal Version | diff --git a/rbd/locks.go b/rbd/locks.go index b4c9c09..e5537c1 100644 --- a/rbd/locks.go +++ b/rbd/locks.go @@ -1,5 +1,5 @@ -//go:build !nautilus && ceph_preview -// +build !nautilus,ceph_preview +//go:build !nautilus +// +build !nautilus package rbd diff --git a/rbd/locks_test.go b/rbd/locks_test.go index 736d70d..45f3ef7 100644 --- a/rbd/locks_test.go +++ b/rbd/locks_test.go @@ -1,5 +1,5 @@ -//go:build !nautilus && ceph_preview -// +build !nautilus,ceph_preview +//go:build !nautilus +// +build !nautilus package rbd