[Libvir] ruby binding patch

2008-03-28 Thread Vadim Zaliva
I have attempted to add following methods to Domain class: 1. vcpus= 2. memory= This is my first patch to libvirt-ruby, and I will appreciate your feedback. My next goal is to add binding for virDomainPinVcpu() method. Sincerely, Vadim mychanges.hg Description: Binary data --

Re: [Libvir] PHP bindings for libvirt API?

2008-03-28 Thread Richard W.M. Jones
On Thu, Mar 27, 2008 at 02:23:28PM +0100, BrunoM wrote: Does anyone have information about a mean to plug libvirt into PHP? Maybe we could just issue shell commands to virsh, but it would be preferable to have direct access to the API. It's been asked before and I guess it is the next major

Re: [Libvir] [PATCH 2/9] xenXMError: mark for translation string args to this function

2008-03-28 Thread Richard W.M. Jones
+1 -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v -- Libvir-list mailing list

Re: [Libvir] [PATCH 3/9] ReportError: mark for translation string args to this function

2008-03-28 Thread Richard W.M. Jones
Simple enough, +1 -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v -- Libvir-list

Re: [Libvir] [PATCH 5/9] Convert diagnostics like VAR MAX_VAR to translatable messages.

2008-03-28 Thread Richard W.M. Jones
+1. I think this nicely solves the problem of those messages which I thought were untranslatable before. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net

Re: [Libvir] [PATCH 7/9] openvzLog: mark its string arguments for translation

2008-03-28 Thread Richard W.M. Jones
+1 -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top -- Libvir-list mailing list

Re: [Libvir] [PATCH 4/9] qemudReportError: mark for translation string args to this function

2008-03-28 Thread Richard W.M. Jones
On Wed, Mar 26, 2008 at 08:55:53PM +0100, Jim Meyering wrote: qemudReportError(NULL, NULL, NULL, VIR_ERR_NO_MEMORY, - vncTLSx509certdir); + %s, _(failed to allocate vncTLSx509certdir)); versus:

Re: [Libvir] [PATCH 1/9] Mark many more strings for translation.

2008-03-28 Thread Richard W.M. Jones
+1 -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v -- Libvir-list mailing list

Re: [Libvir] [PATCH 8/9] testError: mark most string arguments for translation

2008-03-28 Thread Jim Meyering
Richard W.M. Jones [EMAIL PROTECTED] wrote: On Wed, Mar 26, 2008 at 08:57:56PM +0100, Jim Meyering wrote: -# Uncomment this after adjusting remaining diagnostics to be translatable. +# Uncomment the following and run make syntax-check to see diagnostics +# that are not yet marked for

Re: [Libvir] [PATCH 4/9] qemudReportError: mark for translation string args to this function

2008-03-28 Thread Jim Meyering
Richard W.M. Jones [EMAIL PROTECTED] wrote: On Wed, Mar 26, 2008 at 08:55:53PM +0100, Jim Meyering wrote: qemudReportError(NULL, NULL, NULL, VIR_ERR_NO_MEMORY, - vncTLSx509certdir); + %s, _(failed to allocate

Re: [Libvir] [PATCH 4/9] qemudReportError: mark for translation string args to this function

2008-03-28 Thread Richard W.M. Jones
On Fri, Mar 28, 2008 at 12:15:04PM +0100, Jim Meyering wrote: But there's nothing we can do about the latter, and there *is* something we can do about the former: precede with %s. Of course, gettext tools like msgmerge are careful to ensure that %-directives in translations match those in the

Re: [Libvir] [PATCH 4/9] qemudReportError: mark for translation string args to this function

2008-03-28 Thread Jim Meyering
Richard W.M. Jones [EMAIL PROTECTED] wrote: On Fri, Mar 28, 2008 at 12:15:04PM +0100, Jim Meyering wrote: But there's nothing we can do about the latter, and there *is* something we can do about the former: precede with %s. Of course, gettext tools like msgmerge are careful to ensure that

[Libvir] Lxc driver patch

2008-03-28 Thread Daniel Veillard
Patch against CVS version, it tries to avoid 2 issues: - problem with global data settings when loading of the driver got interrupted. Check more NULLs and reset to NULL, i was getting crashes when running the regression tests and the /etc/libvirtd/lxc was not accessible.

[Libvir] Lxc conf patch

2008-03-28 Thread Daniel Veillard
Okay, that's something i promised last week, but it has some significant changes: - cleanup the XPath methods to access the XML informations, reusing the existing methods from xml.h - make string fields from __lxc_vm_def dynamic (except the UUID) - fix what looked like a funny leak

[Libvir] use C99 initializer for lastErr

2008-03-28 Thread Guido Günther
...this makes things just a bit more readable. -- Guido --- src/virterror.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/virterror.c b/src/virterror.c index 1e39be4..1463129 100644 --- a/src/virterror.c +++ b/src/virterror.c @@ -19,7 +19,9 @@ #include

[Libvir] [PATCH/RFC] remote driver uses already freed dom

2008-03-28 Thread Guido Günther
Hi, when trying to undefine a running qemu domain the domain name gets corrupted: $ ./virsh undefine system1 Name: /�em1 libvir: QEMU error /�em1: internal error cannot delete active domain error: Failed to undefine domain system1 the reaseon is that in qemud/remote.c the domain is freed after

[Libvir] [PATCH] deep copy dom structure

2008-03-28 Thread Guido Guenther
--- src/virterror.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/virterror.c b/src/virterror.c index 1463129..49f3b89 100644 --- a/src/virterror.c +++ b/src/virterror.c @@ -115,6 +115,11 @@ virResetError(virErrorPtr err) free(err-str1);

Re: [Libvir] Patch for routed virtual networks

2008-03-28 Thread Daniel P. Berrange
On Tue, Mar 25, 2008 at 12:56:31PM +0100, Mads Chr. Olesen wrote: man, 24 03 2008 kl. 19:00 +, skrev Daniel P. Berrange: On Mon, Mar 24, 2008 at 10:52:41AM +0100, Mads Chr. Olesen wrote: Anything further I can do to help get this patch commited? I have been running with it,

Re: [Libvir] ruby binding patch

2008-03-28 Thread Vadim Zaliva
On Mar 28, 2008, at 10:48, David Lutterkort wrote: * there were no tests for the two new methods. In general, try to add/expand the tests in tests/tc_connect.rb when you add to the bindings, though that is highly dependent on what the test driver supports. In this case