Skip to content
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

Implement wrappers around rbd_trash_* functions #66

Merged
merged 3 commits into from
Sep 17, 2018
Merged

Implement wrappers around rbd_trash_* functions #66

merged 3 commits into from
Sep 17, 2018

Conversation

dswarbrick
Copy link
Contributor

Simple wrappers around Ceph's RBD trash functionality. Refs #62.

@dotnwat
Copy link
Contributor

dotnwat commented Sep 17, 2018

This looks pretty good. Could you (1) add your Signed-off-by: Name <email> to the commit messages and (2) add a couple unit tests for the new interfaces (see https://github.com/ceph/go-ceph/blob/master/rbd/rbd_test.go)?

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
@dotnwat
Copy link
Contributor

dotnwat commented Sep 17, 2018

https://travis-ci.org/ceph/go-ceph/jobs/429766070#L2393

looks like -EPERM. There is an option in ceph that allows pools to be deleted which is off by default. I wonder if there is such an option for rbd?

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
@dswarbrick
Copy link
Contributor Author

Need to force removal from trash if the deferment time has not expired yet ;-)

@dotnwat dotnwat merged commit fd4036e into ceph:master Sep 17, 2018
@dswarbrick dswarbrick deleted the trash-wrappers branch September 18, 2018 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants