Re: [libvirt] RFC: Domain events add DEFINED and UNDEFINED events

2008-11-07 Thread Daniel P. Berrange
On Fri, Nov 07, 2008 at 07:12:46AM -0500, Ben Guthro wrote: I think this sounds reasonable. Let me see if I understand the state machine for a newly created persistent domain: DEFINED-ADDED-STARTED-STOPPED Actually, swap ADDED DEFINED, and for completeness, if I add in an

[libvirt] [PATCH] mark a few diagnostics for translation

2008-11-07 Thread Jim Meyering
FYI. This is trivial, so I'll push it soon unless someone objects. From d5d9bc7e5473ea3ce40c4af70a2085c316023723 Mon Sep 17 00:00:00 2001 From: Jim Meyering [EMAIL PROTECTED] Date: Thu, 6 Nov 2008 20:41:34 +0100 Subject: [PATCH] mark a few diagnostics for translation * src/lxc_conf.c

Re: [libvirt] [PATCH] always compile iptables.c

2008-11-07 Thread Richard W.M. Jones
On Fri, Nov 07, 2008 at 02:49:43PM +0100, Jim Meyering wrote: This is slightly different from the previous version. The new part is the addition of the virRun stub to prevent a mingw link failure when building with shared libraries. Now, configured like this, it builds without error:

[libvirt] Re: _lstat link failure on mingw

2008-11-07 Thread Richard W.M. Jones
On Fri, Nov 07, 2008 at 02:46:16PM +0100, Jim Meyering wrote: This fixes a problem spotted by Rich Jones yesterday: Dan actually, but +1 anyway. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many

Re: [libvirt] [PATCH] always compile iptables.c

2008-11-07 Thread Jim Meyering
Richard W.M. Jones [EMAIL PROTECTED] wrote: On Fri, Nov 07, 2008 at 02:49:43PM +0100, Jim Meyering wrote: This is slightly different from the previous version. The new part is the addition of the virRun stub to prevent a mingw link failure when building with shared libraries. Now, configured

Re: [libvirt] _lstat link failure on mingw

2008-11-07 Thread Daniel P. Berrange
On Fri, Nov 07, 2008 at 02:46:16PM +0100, Jim Meyering wrote: This fixes a problem spotted by Rich Jones yesterday: From 5d5042ad904f8da693c1a5e392cd4d9b86a1 Mon Sep 17 00:00:00 2001 From: Jim Meyering [EMAIL PROTECTED] Date: Thu, 6 Nov 2008 20:46:46 +0100 Subject: [PATCH] tweak lstat.c

Re: [libvirt] [PATCH] 0/7 host (node) device enumeration - completed submission

2008-11-07 Thread David Lively
P.S. Patch 7/7 (Java bindings for host dev enum) hasn't changed. On Thu, 2008-11-06 at 21:32 -0500, David Lively wrote: Daniel(s) - In the attached set of patches, I've merged in DanB's reworking of the headers, etc. and adjusted my code accordingly. I've also renamed NodeDriver to

Re: [libvirt] PATCH: Misc fixes to events code

2008-11-07 Thread Ben Guthro
Daniel P. Berrange wrote on 11/04/2008 05:05 PM: Well lets just start with STARTED/STOPPED from xenstore, and possibly try ADDED/REMOVED using inotify on /etc/xen or /var/lib/xend/domains. These are what virt-manager cares about the most. The others are just a nice-to-have. Perhaps I just

Re: [libvirt] [PATCH] always compile iptables.c

2008-11-07 Thread Richard W.M. Jones
On Fri, Nov 07, 2008 at 03:34:59PM +0100, Jim Meyering wrote: Richard W.M. Jones [EMAIL PROTECTED] wrote: On an unrelated point, probably any usage of __MINGW32__ is suspect, eg: s/any/any *other*/ ? I'm pretty sure any, in this case too. #else /* __MINGW32__ */ Our MinGW

Re: [libvirt] RFC: Domain events add DEFINED and UNDEFINED events

2008-11-07 Thread Ben Guthro
I suppose I could make some sort of configure option to only compile it in optionally... I don't have access to a solaris box though...so don't really know what the appropriate API would be in that situation Daniel Veillard wrote on 11/07/2008 07:39 AM: On Fri, Nov 07, 2008 at 12:26:23PM

Re: [libvirt] RFC: Domain events add DEFINED and UNDEFINED events

2008-11-07 Thread Daniel Veillard
On Fri, Nov 07, 2008 at 12:26:23PM +, Daniel P. Berrange wrote: Yesterday, I began looking into creating a xen driver patch for emitting the DEFINED/UNDEFINED events via inotify. It looks like the easiest way to do this right now is to create yet another Xen sub-driver. I don't

RE: [libvirt] RFC: Domain events add DEFINED and UNDEFINED events

2008-11-07 Thread Ben Guthro
I think this sounds reasonable. Let me see if I understand the state machine for a newly created persistent domain: DEFINED-ADDED-STARTED-STOPPED Starting, then stopping a previously defined persistent domain would just emit STARTED-STOPPED and a transient domain would be:

[libvirt] [PATCH] always compile iptables.c

2008-11-07 Thread Jim Meyering
This is slightly different from the previous version. The new part is the addition of the virRun stub to prevent a mingw link failure when building with shared libraries. Now, configured like this, it builds without error: /usr/bin/mingw32-configure --without-sasl --without-avahi \

[libvirt] RFC: Domain events add DEFINED and UNDEFINED events

2008-11-07 Thread Daniel P. Berrange
We currently have the following list of events for domains: VIR_DOMAIN_EVENT_ADDED, VIR_DOMAIN_EVENT_REMOVED, VIR_DOMAIN_EVENT_STARTED, VIR_DOMAIN_EVENT_SUSPENDED, VIR_DOMAIN_EVENT_RESUMED, VIR_DOMAIN_EVENT_STOPPED, VIR_DOMAIN_EVENT_SAVED,

[libvirt] _lstat link failure on mingw

2008-11-07 Thread Jim Meyering
This fixes a problem spotted by Rich Jones yesterday: From 5d5042ad904f8da693c1a5e392cd4d9b86a1 Mon Sep 17 00:00:00 2001 From: Jim Meyering [EMAIL PROTECTED] Date: Thu, 6 Nov 2008 20:46:46 +0100 Subject: [PATCH] tweak lstat.c to avoid mingw link failure * gnulib/lib/lstat.c: Include

[libvirt] [PATCH] Java bindings for domain events

2008-11-07 Thread David Lively
The attached patch (against libvirt-java) contains Java bindings for the new domain event code. It works (see EventTest.java), but there's a certain amount of hokiness regarding the EventImpl stuff that I'd like to discuss. Unlike the C and Python interfaces, the Java interface does not