[Pkg-libvirt-commits] [libguestfs] 197/266: v2v: Display a %-done progress bar when copying the disk image to the target.
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 3 14:42:01 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag debian/1%1.27.35-1
in repository libguestfs.
commit abbb636e759bcfc87260cbef780fda1bed815ea0
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Wed Aug 27 20:39:35 2014 +0100
v2v: Display a %-done progress bar when copying the disk image to the target.
This isn't quite the progress bar we have in mind, but it's sufficient
for now.
When --quiet is used, the progress bar is not displayed.
---
v2v/TODO | 2 +-
v2v/v2v.ml | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/v2v/TODO b/v2v/TODO
index d2c98dc..1ef5691 100644
--- a/v2v/TODO
+++ b/v2v/TODO
@@ -4,7 +4,7 @@ Missing features compared to Perl version:
- Fix configure_kernel on SUSE (see Mike Latimer's email)
- testing
-Progress bars for copy.
+Proper progress bars when copying.
p2v:
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index c19fb8a..8f964cb 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -243,7 +243,8 @@ let rec main () =
?preallocation ?compat;
let cmd =
- sprintf "qemu-img convert -n -f qcow2 -O %s %s %s"
+ sprintf "qemu-img convert%s -n -f qcow2 -O %s %s %s"
+ (if not quiet then " -p" else "")
(quote t.target_format) (quote t.target_overlay.ov_overlay_file)
(quote t.target_file) in
if verbose then printf "%s\n%!" cmd;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list