[Pkg-libvirt-commits] [libguestfs] 64/78: sparsify: If using -v (verbose), ensure #disk_create runs verbose too.
Hilko Bengen
bengen at moszumanska.debian.org
Fri May 9 12:55:56 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit 909c10d758887958c9e077732fe9beead55ec4e4
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Wed Apr 16 21:12:30 2014 +0100
sparsify: If using -v (verbose), ensure #disk_create runs verbose too.
---
sparsify/copying.ml | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/sparsify/copying.ml b/sparsify/copying.ml
index 2765cf4..5123bc2 100644
--- a/sparsify/copying.ml
+++ b/sparsify/copying.ml
@@ -126,9 +126,13 @@ You can ignore this warning or change it to a hard failure using the
* - detect if compat=1.1 was supported
* - add lazy_refcounts option
*)
- (new G.guestfs ())#disk_create
- ~backingfile:indisk ?backingformat:format ~compat:"1.1"
- tmp "qcow2" Int64.minus_one;
+ let () =
+ let g = new G.guestfs () in
+ if trace then g#set_trace true;
+ if verbose then g#set_verbose true;
+ g#disk_create
+ ~backingfile:indisk ?backingformat:format ~compat:"1.1"
+ tmp "qcow2" Int64.minus_one in
tmp in
--
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