go-ceph/rados
Daniel M. Lambea f06baa43e5 rados: add support for retrieving the alignment (stripe size) for EC pools
Add support for getting the alignment (stripe size) in bytes for pools that require/support it.
Fixes #739

This commit adds two new API calls to IOContext, one to know if the pool requires alignment and
the second one to get the stripe size in bytes:

 RequiresAlignment() (bool, error)
 Alignment() (uint64, error)

Signed-off-by: Daniel M. Lambea <dmlambea@tenerife.es>
2022-07-26 05:57:29 +00:00
..
alloc_hint_flags.go rados: Implement rados_set_alloc_hint2 2022-07-06 17:56:39 +00:00
command.go rados: add MonCommandTarget & MonCommandTargetWithInputBuffer functions 2020-05-27 13:38:07 -04:00
command_test.go rados: merge test case into standard tests file, removing luminous tag 2021-11-09 01:24:01 +00:00
conn.go rados: Make sure Conn isn't GC'd while it has dependant IOContexts. 2022-07-01 15:30:18 +00:00
doc.go rados: use correct style for package doc comment 2019-12-12 11:34:51 -05:00
errors.go rados: add an error to be used if data is requested too early 2021-01-12 14:47:30 +00:00
errors_test.go rados: use FormatErrorCode for formatting rados errors 2020-08-10 13:03:24 -04:00
ioctx.go rados: Make sure Conn isn't GC'd while it has dependant IOContexts. 2022-07-01 15:30:18 +00:00
ioctx_nautilus.go format: run gofmt on all files 2021-10-04 18:58:35 +00:00
ioctx_nautilus_test.go format: run gofmt on all files 2021-10-04 18:58:35 +00:00
ioctx_octopus.go format: run gofmt on all files 2021-10-04 18:58:35 +00:00
ioctx_octopus_test.go format: run gofmt on all files 2021-10-04 18:58:35 +00:00
ioctx_pool_alignment.go rados: add support for retrieving the alignment (stripe size) for EC pools 2022-07-26 05:57:29 +00:00
ioctx_pool_alignment_test.go rados: add support for retrieving the alignment (stripe size) for EC pools 2022-07-26 05:57:29 +00:00
ioctx_pool_requires_alignment.go rados: add support for retrieving the alignment (stripe size) for EC pools 2022-07-26 05:57:29 +00:00
ioctx_pool_requires_alignment_test.go rados: add support for retrieving the alignment (stripe size) for EC pools 2022-07-26 05:57:29 +00:00
ioctx_set_alloc_hint.go rados: Implement rados_set_alloc_hint2 2022-07-06 17:56:39 +00:00
ioctx_set_alloc_hint_test.go rados: Implement rados_set_alloc_hint2 2022-07-06 17:56:39 +00:00
object_iter.go rados: naming conventions: fix c_entry, c_namespace 2021-06-28 13:51:01 -04:00
omap.go rados: use rados_write_op_omap_rm_keys2() 2022-03-09 14:02:56 +00:00
operation.go go-ceph: add warn logs to finalizers. 2022-07-19 14:37:32 +00:00
operation_flags.go rados: add a file to expose librados operation flags to our rados pkg 2021-01-12 14:47:30 +00:00
operation_test.go rados: add test cases for basic operation types 2021-01-12 14:47:30 +00:00
rados.go go-ceph: add warn logs to finalizers. 2022-07-19 14:37:32 +00:00
rados_nautilus.go format: run gofmt on all files 2021-10-04 18:58:35 +00:00
rados_read_op_assert_version.go rados: various readop & writeop apis are now stable 2022-06-14 16:01:43 +00:00
rados_read_op_assert_version_test.go rados: various readop & writeop apis are now stable 2022-06-14 16:01:43 +00:00
rados_set_locator.go docs: remove all PREVIEW comments 2022-06-06 14:42:04 +00:00
rados_set_locator_test.go rados: add wrapper to set locator key on IOContext (#651) 2022-03-05 15:43:02 +00:00
rados_test.go rados: adds null oid coverage to omap related tests 2022-04-21 19:27:09 +00:00
rados_write_op_assert_version.go rados: various readop & writeop apis are now stable 2022-06-14 16:01:43 +00:00
rados_write_op_assert_version_test.go rados: various readop & writeop apis are now stable 2022-06-14 16:01:43 +00:00
rados_write_op_remove.go rados: various readop & writeop apis are now stable 2022-06-14 16:01:43 +00:00
rados_write_op_remove_test.go rados: various readop & writeop apis are now stable 2022-06-14 16:01:43 +00:00
rados_write_op_setxattr.go rados: various readop & writeop apis are now stable 2022-06-14 16:01:43 +00:00
rados_write_op_setxattr_test.go rados: various readop & writeop apis are now stable 2022-06-14 16:01:43 +00:00
read_op.go rados: simplified GetOmapStep and ReadOp.GetOmapValues 2022-03-09 14:02:56 +00:00
read_op_omap_get_vals_by_keys.go rados: various readop & writeop apis are now stable 2022-06-14 16:01:43 +00:00
read_op_omap_get_vals_by_keys_test.go rados: various readop & writeop apis are now stable 2022-06-14 16:01:43 +00:00
read_op_read.go rados: various readop & writeop apis are now stable 2022-06-14 16:01:43 +00:00
read_op_read_test.go rados: various readop & writeop apis are now stable 2022-06-14 16:01:43 +00:00
read_op_test.go rados: remove errcheck linter warnings 2021-09-16 13:47:56 +00:00
read_step.go rados: implement binding for rados_read_op_read 2022-01-13 09:37:59 -05:00
snapshot.go rados: add wrapper for rados_ioctx_snap_set_read() function 2020-08-04 11:07:40 -04:00
snapshot_test.go rados: remove gosimple linter warnings 2021-09-16 13:47:56 +00:00
watcher.go rados: watcher apis are now stable 2022-06-14 16:01:43 +00:00
watcher_test.go rados: watcher apis are now stable 2022-06-14 16:01:43 +00:00
write_op.go rados: use rados_write_op_omap_rm_keys2() 2022-03-09 14:02:56 +00:00
write_op_cmpext.go rados: declare WriteOp.CmpExt as stable 2022-02-14 16:50:27 +00:00
write_op_cmpext_test.go rados: declare WriteOp.CmpExt as stable 2022-02-14 16:50:27 +00:00
write_op_set_alloc_hint.go rados: Implement rados_set_alloc_hint2 2022-07-06 17:56:39 +00:00
write_op_set_alloc_hint_test.go rados: Implement rados_set_alloc_hint2 2022-07-06 17:56:39 +00:00
write_op_test.go rados: remove errcheck linter warnings 2021-09-16 13:47:56 +00:00
write_step.go rados: add comment about missing pinning in writeStep 2021-11-15 21:47:09 +00:00