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: small fixes for error messages and readahead counter #6983

Merged
merged 4 commits into from Dec 23, 2015

Conversation

xiexingguo
Copy link
Member

Fix http://tracker.ceph.com/issues/14127
And improve some tip messages.

Signed-off-by: xie xingguo xie.xingguo@zte.com.cn

@xiexingguo xiexingguo changed the title librbd: return error if we are unable to remove the previously create… librbd: small fixes Dec 19, 2015
@@ -256,6 +256,7 @@ int validate_pool(IoCtx &io_ctx, CephContext *cct) {
if (r < 0) {
lderr(cct) << "failed to release self-managed snapshot " << snap_id
<< ": " << cpp_strerror(r) << dendl;
return r;

Choose a reason for hiding this comment

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

Not returning the error result was intentional. There is no way to recover and delete the snapshot id ever again -- and the pool has already been changed to self-managed snapshot mode. Therefore, no need to abort the create request.

Fixes: ceph#14127
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
As equivalent size is ok for copy.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
It's more human-readable.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@ghost
Copy link

ghost commented Dec 20, 2015

@xiexingguo you can ignore the bot failure at http://jenkins.ceph.dachary.org/job/ceph/LABELS=centos-7&&x86_64/10346/, it is a known false negative ( see http://tracker.ceph.com/issues/14092 for details).

@xiexingguo
Copy link
Member Author

@dillaman Please take a look at this one too, which is fixed as just you suggested, thanks!

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
jdurgin added a commit that referenced this pull request Dec 23, 2015
librbd: small fixes for error messages and readahead counter

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
@jdurgin jdurgin merged commit 243146c into ceph:master Dec 23, 2015
@xiexingguo xiexingguo deleted the xxg-wip-14126 branch December 23, 2015 23:23
@ghost ghost changed the title librbd: small fixes librbd: small fixes for error messages and readahead counter Feb 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants