mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
Merge pull request #12638 from yangdongsheng/rbd_remove_incompatible
librbd: don't continue to remove an image w/ incompatible features Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
21a8c69313
@ -1502,6 +1502,9 @@ int mirror_image_disable_internal(ImageCtx *ictx, bool force,
|
||||
if (r < 0) {
|
||||
ldout(cct, 2) << "error opening image: " << cpp_strerror(-r) << dendl;
|
||||
delete ictx;
|
||||
if (r != -ENOENT) {
|
||||
return r;
|
||||
}
|
||||
} else {
|
||||
string header_oid = ictx->header_oid;
|
||||
old_format = ictx->old_format;
|
||||
|
Loading…
Reference in New Issue
Block a user