mirror of
https://github.com/ceph/go-ceph
synced 2024-12-22 06:10:09 +00:00
f06baa43e5
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>
16 lines
255 B
Go
16 lines
255 B
Go
//go:build ceph_preview
|
|
// +build ceph_preview
|
|
|
|
package rados
|
|
|
|
import (
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func (suite *RadosTestSuite) TestAlignment() {
|
|
suite.SetupConnection()
|
|
|
|
_, err := suite.ioctx.Alignment()
|
|
assert.NoError(suite.T(), err)
|
|
}
|