Fixes RHBZ#1130506
See also: https://lists.gnu.org/archive/html/qemu-devel/2012-07/msg03747.html
---
sparsify/copying.ml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sparsify/copying.ml b/sparsify/copying.ml
index 9f788b9..111dfeb 100644
--- a/sparsify/copying.ml
+++ b/sparsify/copying.ml
@@ -190,7 +190,8 @@ You can ignore this warning or change it to a hard failure
using the
if verbose then g#set_verbose true;
(* Note that the temporary overlay disk is always qcow2 format. *)
- g#add_drive ~format:"qcow2" ~readonly:false ~cachemode:"unsafe"
overlaydisk;
+ g#add_drive ~format:"qcow2" ~readonly:false ~cachemode:"unsafe" overlaydisk
+ ~detectzeros: true;
if not quiet then Progress.set_up_progress_bar ~machine_readable g;
g#launch ();
--
1.9.3
_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs