rados: Make IOContext.RequiresAlignment stable

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
This commit is contained in:
Anoop C S 2022-12-05 17:29:59 +05:30 committed by mergify[bot]
parent 6e051a520d
commit 44b8b10b97
4 changed files with 5 additions and 16 deletions

View File

@ -1030,16 +1030,15 @@
"comment": "Alignment returns the required stripe size in bytes for pools supporting/requiring it, or an error if unsuccessful.\nFor an EC pool, a buffer size multiple of its stripe size is required to call Append. To know if the pool requires\nalignment or not, use RequiresAlignment.\n\nImplements:\n int rados_ioctx_pool_required_alignment2(rados_ioctx_t io, uint64_t *alignment)\n", "comment": "Alignment returns the required stripe size in bytes for pools supporting/requiring it, or an error if unsuccessful.\nFor an EC pool, a buffer size multiple of its stripe size is required to call Append. To know if the pool requires\nalignment or not, use RequiresAlignment.\n\nImplements:\n int rados_ioctx_pool_required_alignment2(rados_ioctx_t io, uint64_t *alignment)\n",
"added_in_version": "v0.17.0", "added_in_version": "v0.17.0",
"became_stable_version": "v0.19.0" "became_stable_version": "v0.19.0"
} },
],
"preview_api": [
{ {
"name": "IOContext.RequiresAlignment", "name": "IOContext.RequiresAlignment",
"comment": "RequiresAlignment returns true if the pool supports/requires alignment or an error if not successful.\nFor an EC pool, a buffer size multiple of its stripe size is required to call Append. See\nAlignment to know how to get the stripe size for pools requiring it.\n\nImplements:\n int rados_ioctx_pool_requires_alignment2(rados_ioctx_t io, int *req)\n", "comment": "RequiresAlignment returns true if the pool supports/requires alignment or an error if not successful.\nFor an EC pool, a buffer size multiple of its stripe size is required to call Append. See\nAlignment to know how to get the stripe size for pools requiring it.\n\nImplements:\n int rados_ioctx_pool_requires_alignment2(rados_ioctx_t io, int *req)\n",
"added_in_version": "v0.17.0", "added_in_version": "v0.17.0",
"expected_stable_version": "v0.19.0" "became_stable_version": "v0.19.0"
} }
] ],
"preview_api": []
}, },
"rbd": { "rbd": {
"deprecated_api": [ "deprecated_api": [

View File

@ -12,11 +12,7 @@ No Preview/Deprecated APIs found. All APIs are considered stable.
## Package: rados ## Package: rados
### Preview APIs No Preview/Deprecated APIs found. All APIs are considered stable.
Name | Added in Version | Expected Stable Version |
---- | ---------------- | ----------------------- |
IOContext.RequiresAlignment | v0.17.0 | v0.19.0 |
## Package: rbd ## Package: rbd

View File

@ -1,6 +1,3 @@
//go:build ceph_preview
// +build ceph_preview
package rados package rados
// #cgo LDFLAGS: -lrados // #cgo LDFLAGS: -lrados

View File

@ -1,6 +1,3 @@
//go:build ceph_preview
// +build ceph_preview
package rados package rados
import ( import (