Signed-off-by: Jason Dillaman <dillaman@redhat.com>
dout(20) << ": r=" << r << dendl;
if (r < 0) {
- derr << ": failed to create local image: " << cpp_strerror(r) << dendl;
+ if (r == -ENOENT) {
+ dout(10) << ": parent image does not exist" << dendl;
+ } else {
+ derr << ": failed to create local image: " << cpp_strerror(r) << dendl;
+ }
m_ret_val = r;
close_remote_image();
return;
dout(20) << ": r=" << r << dendl;
if (r < 0) {
- derr << ": failed to open image '" << m_local_image_id << "': "
- << cpp_strerror(r) << dendl;
+ if (r == -ENOENT) {
+ dout(10) << ": local image does not exist" << dendl;
+ } else {
+ derr << ": failed to open image '" << m_local_image_id << "': "
+ << cpp_strerror(r) << dendl;
+ }
(*m_local_image_ctx)->destroy();
*m_local_image_ctx = nullptr;
finish(r);