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

librbd: exit if parent's snap is gone during clone #6968

Merged
merged 1 commit into from Dec 18, 2015

Conversation

xiexingguo
Copy link
Member

No description provided.

@dillaman dillaman added the rbd label Dec 18, 2015

if (r < 0) {
// we lost the race with snap removal?
lderr(cct) << "parent SnapInfo is gone" << dendl;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Users won't know what SnapInfo is -- suggest something like "unable to locate parent snapshot". Should also probably return -ENOENT instead of -EINVAL.

Fixes: ceph#14118
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
jdurgin added a commit that referenced this pull request Dec 18, 2015
librbd: exit if parent's snap is gone during clone

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
@jdurgin jdurgin merged commit 2340fbd into ceph:master Dec 18, 2015
@xiexingguo xiexingguo deleted the xxg-wip-14118 branch December 19, 2015 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants