Great !<br>Thanks a lot !<br><br><div class="gmail_quote">On Tue, May 19, 2009 at 2:50 PM, Daniel Veillard <span dir="ltr"><<a href="mailto:veillard@redhat.com">veillard@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Tue, May 19, 2009 at 02:39:04PM +0200, Francesco Latino wrote:<br>
> Hello,***I am able to compile libvirt samples on my KVM hypervisor. (I<br>
> edited and recompiled info.c code)<br>
> *I am creating a sample code to read/write disk devices.<br>
> With method *virDomainBlockPeek I can** read sectors from a given device<br>
> attached to a KVM virtual guest.**I am not able to* find an API to write<br>
> sectors on a disk: am I missing something ?Is there such method to write<br>
> sectors from a given virtual disk ?<br>
<br>
</div></div>  Hum, right, there is only read-only support since that's what was<br>
needed at the time. I'm not sure we should add unstructured write<br>
support like this, I don't know what you're trying to achieve but<br>
maybe libguestfs would be a better fit, have a look !<br>
<br>
    <a href="http://et.redhat.com/%7Erjones/libguestfs/" target="_blank">http://et.redhat.com/~rjones/libguestfs/</a><br>
<br>
Daniel<br>
<font color="#888888"><br>
--<br>
Daniel Veillard      | libxml Gnome XML XSLT toolkit  <a href="http://xmlsoft.org/" target="_blank">http://xmlsoft.org/</a><br>
<a href="mailto:daniel@veillard.com">daniel@veillard.com</a>  | Rpmfind RPM search engine <a href="http://rpmfind.net/" target="_blank">http://rpmfind.net/</a><br>
<a href="http://veillard.com/" target="_blank">http://veillard.com/</a> | virtualization library  <a href="http://libvirt.org/" target="_blank">http://libvirt.org/</a><br>
</font></blockquote></div><br>