-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rbd: implement librbd.rbd_group_snap_get_info #1025
base: master
Are you sure you want to change the base?
Conversation
a40229f
to
dee055a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we could ignore the norm to have the corresponding tests for the newly introduced API in a separate source file, which I think may not hold good here due to its nature, changes look good to me.
@Mergifyio rebase |
dee055a
to
5d6c6f6
Compare
✅ Branch has been successfully rebased |
|
|
The new GroupSnapGetInfo function can be used to get a list of the RBD image snapshots that were created as part of the RBD group snapshot. Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
5d6c6f6
to
2052bb5
Compare
Pull request has been modified.
#include <rbd/librbd.h> | ||
|
||
// exact copy of librbd.h:rbd_group_snap_namespace_type_t as it is not included in all versions | ||
#ifndef RBD_GROUP_SNAP_NAMESPACE_TYPE_USER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of defining the underscored versions below, could ifndef
block just be extended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yes, that probably works too. Would make it a little cleaner. I'll try that once the Ceph PR is merged.
The new GroupSnapGetInfo function can be used to get a list of the RBD
image snapshots that were created as part of the RBD group snapshot.
This feature is implemented in 2 steps:
dlsym
I hope that makes it easier to understand, and might help others contributing such dynamically loaded functions too.
Depends-on: ceph/ceph#59883
Checklist
//go:build ceph_preview
make api-update
to record new APIs