WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] [PATCH] Minor fix to libxenstat to stop it returning NUL

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] Minor fix to libxenstat to stop it returning NULL when domains go away at the wrong time
From: "Graham, Simon" <Simon.Graham@xxxxxxxxxxx>
Date: Wed, 2 Aug 2006 12:46:45 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 02 Aug 2006 09:47:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Aca2FoiJVP3D6q3YTi2neIi/3iprxwAOysSQ
Thread-topic: [Xen-devel] [PATCH] Minor fix to libxenstat to stop it returning NULL when domains go away at the wrong time
OK - final version (including a small bug fix over the last one) made
against the unstable tree

Simon

-----------------------------------------------------------
Currently, xenstat_get_node exits with a failure and returns NULL if a
VM is deleted 
between the time the list of VMs is obtained and the time it attempts to
collect 
information about the VMs. This patch modifies xenstat to ignore domains
that transition 
during the call.

Signed-off-by: Simon.Graham@xxxxxxxxxxx
-----------------------------------------------------------

> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-
> bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Keir Fraser
> Sent: Wednesday, August 02, 2006 5:20 AM
> To: Graham, Simon
> Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-devel] [PATCH] Minor fix to xentop to stop it
> dyingwhendomains go away at the wrong time
> 
> 
> On 28 Jul 2006, at 18:33, Graham, Simon wrote:
> 
> > Good suggestions - you are right that we only have issues when a VM
> is
> > in transition so simply removing it from the returned list should be
> > fine.
> >
> > Turns out that this also means the collectors don't need to return
> > special codes either - they are back to either working (and
> potentially
> > pruning a domain from the list) or failing completely.
> >
> > Patch attached (boy, this is taking waaay more time than I
expected!)
> 
> This looks good, but:
>   1. Needs to be against xen-unstable (doesn't apply right now, due to
> differences between unstable and testing trees)
>   2. Please provide an up-to-date checkin comment and signed-off-by
> line.
> 
> Fix these two issues and I'll check it straight in.
> 
>   Thanks,
>   Keir
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

Attachment: xenstat-bug661.patch
Description: xenstat-bug661.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • RE: [Xen-devel] [PATCH] Minor fix to libxenstat to stop it returning NULL when domains go away at the wrong time, Graham, Simon <=