Skip to contentSkip to conversation

XCP: source repo?

DISCUSSION YAMAMOTO Takashi 5 participants 10 messages Apr 20, 2010 – May 14, 2010

lore
Share & tools
lore
#0 lore raw

hi,

is there publically available source code repository which contains files under xcp's /opt?
i looked at the following repos but no luck.

	xen-api.hg
	xen-api-libs.hg
	xen-dist-ocaml.hg
	xen-3.4-testing.hg
	xen-unstable.hg

i'm particularly interested in /opt/xensource/sm/*.

thanks.

YAMAMOTO Takashi

#1 lore raw

/opt/xensource/sm/* contains python scripts which are not compiled.

Quoted 14 lines · YAMAMOTO Takashi

hi,

is there publically available source code repository which contains files under xcp's /opt?
i looked at the following repos but no luck.

       xen-api.hg
       xen-api-libs.hg
       xen-dist-ocaml.hg
       xen-3.4-testing.hg
       xen-unstable.hg

i'm particularly interested in /opt/xensource/sm/*.

Quoted 9 lines

thanks.

YAMAMOTO Takashi

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

Hi,

One of the next items on my to-do list is to create a new repo "xen-sm.hg" which will contain everything in /opt/xensource/sm/* I'll try to do that over the next few weeks.

As David says, the sources are all present and the files should all have proper license info (LGPL). Feel free to send patches via xen-api@lists.

Cheers,
Dave

From: [email protected] [mailto:[email protected]] On Behalf Of David Markey
Sent: 20 April 2010 07:15
To: YAMAMOTO Takashi
Cc: [email protected]
Subject: Re: [Xen-devel] XCP: source repo?

/opt/xensource/sm/* contains python scripts which are not compiled.

On 20 April 2010 07:02, YAMAMOTO Takashi <[email protected]<mailto:[email protected]>> wrote:
hi,

is there publically available source code repository which contains files under xcp's /opt?
i looked at the following repos but no luck.

       xen-api.hg
       xen-api-libs.hg
       xen-dist-ocaml.hg
       xen-3.4-testing.hg
       xen-unstable.hg

i'm particularly interested in /opt/xensource/sm/*.

thanks.

YAMAMOTO Takashi

_______________________________________________
Xen-devel mailing list [email protected]<mailto:[email protected]>
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw

hi,

Quoted 5 lines

Hi,

One of the next items on my to-do list is to create a new repo "xen-sm.hg" which will contain everything in /opt/xensource/sm/* I'll try to do that over the next few weeks.

As David says, the sources are all present and the files should all have proper license info (LGPL). Feel free to send patches via xen-api@lists.

ok. thanks.

i want to add another storage backend.
is /opt/xensource/sm/* a correct place to look at?

YAMAMOTO Takashi

Quoted 36 lines

Cheers,
Dave

From: [email protected] [mailto:[email protected]] On Behalf Of David Markey
Sent: 20 April 2010 07:15
To: YAMAMOTO Takashi
Cc: [email protected]
Subject: Re: [Xen-devel] XCP: source repo?

/opt/xensource/sm/* contains python scripts which are not compiled.

On 20 April 2010 07:02, YAMAMOTO Takashi <[email protected]<mailto:[email protected]>> wrote:
hi,

is there publically available source code repository which contains files under xcp's /opt?
i looked at the following repos but no luck.

       xen-api.hg
       xen-api-libs.hg
       xen-dist-ocaml.hg
       xen-3.4-testing.hg
       xen-unstable.hg

i'm particularly interested in /opt/xensource/sm/*.

thanks.

YAMAMOTO Takashi

_______________________________________________
Xen-devel mailing list [email protected]<mailto:[email protected]>
http://lists.xensource.com/xen-devel

#4 lore raw

Hi YAMAMOTO,

Quoted 4 lines · YAMAMOTO Takashi

hi,

Quoted 2 lines

Hi,

Quoted 8 lines
Quoted 3 lines

One of the next items on my to-do list is to create a new repo "xen-sm.hg" which will contain everything in /opt/xensource/sm/* I'll try to do that over the next few weeks.

As David says, the sources are all present and the files should all have proper license info (LGPL). Feel free to send patches via xen-api@lists.

ok. thanks.

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.

Quoted 45 lines

YAMAMOTO Takashi

Quoted 27 lines

Cheers,
Dave

From: [email protected] [mailto:[email protected]] On Behalf Of David Markey
Sent: 20 April 2010 07:15
To: YAMAMOTO Takashi
Cc: [email protected]
Subject: Re: [Xen-devel] XCP: source repo?

/opt/xensource/sm/* contains python scripts which are not compiled.

On 20 April 2010 07:02, YAMAMOTO Takashi <[email protected]<mailto:[email protected]>> wrote:
hi,

is there publically available source code repository which contains files under xcp's /opt?
i looked at the following repos but no luck.

       xen-api.hg
       xen-api-libs.hg
       xen-dist-ocaml.hg
       xen-3.4-testing.hg
       xen-unstable.hg

i'm particularly interested in /opt/xensource/sm/*.

Quoted 8 lines

thanks.

YAMAMOTO Takashi

_______________________________________________
Xen-devel mailing list [email protected]<mailto:[email protected]>
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Signature · 2 lines
Regards
Yang Hongyang
#5 lore raw

hi,

Quoted 5 lines
Quoted 2 lines

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?

YAMAMOTO Takashi

#6 lore raw
Quoted 10 lines

hi,

Quoted 5 lines
Quoted 2 lines

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.

Cheers,
Dave

#7 lore raw

hi,

Quoted 8 lines
Quoted 8 lines

hi,

Quoted 5 lines
Quoted 2 lines

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.

Quoted 7 lines
Quoted 2 lines

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

Quoted 3 lines

Cheers,
Dave

#8 lore raw

hi,

Quoted 13 lines

hi,

Quoted 11 lines
Quoted 10 lines

hi,

Quoted 5 lines
Quoted 2 lines

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?

Quoted 8 lines
Quoted 4 lines

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

Quoted 4 lines
Quoted 4 lines

Cheers,
Dave

#9 lore raw

On 12 May 2010, at 07:11, YAMAMOTO Takashi wrote:

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.

I don't believe the registerSR bit is currently used - you can safely ignore this.

Cheers,

Jon

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel