rados: Add support for rados_checksum API#1262
Conversation
|
Thanks for being so accepting of my suggestions. If you don't mind I like to ask another: please squash the commits into one. We generally prefer a linear history in go-ceph and would prefer the final versions of the code not reflect evolution of each change. (FWIW >1 commit is fine, but that should reflect steps to add fixes/features not intra-PR steps - if that makes any sense) |
06bb165 to
1195a77
Compare
|
No problem! Updated (and sorry, I'd just assumed squash-on-merge) |
1195a77 to
93d20dd
Compare
Pull request has been modified.
93d20dd to
db49dbd
Compare
db49dbd to
7d13e97
Compare
anoopcs9
left a comment
There was a problem hiding this comment.
nitpick
I see mixed usage of assert.Nil() and assert.NoError() in the test files. Can we converge on a single style, preferably assert.NoError(), throughout the file?
332d2e1 to
2c41b01
Compare
anoopcs9
left a comment
There was a problem hiding this comment.
lgtm with a minor comment.
Thanks for the swift updates.
2c41b01 to
fb2fc0d
Compare
|
@Mergifyio update |
❌ Mergify doesn't have permission to updateDetailsFor security reasons, Mergify can't update this pull request. Try updating locally. |
|
@Mergifyio rebase |
Add support for in-OSD calculations of object checksums using one of the supported algorithms: * XXHash32 * XXHash64 * CRC32 Signed-off-by: Max Naylor <maxnaylor09@gmail.com>
|
Deprecation notice: This pull request comes from a fork and was rebased using |
✅ Branch has been successfully rebased |
fb2fc0d to
616180b
Compare
Merge Queue Status
This pull request spent 10 seconds in the queue, including 2 seconds running CI. Required conditions to merge
|
These changes add the Checksum method to
rados.IOContextthat implements therados_checksummethod for all Ceph-supported checksum types (XXHash32, XXHash64, and CRC32).RADOS API: https://github.com/ceph/ceph/blob/226cf55c23404ad4784c6bb3f8a7c85e02bcca08/src/include/rados/librados.h#L1615-L1619
Reference
IOCtxImpl.checksummethod: https://github.com/ceph/ceph/blob/c6ea09b123c45a19190f2b65e4c9f1fbc4282ca6/src/librados/IoCtxImpl.h#L142-L143Notes:
Checklist
//go:build ceph_previewmake api-updateto record new APIs