summaryrefslogtreecommitdiffstats
path: root/src/librbd/ImageState.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/librbd/ImageState.cc')
-rw-r--r--src/librbd/ImageState.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librbd/ImageState.cc b/src/librbd/ImageState.cc
index 10fd9765253..1bf628eb2b2 100644
--- a/src/librbd/ImageState.cc
+++ b/src/librbd/ImageState.cc
@@ -273,7 +273,7 @@ void ImageState<I>::handle_open(int r) {
CephContext *cct = m_image_ctx->cct;
ldout(cct, 10) << this << " " << __func__ << ": r=" << r << dendl;
- if (r < 0) {
+ if (r < 0 && r != -ENOENT) {
lderr(cct) << "failed to open image: " << cpp_strerror(r) << dendl;
}
@@ -376,7 +376,7 @@ void ImageState<I>::handle_set_snap(int r) {
CephContext *cct = m_image_ctx->cct;
ldout(cct, 10) << this << " " << __func__ << " r=" << r << dendl;
- if (r < 0) {
+ if (r < 0 && r != -ENOENT) {
lderr(cct) << "failed to set snapshot: " << cpp_strerror(r) << dendl;
}