It has to be said it would be really convenient to have a 'zero'
and/or 'trim' method of some sort.

qemu-img tries hard to trim the whole disk before using it.
Unfortunately it does this in different ways across RHEL 7 and
upstream.  With upstream I managed a workaround based on ignoring any
zero requests which arrive before the first write.  However it's not
so easy to do this for RHEL 7's qemu which is issuing mixed writes and
zeroes in different orders.

How hard would it be to implement a special https request in imageio
for zeroing (better still, either zeroing or trimming) a range of
bytes?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top

_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to