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] XCP: source repo?

To: Dave.Scott@xxxxxxxxxxxxx
Subject: RE: [Xen-devel] XCP: source repo?
From: yamamoto@xxxxxxxxxxxxx (YAMAMOTO Takashi)
Date: Wed, 12 May 2010 15:11:20 +0900 (JST)
Cc: admin@xxxxxxxxxxx, yanghy@xxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 11 May 2010 23:12:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: Your message of "Thu, 22 Apr 2010 12:47:04 +0900 (JST)" <20100422034705.276417191F@xxxxxxxxxxxxxxxx>
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: <20100422034705.276417191F@xxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
hi,

> hi,
> 
>>> hi,
>>> 
>>> >> i want to add another storage backend.
>>> >> is /opt/xensource/sm/* a correct place to look at?
>>> >
>>> > Yes.I think it is the correct place to place your sm driver in.
>>> > Make sure your driver name endswith SR.
>>> 
>>> thanks.  is there any SR-driver-howto documentation except the source
>>> code?
>> 
>> I think the source code is the best we've got atm. I recommend looking at 
>> one of the simpler SRs first e.g.
>>  DummySR: this is a "pretend" SR, used for testing
>>  udevSR: represents block devices hotplugged into the host ('xe 
>> vdi-introduce' 'xe vdi-forget' are called from udev scripts)
>> and then maybe extSR: vhds on local storage.
> 
> thanks.  i'll take a look.
> 
> YAMAMOTO Takashi

having take a quick look at DummySR, i have a question.

    if __name__ == '__main__':
        SRCommand.run(DummySR, DRIVER_INFO)
    else:
        SR.registerSR(DummySR)

i understand that the SRCommnad.run part is for XMLRPC with
sm_type Executable.  what is the SR.registerSR part for?
i couldn't find any python code which imports this file.

YAMAMOTO Takashi

> 
>> 
>> Cheers,
>> Dave

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

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