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] xenstore -- read UUID

To: "dinesh chandrasekaran" <dinesh_chan8@xxxxxxxxxxx>
Subject: Re: [Xen-devel] xenstore -- read UUID
From: "Geoffrey Lefebvre" <geoffrey@xxxxxxxxx>
Date: Thu, 11 Sep 2008 14:28:37 -0700
Cc: xen developers community <xen-devel@xxxxxxxxxxxxxxxxxxx>, xen users community <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 11 Sep 2008 14:29:00 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=9b1hxjsx+SHz8Qb0s5/E8tAa+wl9BiTUvc2mA7ruUdI=; b=hjjTNeu15QN3KsILJ8RB/vCGzOMsJn+Sl9dEqBaVqW3dEHgnPnfwQCkFzY75rbmnSz Fg2SOZdc/Czgf+gTkt3qegh+T1Ci7Bn3+Pjz2h7AgpWIQx88ymWwAfMZYnK82yoRSsEn X323O38M65W3k8UJAPIbuCbcZ72Bfn0mIHCDw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=ctxHnLUzrLfpYVq3ZHn3rexG8CJt+xbWBrMWSZTx2lpcnC4VCrxm0886MZxYoxXVKJ xwHRqwIzBX9jUIjwI522XvCRTGTBNZn5irsYDtd/AbwPDgb4xWwintWwkJC46nXHOJNx 72hRRwqrFj2AuZmEWm1pJuekgwVCn6NiUjpwQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BAY111-W47445FFCFEFD0C05C74464B1560@xxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <BAY111-W47445FFCFEFD0C05C74464B1560@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> Hi geoffrey,
>                 the xen_domain_handle_t in the domain handle field is an
> unsigned char array of size 16.
> Where could the UUID be accessed from?
> or how would you relate the d->handle to the domain's uuid (where d is of
> type struct domain *d).
> is all the 16 entries in the d->handle clubbed together to get the domain's
> uuid?
>

Hi dinesh,

d->handle contains the domain uuid.

A uuid is a 16 byte number. Xen and libuuid store uuids as 16 byte
char array. They both define typedefs (xen_domain_handle_t and uuid_t
respectively)  for a 16 byte char array.

If you want to generate a human readable version, you can use
uuid_unparse to generate a 37 character C string from the uuid_t.

Hope this helps.

geoffrey

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>