Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
libvirt-cim
clock3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File clock3.patch of Package libvirt-cim
# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1228767402 28800 # Node ID 205d33ceaa23a3a116e790590b0109c77c5683aa # Parent 780ad920644642f2fa54006b67942d1cfb2992c3 Make VSSD provider expose ClockOffset property Signed-off-by: Dan Smith <danms@us.ibm.com> diff -r 780ad9206446 -r 205d33ceaa23 src/Virt_VSSD.c --- a/src/Virt_VSSD.c Mon Dec 08 12:16:34 2008 -0800 +++ b/src/Virt_VSSD.c Mon Dec 08 12:16:42 2008 -0800 @@ -124,6 +124,16 @@ CMSetProperty(inst, "AutomaticRecoveryAction", (CMPIValue *)&dominfo->on_crash, CMPI_uint16); + + if (dominfo->clock != NULL) { + uint16_t clock = VSSD_CLOCK_UTC; + + if (STREQC(dominfo->clock, "localtime")) + clock = VSSD_CLOCK_LOC; + + CMSetProperty(inst, "ClockOffset", + (CMPIValue *)&clock, CMPI_uint16); + } if ((dominfo->type == DOMAIN_XENFV) || (dominfo->type == DOMAIN_KVM)) diff -r 780ad9206446 -r 205d33ceaa23 src/Virt_VSSD.h --- a/src/Virt_VSSD.h Mon Dec 08 12:16:34 2008 -0800 +++ b/src/Virt_VSSD.h Mon Dec 08 12:16:42 2008 -0800 @@ -21,6 +21,9 @@ #ifndef __VIRT_VSSD_H #define __VIRT_VSSD_H +#define VSSD_CLOCK_UTC 0 +#define VSSD_CLOCK_LOC 1 + CMPIStatus get_vssd_by_ref(const CMPIBroker *broker, const CMPIObjectPath *reference, CMPIInstance **_inst);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor