From: Jonathan Ludlam Subject: Re: XCP: python SR plugin questions Date: Wed, 19 May 2010 10:00:16 +0100 Message-ID: <487A0EF7-CE68-4BC8-A9DB-1766808ECDCF@eu.citrix.com> References: <20100519023508.45D5570EF3@kuma.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20100519023508.45D5570EF3@kuma.localdomain> Content-Language: en-US List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: YAMAMOTO Takashi Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Hi there, On 19 May 2010, at 03:35, YAMAMOTO Takashi wrote: > hi, >=20 > i'm writing a python sr plugin for our product and have a few questions. >=20 > - our product has 32-bit id, not uuid, for each volumes, which i want to = map > to xcp's vdi. i generate name-based uuid from the 32-bit id in sr.scan = and > vdi.create. is this a reasonable approach? >=20 You can use the 'location' field in the VDI to contain your 32 bit id - the= n the uuid is irrelevant. I'd like to move more of the storage backends in = this direction - currently I believe only the ISO SR does it this way. > - how can i get name-label specified by "xe vdi-create" in my vdi.create? > i want to pass it to our product. >=20 Unfortunately this isn't possible at the moment. What you could do is pick = the name up on a subsequent scan. This is ugly, I know, and might not even = work if you need the name at VDI create time, but it's all we've got at the= moment. This is on my list of things to fix about the SMAPI. > if you are intersted, the "our product" is found at > http://sourceforge.net/projects/vastsky/ >=20 > YAMAMOTO Takashi >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel