summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2012-04-19 19:57:30 +0200
committerSage Weil <sage@newdream.net>2012-04-21 01:51:00 +0200
commit379c5e721e91fddbabea7e5c330bcc9c951a609e (patch)
tree79e94f0bcd063307beff8a461cace0c69984c20b
parenttest_librbd_fsx: port newer xfsprogs version (diff)
downloadceph-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.cc6
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;
}