[Libguestfs] [PATCH] api: add_drive - add QEMU detect-zeroes support

Richard W.M. Jones rjones at redhat.com
Mon Apr 13 07:54:02 UTC 2015


On Thu, Apr 09, 2015 at 04:34:25PM +0200, Maros Zatko wrote:
> See: https://lists.gnu.org/archive/html/qemu-devel/2012-07/msg03747.html
> Related do RHBZ#1130506.
> +    style = RErr, [String "filename"], [OBool "readonly"; OString "format"; OString "iface"; OString "name"; OString "label"; OString "protocol"; OStringList "server"; OString "username"; OString "secret"; OString "cachemode"; OString "discard"; OBool "copyonread"; OBool "detectzeros"];
[...]
> +  bool detectzeros;

Currently qemu allows detectzeroes to be off / on / unmap.  Should we
allow the unmap option too?  (cf. the discard option)

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list