Ignore a potential EOPNOTSUPP error from Mirror::group_disable() in
Group::remove() -- this would come up if the client side (including rbd
CLI) is upgraded before the OSDs. The same is done for standalone
images in RemoveRequest::handle_disable_mirror().
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
}
r = Mirror<I>::group_disable(io_ctx, group_name, false);
- if (r < 0) {
+ if (r < 0 && r != -EOPNOTSUPP) {
lderr(cct) << "failed to disable mirroring: " << cpp_strerror(r) << dendl;
return r;
}