diff options
author | Sage Weil <sage@newdream.net> | 2012-04-19 19:57:30 +0200 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2012-04-21 01:51:00 +0200 |
commit | 379c5e721e91fddbabea7e5c330bcc9c951a609e (patch) | |
tree | 79e94f0bcd063307beff8a461cace0c69984c20b | |
parent | test_librbd_fsx: port newer xfsprogs version (diff) | |
download | ceph-379c5e721e91fddbabea7e5c330bcc9c951a609e.tar.xz ceph-379c5e721e91fddbabea7e5c330bcc9c951a609e.zip |
librbd: fix debug output for image resize
Print old -> new, not new -> old.
Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r-- | src/librbd.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librbd.cc b/src/librbd.cc index 79382b8e547..e5fc09d1f28 100644 --- a/src/librbd.cc +++ b/src/librbd.cc @@ -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; } |