From: Wei Liu Subject: Re: [PATCH] xl: skip zero-size config data in list_domains_details Date: Tue, 22 Oct 2013 10:27:39 +0100 Message-ID: <20131022092739.GA14343@zion.uk.xensource.com> References: <1382369105-32015-1-git-send-email-wei.liu2@citrix.com> <21094.17036.22106.200518@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21094.17036.22106.200518@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Wei Liu , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Oct 22, 2013 at 10:17:00AM +0100, Ian Jackson wrote: > Wei Liu writes ("[PATCH] xl: skip zero-size config data in list_domains_details"): > > libxl_userdata_retrieve returns 0 when there's no stored config file for > > a domain, so we cannot rely on that to continue processing. > > How could a zero-sized config userdata ever arise ? > When Xen cannot clean up a domain after its death, it remains visible in Xen in -p-sd state. Xl list -l will still try to retrieve the config file, which has been deleted at that time. > I haven't tried it but presumably, at the moment, continuing causes > some kind of other errors later (complaints about missing config > entries perhaps) ? > Yes, this leads to 'Domain name must be specified' because the config data is NULL, aborting 'xl list -l'. Wei. > Ian.