[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC
From: |
Richard W.M. Jones |
Subject: |
Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC |
Date: |
Mon, 24 Jan 2011 22:08:09 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Jan 21, 2011 at 12:23:40PM -0600, Michael Roth wrote:
> getfile() is confusingly named however, it's really just a means to
> peek at a text file like /proc/meminfo.
You might as well reuse the libguestfs API here because you get the
benefit of all the code that's been written, all the tools on top, and
a far more comprehensive API that would take you another 2 years to
implement.
There's various ways to do it: Encapsulate the libguestfs API messages
to and from guestfsd into the virtagent protocol. Or give us another
8-bit-clean channel. Or write a libguestfs generator component that
generates virtagent messages.
We got a long way through porting guestfsd to Windows last year when
we thought we needed a Windows-native daemon (since abandoned for
other reasons). It works already for many of the API calls.
> general file access will be done via a stateful interface that
> implements similar semantics to open()/read()/write()/close().
This will be very slow.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
- [Qemu-devel] Re: [RFC][PATCH v6 07/23] virtagent: base server definitions, (continued)
[Qemu-devel] [RFC][PATCH v6 12/23] virtagent: add va.shutdown RPC, Michael Roth, 2011/01/17
[Qemu-devel] [RFC][PATCH v6 11/23] virtagent: add agent_viewdmesg qmp/hmp commands, Michael Roth, 2011/01/17
[Qemu-devel] [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Michael Roth, 2011/01/17
- [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Jes Sorensen, 2011/01/21
- Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Daniel P. Berrange, 2011/01/21
- Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Michael Roth, 2011/01/21
- Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC,
Richard W.M. Jones <=
- Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Richard W.M. Jones, 2011/01/24
- Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Anthony Liguori, 2011/01/24
- Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Richard W.M. Jones, 2011/01/24
- Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Anthony Liguori, 2011/01/24
- Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Michael Roth, 2011/01/24
- Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Anthony Liguori, 2011/01/24
- Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Richard W.M. Jones, 2011/01/25
- Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Anthony Liguori, 2011/01/25
- Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Richard W.M. Jones, 2011/01/25
- Re: [Qemu-devel] Re: [RFC][PATCH v6 08/23] virtagent: add va.getfile RPC, Richard W.M. Jones, 2011/01/26