[Libvirt-cim] [PATCH 2 of 3] Add VirtualSystemSnapshotCapabilities

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Wed Feb 27 01:16:34 UTC 2008


Dan Smith wrote:
> # HG changeset patch
> # User Dan Smith <danms at us.ibm.com>
> # Date 1204053674 28800
> # Node ID 0f1a316b04aca1fa962f624444ae57b960fc2a37
> # Parent  fce1a31a53090b42dbfbd788a6db2a1164636197
> Add VirtualSystemSnapshotCapabilities
> 
> Signed-off-by: Dan Smith <danms at us.ibm.com>
> 
> diff -r fce1a31a5309 -r 0f1a316b04ac src/Virt_VirtualSystemSnapshotServiceCapabilities.c

> +
> +static CMPIStatus set_inst_properties(const CMPIBroker *broker,
> +                                      CMPIInstance *inst)
> +{

> +
> +        array = CMNewArray(broker, 2, CMPI_uint16, &s);
> +        if ((s.rc != CMPI_RC_OK) || (array == NULL))
> +                goto out;
> +
> +        element = (uint16_t)CIM_VSSS_SNAPSHOT_MEM;
> +        CMSetArrayElementAt(array, 0, &element, CMPI_uint16);
> +
> +        element = (uint16_t)CIM_VSSS_SNAPSHOT_MEMT;
> +        CMSetArrayElementAt(array, 1, &element, CMPI_uint16);

These should be VIR_VSSS_SNAPSHOT_MEM and VIR_VSSS_SNAPSHOT_MEMT

> +
> +        CMSetProperty(inst, "SnapshotTypesSupported",
> +                      (CMPIValue *)&array, CMPI_uint16A);
> +
> + out:
> +        return s;
> +}
> +


-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list