[Libguestfs] [PATCH 03/14] v2v: Print qemu-img source overlay command when using -v.

Richard W.M. Jones rjones at redhat.com
Mon Jun 23 11:32:19 UTC 2014


---
 v2v/v2v.ml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index 6157aa3..4e64b99 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -66,6 +66,7 @@ let rec main () =
         let cmd =
           sprintf "qemu-img create -q -f qcow2 -b %s -o %s %s"
             (quote qemu_uri) (quote options) overlay in
+        if verbose then printf "%s\n%!" cmd;
         if Sys.command cmd <> 0 then
           error (f_"qemu-img command failed, see earlier errors");
         overlay, qemu_uri, format
-- 
1.9.0




More information about the Libguestfs mailing list