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-api

[Xen-API] Problems in xen_sr_get_physical_size

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Problems in xen_sr_get_physical_size
From: chetansa <chetan.lists@xxxxxxxxx>
Date: Sun, 06 Jan 2008 15:00:30 +0530
Delivery-date: Sun, 06 Jan 2008 01:30:50 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type; bh=Zer9CNUgexArHSn8Orj85fxKcCu4dfJEwOMZD1LswgQ=; b=wvrMddX94P7SL5z6eso3qBJTzZD6kT3RNKDIDLhvEuKawrUFKZo8Up8aqXub2gAspD6Rv/j2r7LBnnVj8DhoOLf7mwSLPNUlOy1+vRXl/WGeyPFN9M+qAvwQOdoRKpX7kizCRulgqlN88+zF2nKZYsCU4vZedzzUEPeL0YaNa9Q=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:content-type; b=MZKI0MrTdq2VGT7WNECjNWMPmBjdJmJVK/evPfPnMoZD3THyLfppzHNtxLq0ItGS4izW149+jAD9irLXHEbqkUIIQqfIk4EDawZwKZ5zMhnFaovxJQlOWOg305Ns/A10vY/UL8Y+Wavzz3kGqIBBFHAidL6yjEafO3/EaIY+naE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.9) Gecko/20071115 Fedora/2.0.0.9-1.fc8 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666
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
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>