Skip to content

Commit

Permalink
rados: Make IOContext.Alignment stable
Browse files Browse the repository at this point in the history
Signed-off-by: Anoop C S <[email protected]>
  • Loading branch information
anoopcs9 authored and mergify[bot] committed Dec 6, 2022
1 parent fd7a47b commit 6e051a5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
10 changes: 5 additions & 5 deletions docs/api-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -1024,15 +1024,15 @@
"comment": "SetAllocationHint sets allocation hint for an object. This is an advisory\noperation, it will always succeed (as if it was submitted with a\nLIBRADOS_OP_FLAG_FAILOK flag set) and is not guaranteed to do anything on\nthe backend.\n\nImplements:\n void rados_write_op_set_alloc_hint2(rados_write_op_t write_op,\n uint64_t expected_object_size,\n uint64_t expected_write_size,\n uint32_t flags);\n",
"added_in_version": "v0.17.0",
"became_stable_version": "v0.19.0"
}
],
"preview_api": [
},
{
"name": "IOContext.Alignment",
"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",
"expected_stable_version": "v0.19.0"
},
"became_stable_version": "v0.19.0"
}
],
"preview_api": [
{
"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",
Expand Down
1 change: 0 additions & 1 deletion docs/api-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ No Preview/Deprecated APIs found. All APIs are considered stable.

Name | Added in Version | Expected Stable Version |
---- | ---------------- | ----------------------- |
IOContext.Alignment | v0.17.0 | v0.19.0 |
IOContext.RequiresAlignment | v0.17.0 | v0.19.0 |

## Package: rbd
Expand Down
3 changes: 0 additions & 3 deletions rados/ioctx_pool_alignment.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build ceph_preview
// +build ceph_preview

package rados

// #cgo LDFLAGS: -lrados
Expand Down
3 changes: 0 additions & 3 deletions rados/ioctx_pool_alignment_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build ceph_preview
// +build ceph_preview

package rados

import (
Expand Down

0 comments on commit 6e051a5

Please sign in to comment.