]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: fix debug output for image resize
authorSage Weil <sage@newdream.net>
Thu, 19 Apr 2012 17:57:30 +0000 (10:57 -0700)
committerSage Weil <sage@newdream.net>
Fri, 20 Apr 2012 23:51:00 +0000 (16:51 -0700)
Print old -> new, not new -> old.

Signed-off-by: Sage Weil <sage@newdream.net>
src/librbd.cc

index 79382b8e547d762c5735ea23e1183b5896ecbc2a..e5fc09d1f28a83d8852a682011e47d567169a45d 100644 (file)
@@ -961,15 +961,15 @@ int resize_helper(ImageCtx *ictx, uint64_t size, ProgressContext& prog_ctx)
 {
   CephContext *cct = ictx->cct;
   if (size == ictx->header.image_size) {
-    ldout(cct, 2) << "no change in size (" << size << " -> " << ictx->header.image_size << ")" << dendl;
+    ldout(cct, 2) << "no change in size (" << ictx->header.image_size << " -> " << size << ")" << dendl;
     return 0;
   }
 
   if (size > ictx->header.image_size) {
-    ldout(cct, 2) << "expanding image " << size << " -> " << ictx->header.image_size << " objects" << dendl;
+    ldout(cct, 2) << "expanding image " << ictx->header.image_size << " -> " << size << " objects" << dendl;
     ictx->header.image_size = size;
   } else {
-    ldout(cct, 2) << "shrinking image " << size << " -> " << ictx->header.image_size << " objects" << dendl;
+    ldout(cct, 2) << "shrinking image " << ictx->header.image_size << " -> " << size << " objects" << dendl;
     trim_image(ictx->data_ctx, ictx->header, size, prog_ctx);
     ictx->header.image_size = size;
   }