]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/tools/rbd/action/DiskUsage.cc
update sources to v12.2.3
[ceph.git] / ceph / src / tools / rbd / action / DiskUsage.cc
index 9934e81dd21fe43e4ab053ab0d0c580814b53bde..5da9fec3f19073885551401b5f0da4b41375cff8 100644 (file)
@@ -208,7 +208,7 @@ static int do_disk_usage(librbd::RBD &rbd, librados::IoCtx &io_ctx,
       ++count;
     }
   }
-  if (!found) {
+  if (imgname != nullptr && !found) {
     std::cerr << "specified image " << imgname << " is not found." << std::endl;
     return -ENOENT;
   }