-
Notifications
You must be signed in to change notification settings - Fork 255
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
Add wrappers for rbd trash
functionality
#62
Comments
The current plan is to keep go-ceph master branch up-to-date with ceph master, and then fork out branches for versions that have backwards compat issues. I believe the current go-ceph master branch has some deprecations, but we haven't yet cut any branch according to this plan. So if you'd like to build these wrappers you can submit a PR against the master branch and we'll figure out how to build these other branches in the future. If you happen to have any opinions about how to handle the compat issues, we are also interested in hearing those. But so far these simple plan has been the consensus. |
@noahdesu After merging #66, would you mind please running |
@dswarbrick do you know what the command is to validate with go fmt? I think it go right here https://github.com/ceph/go-ceph/blob/master/entrypoint.sh#L12 |
@noahdesu You can use something like Added to travis.yml, it should appear in the script:
- diff -u <(echo -n) <(gofmt -d -s .) |
Thanks, that's in the CI now along with fmt fixes. |
The
trash
subcommand of therbd
command caught my attention recently, and it would be very useful to have wrappers for these functions in go-ceph. Although the functionality is available in Luminous (and maybe earlier?), it is only documented in therbd
manpage in current master branch.The relevant functions that would need wrappers are defined in librbd.h:
I can probably have a go at this myself, but I'm just not sure what the current status is as far as go-ceph supporting backwards compatibility. Obviously it will fail to build against Jewel, Kraken etc if we just blindly add these functions.
The text was updated successfully, but these errors were encountered: