]> xenbits.xensource.com Git - xcp/xen-api.git/commit
The VM metadata export handler (/export_metadata) will output the metadata
authorEwan Mellor <ewan.mellor@eu.citrix.com>
Tue, 12 Oct 2010 09:58:34 +0000 (10:58 +0100)
committerEwan Mellor <ewan.mellor@eu.citrix.com>
Tue, 12 Oct 2010 09:58:34 +0000 (10:58 +0100)
commit78538e2a22848f018a552ac3b7aba47b994daee6
treec0e3e52ce5eb1abd38c7b5fc1c93122d41458f4c
parent82ce04d7f2daa91aa6905d05b11f0eaeacda2096
The VM metadata export handler (/export_metadata) will output the metadata
of a VM, all its snapshots, and all their attached VDIs.  However, it doesn't
walk the tree of VDIs defined by the VDI.sm_config["vhd_parent"] field.  For
a full-fidelity representation, having the parent VDIs is very useful.

This patch adds an "include_vhd_parents=(true|false)" option to the the
/export_metadata handler.  With this option on, the entire tree of VDIs is
exported.

This patch does not change the /export URL handler, does not change any
behaviour when include_vhd_parents is false or missing, and copes gracefully
with a missing or malformed vhd_parent entry.

Dave: modified to be robust to vhd parent cycles

Signed-off-by: Ewan Mellor <ewan.mellor@eu.citrix.com>
Signed-off-by: Dave Scott <dave.scott@eu.citrix.com>
ocaml/xapi/export.ml