[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-API] Re: Problems in xen_sr_get_physical_size
- To: xen-api@xxxxxxxxxxxxxxxxxxx
- From: chetansa <chetan.lists@xxxxxxxxx>
- Date: Sun, 06 Jan 2008 16:58:55 +0530
- Delivery-date: Sun, 06 Jan 2008 03:29:15 -0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type; b=gV9x3KS2+mheDL/INMJxLMFaGTlMS9RZxlsMc/sS1alF9y6hYDOIU5/R3Uj0D8KmINgZLwXUJ1sYmw8HeYdsdKLWQLeekJfIVFt8/Gm2iSGnotMLRmWDyfQ7uF5+GSWNbW0Xxio4tmDuKeHCN1bO0HxpSTRg04DBtVIW5udt/L0=
- List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
chetansa wrote:
Hi all,
I would like to know if I am doing something wrong in my test code
(using libxen). Here is the test code snippet and associated results.
---- Code -----
xen_sr_set *mySrList;
xen_sr *mySr;
if (!xen_sr_get_all(session, &mySrList))
{
cout<<"Error in xen_sr_get_all"<<endl;
return 1;
}
cout<<"SR array
size:"<<(int)mySrList->size<<endl;
mySr = mySrList->contents[0];
char* srname;
if (!xen_sr_get_type(session, &srname,
(mySrList->contents[0])))
{
cout<<"Error in xen_sr_get_type"<<endl;
return 1;
}
cout<<"SR type:"<<srname<<endl;
int64_t srno;
if (!xen_sr_get_physical_size(session, &srno,
(mySrList->contents[0])))
{
cout<<"Error in xen_sr_get_physical_size"<<endl;
return 1;
}
cout<<"SR detail:"<<(int)srno<<endl;
---- Results -----
SR array size: 2
SR type: local
Error in xen_sr_get_physical_size
Thanks
Chetan
Here is an error description given by the session struct,
2INTERNAL_ERROR 'int' object is not callable
|
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
|