Report the 'backend' in the attach_info

This tells the domain manager what kind of backend to create.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Maintain a mapping of SMAPIv2 SR references to xapi-storage SRs

In the SMAPIv2 the client generates the SR name (!) and tells this to
the implementation. In the xapi-storage world, each SR can name itself
how it likes. To make these worlds meet, the daemon needs to maintain
a mapping over SR.attach/SR.detach.

The current implementation simply uses an in-memory hashtable. This
should be persisted to somewhere which is reset on host reboot.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Return an explicit backend_error exception if we don't recognise the method

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Fake up SR.stat

This is related to xapi-storage#13

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
SMAPIv2 expects valid dates

We conventionally use Jan 1 1970 to mean "it never happened"

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
SMAPIv2 calls the operation "VDI_DELETE" rather than "VDI_DESTROY"

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
example: avoid creating LVs 1000x too small

The low-level API is expecting bytes >= 1 and will round up itself.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
python: rename 'xcp' to 'xapi'

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Fix datapath example

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Add Query.diagnostics

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge branch 'attach-info'