Skip to contentSkip to conversation

master - pvresize: fix size in 'Resizing to ...' verbose message to show proper result size

PATCH Peter Rajnoha 1 participant 1 message Nov 25, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=62f3a4d2d88576ac160f7a7a5f5dc7608c7a1c04
Commit:        62f3a4d2d88576ac160f7a7a5f5dc7608c7a1c04
Parent:        cd3b6070aab5b50ab60f8434ca6efd3736e927be
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Tue Nov 25 15:16:09 2014 +0100
Committer:     Peter Rajnoha <[email protected]>
CommitterDate: Tue Nov 25 15:19:10 2014 +0100

pvresize: fix size in 'Resizing to ...' verbose message to show proper result size

---
 WHATS_NEW               |    1 +
 lib/metadata/pv_manip.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
WHATS_NEW +1 -0
index a19cdb9..f655f24 100644
@@ -1,5 +1,6 @@
 Version 2.02.114 - 
 =====================================
+  Fix size in pvresize "Resizing to ..." verbose msg to show proper result size.
 
 Version 2.02.113 - 24th November 2014
 =====================================
lib/metadata/pv_manip.c +1 -1
index 00a7fd5..6499e36 100644
@@ -650,7 +650,7 @@ int pv_resize_single(struct cmd_context *cmd,
 	}
 
 	log_verbose("Resizing volume \"%s\" to %" PRIu64 " sectors.",
-		    pv_name, pv_size(pv));
+		    pv_name, size);
 
 	if (!pv_resize(pv, vg, size))
 		goto_out;