From: yamamoto@valinux.co.jp (YAMAMOTO Takashi) Subject: RE: XCP: source repo? Date: Wed, 12 May 2010 15:11:20 +0900 (JST) Message-ID: <20100512061120.7B36B718E9@kuma.localdomain> References: <20100422034705.276417191F@kuma.localdomain> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Return-path: In-Reply-To: Your message of "Thu, 22 Apr 2010 12:47:04 +0900 (JST)" <20100422034705.276417191F@kuma.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dave.Scott@eu.citrix.com Cc: admin@dmarkey.com, yanghy@cn.fujitsu.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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