CIM
Threads by month
- ----- 2025 -----
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- 3141 discussions

12 Nov '07
# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1194867348 -3600
# Node ID 2519c5f9656c58a6034cf17395deb379dbae4c9c
# Parent be03306b6557177c68d4fb936cd8e38a234daff7
Updated Copyright Statements and common schema look and feel
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r be03306b6557 -r 2519c5f9656c schema/AllocationCapabilities.mof
--- a/schema/AllocationCapabilities.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/AllocationCapabilities.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,4 +1,5 @@
// Copyright IBM Corp. 2007
+
class Xen_AllocationCapabilities : CIM_AllocationCapabilities
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/AllocationCapabilities.registration
--- a/schema/AllocationCapabilities.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/AllocationCapabilities.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_AllocationCapabilities root/virt Virt_AllocationCapabilitiesProvider Virt_AllocationCapabilities instance
KVM_AllocationCapabilities root/virt Virt_AllocationCapabilitiesProvider Virt_AllocationCapabilities instance
diff -r be03306b6557 -r 2519c5f9656c schema/ComputerSystem.mof
--- a/schema/ComputerSystem.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ComputerSystem.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,35 +1,26 @@
-// Copyright 2007 IBM. All rights reserved.
+// Copyright IBM Corp. 2007
-// ==================================================================
-// Xen_ComputerSystem
-// ==================================================================
[Description (
"A class derived from CIM_ComputerSystem to represent "
- "the Xen virtual machines/domains running on the system.")]
+ "the Xen virtual machines/domains running on the system.")
+]
class Xen_ComputerSystem : CIM_ComputerSystem
{
+
[Description("UUID assigned to this DomU.")]
string UUID;
- [Description("Change domain state")]
- uint32 RequestStateChange(
- uint16 RequestedState,
- datetime TimeoutPeriod
- );
-
};
-// Copyright 2007 IBM. All rights reserved.
-
-// ==================================================================
-// KVM_ComputerSystem
-// ==================================================================
[Description (
"A class derived from CIM_ComputerSystem to represent "
- "the KVM virtual machines running on the system.")]
+ "the KVM virtual machines running on the system.")
+]
class KVM_ComputerSystem : CIM_ComputerSystem
{
+
[Description("UUID assigned to this virtual machine.")]
string UUID;
+
};
diff -r be03306b6557 -r 2519c5f9656c schema/ComputerSystem.registration
--- a/schema/ComputerSystem.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ComputerSystem.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,5 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_ComputerSystem root/virt Virt_ComputerSystemProvider Virt_ComputerSystem instance method
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
KVM_ComputerSystem root/virt Virt_ComputerSystemProvider Virt_ComputerSystem instance
diff -r be03306b6557 -r 2519c5f9656c schema/ComputerSystemIndication.mof
--- a/schema/ComputerSystemIndication.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ComputerSystemIndication.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,4 +1,5 @@
// Copyright IBM Corp. 2007
+
[Description ("Xen_ComputerSystem created")]
class Xen_ComputerSystemCreatedIndication : CIM_InstCreation
{
@@ -9,7 +10,6 @@ class Xen_ComputerSystemDeletedIndicatio
{
};
-
[Description ("KVM_ComputerSystem lifecycle")]
class KVM_ComputerSystemCreatedIndication : CIM_InstCreation
{
diff -r be03306b6557 -r 2519c5f9656c schema/ComputerSystemIndication.registration
--- a/schema/ComputerSystemIndication.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ComputerSystemIndication.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,4 +1,5 @@
# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_ComputerSystemCreatedIndication root/virt Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method
Xen_ComputerSystemDeletedIndication root/virt Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method
KVM_ComputerSystemCreatedIndication root/virt Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method
diff -r be03306b6557 -r 2519c5f9656c schema/DiskPool.mof
--- a/schema/DiskPool.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/DiskPool.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,6 +1,9 @@ class Xen_DiskPool : CIM_ResourcePool
+// Copyright IBM Corp. 2007
+
class Xen_DiskPool : CIM_ResourcePool
{
};
+
class KVM_DiskPool : CIM_ResourcePool
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/DiskPool.registration
--- a/schema/DiskPool.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/DiskPool.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,2 +1,4 @@ Xen_DiskPool root/virt Virt_DevicePoolPr
+# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_DiskPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
KVM_DiskPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
diff -r be03306b6557 -r 2519c5f9656c schema/ElementAllocatedFromPool.mof
--- a/schema/ElementAllocatedFromPool.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ElementAllocatedFromPool.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,7 +1,11 @@
// Copyright IBM Corp. 2007
+
[Association]
-class Xen_ElementAllocatedFromPool : CIM_ElementAllocatedFromPool {
+class Xen_ElementAllocatedFromPool : CIM_ElementAllocatedFromPool
+{
};
+
[Association]
-class KVM_ElementAllocatedFromPool : CIM_ElementAllocatedFromPool {
+class KVM_ElementAllocatedFromPool : CIM_ElementAllocatedFromPool
+{
};
diff -r be03306b6557 -r 2519c5f9656c schema/ElementAllocatedFromPool.registration
--- a/schema/ElementAllocatedFromPool.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ElementAllocatedFromPool.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,3 +1,4 @@
# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_ElementAllocatedFromPool root/virt Xen_ElementAllocatedFromPoolProvider Virt_ElementAllocatedFromPool association
-KVM_ElementAllocatedFromPool root/virt KVM_ElementAllocatedFromPoolProvider Virt_ElementAllocatedFromPool association
\ No newline at end of file
+KVM_ElementAllocatedFromPool root/virt KVM_ElementAllocatedFromPoolProvider Virt_ElementAllocatedFromPool association
diff -r be03306b6557 -r 2519c5f9656c schema/ElementCapabilities.mof
--- a/schema/ElementCapabilities.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ElementCapabilities.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,23 +1,17 @@
-// Copyright 2007 IBM. All rights reserved.
+// Copyright IBM Corp. 2007
-// ==================================================================
-// Xen_ElementCapabilities
-// ==================================================================
[Association,
Description (
- "A class to associate a ManagedElement with its Capabilities."
-)]
+ "A class to associate a ManagedElement with its Capabilities.")
+]
class Xen_ElementCapabilities : CIM_ElementCapabilities
{
};
-// ==================================================================
-// KVM_ElementCapabilities
-// ==================================================================
[Association,
Description (
- "A class to associate a ManagedElement with its Capabilities."
-)]
+ "A class to associate a ManagedElement with its Capabilities.")
+]
class KVM_ElementCapabilities : CIM_ElementCapabilities
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/ElementCapabilities.registration
--- a/schema/ElementCapabilities.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ElementCapabilities.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_ElementCapabilities root/virt Xen_ElementCapabilitiesProvider Virt_ElementCapabilities association
KVM_ElementCapabilities root/virt KVM_ElementCapabilitiesProvider Virt_ElementCapabilities association
diff -r be03306b6557 -r 2519c5f9656c schema/ElementConformsToProfile.mof
--- a/schema/ElementConformsToProfile.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ElementConformsToProfile.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,23 +1,17 @@
-// Copyright 2007 IBM. All rights reserved.
+// Copyright IBM Corp. 2007
-// ==================================================================
-// Xen_ElementConformsToProfile
-// ==================================================================
[Association,
Description (
- "A class to associate a ManagedElement with its RegisteredProfile."
-)]
+ "A class to associate a ManagedElement with its RegisteredProfile.")
+]
class Xen_ElementConformsToProfile : CIM_ElementConformsToProfile
{
};
-// ==================================================================
-// KVM_ElementConformsToProfile
-// ==================================================================
[Association,
Description (
- "A class to associate a ManagedElement with its RegisteredProfile."
-)]
+ "A class to associate a ManagedElement with its RegisteredProfile.")
+]
class KVM_ElementConformsToProfile : CIM_ElementConformsToProfile
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/ElementConformsToProfile.registration
--- a/schema/ElementConformsToProfile.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ElementConformsToProfile.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,7 +1,6 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
#Xen_ElementConformsToProfile root/virt Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association
Xen_ElementConformsToProfile root/interop Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
#KVM_ElementConformsToProfile root/virt Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association
KVM_ElementConformsToProfile root/interop Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association
diff -r be03306b6557 -r 2519c5f9656c schema/EnabledLogicalElementCapabilities.mof
--- a/schema/EnabledLogicalElementCapabilities.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/EnabledLogicalElementCapabilities.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,23 +1,17 @@
-// Copyright 2007 IBM. All rights reserved.
+// Copyright IBM Corp. 2007
-// ==================================================================
-// Xen_EnabledLogicalElementCapabilities
-// ==================================================================
[Description (
"A class derived from CIM_Capabilities to represent "
- "the changes that can be made to a started Xen virtual system")]
+ "the changes that can be made to a started Xen virtual system")
+]
class Xen_EnabledLogicalElementCapabilities : CIM_EnabledLogicalElementCapabilities
{
};
-// Copyright 2007 IBM. All rights reserved.
-
-// ==================================================================
-// KVM_EnabledLogicalElementCapabilities
-// ==================================================================
[Description (
"A class derived from CIM_Capabilities to represent "
- "the changes that can be made to a started KVM virtual system")]
+ "the changes that can be made to a started KVM virtual system")
+]
class KVM_EnabledLogicalElementCapabilities : CIM_EnabledLogicalElementCapabilities
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/EnabledLogicalElementCapabilities.registration
--- a/schema/EnabledLogicalElementCapabilities.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/EnabledLogicalElementCapabilities.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,5 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_EnabledLogicalElementCapabilities root/virt Virt_EnabledLogicalElementCapabilitiesProvider Virt_EnabledLogicalElementCapabilities instance
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
KVM_EnabledLogicalElementCapabilities root/virt Virt_EnabledLogicalElementCapabilitiesProvider Virt_EnabledLogicalElementCapabilities instance
diff -r be03306b6557 -r 2519c5f9656c schema/HostSystem.mof
--- a/schema/HostSystem.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/HostSystem.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,23 +1,17 @@
-// Copyright 2007 IBM. All rights reserved.
+// Copyright IBM Corp. 2007
-// ==================================================================
-// Xen_HostSystem
-// ==================================================================
[Description (
"A class derived from CIM_ComputerSystem to represent "
- "the Xen host system")]
+ "the Xen host system.")
+]
class Xen_HostSystem : CIM_ComputerSystem
{
};
-// Copyright 2007 IBM. All rights reserved.
-
-// ==================================================================
-// KVM_HostSystem
-// ==================================================================
[Description (
"A class derived from CIM_ComputerSystem to represent "
- "the KVM host system.")]
+ "the KVM host system.")
+]
class KVM_HostSystem : CIM_ComputerSystem
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/HostSystem.registration
--- a/schema/HostSystem.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/HostSystem.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,5 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_HostSystem root/virt Virt_HostSystemProvider Virt_HostSystem instance
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
KVM_HostSystem root/virt Virt_HostSystemProvider Virt_HostSystem instance
diff -r be03306b6557 -r 2519c5f9656c schema/HostedDependency.mof
--- a/schema/HostedDependency.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/HostedDependency.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,19 +1,19 @@
// Copyright IBM Corp. 2007
-// ==================================================================
-// Xen_HostedDependency
-// ==================================================================
- [Association, Version ( "2.8.0" ),
- UMLPackagePath ( "CIM::Core::CoreElements" ), Description (
- "HostedDependency defines a ManagedElement in the context of "
- "another ManagedElement in which it resides.")]
-class Xen_HostedDependency : CIM_HostedDependency {
-};
-// ==================================================================
-// KVM_HostedDependency
-// ==================================================================
- [Association, Version ( "2.8.0" ),
- UMLPackagePath ( "CIM::Core::CoreElements" ), Description (
- "HostedDependency defines a ManagedElement in the context of "
- "another ManagedElement in which it resides.")]
-class KVM_HostedDependency : CIM_HostedDependency {
-};
+
+[Association,
+ Description (
+ "HostedDependency defines a ManagedElement in the context of "
+ "another ManagedElement in which it resides.")
+]
+class Xen_HostedDependency : CIM_HostedDependency
+{
+};
+
+[Association,
+ Description (
+ "HostedDependency defines a ManagedElement in the context of "
+ "another ManagedElement in which it resides.")
+]
+class KVM_HostedDependency : CIM_HostedDependency
+{
+};
diff -r be03306b6557 -r 2519c5f9656c schema/HostedDependency.registration
--- a/schema/HostedDependency.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/HostedDependency.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,5 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_HostedDependency root/virt Virt_HostedDependencyProvider Virt_HostedDependency association
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
KVM_HostedDependency root/virt Virt_HostedDependencyProvider Virt_HostedDependency association
diff -r be03306b6557 -r 2519c5f9656c schema/HostedResourcePool.mof
--- a/schema/HostedResourcePool.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/HostedResourcePool.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,16 +1,17 @@
// Copyright IBM Corp. 2007
+
[Association,
Description (
- "Associates a host system to its resource pools"
-)]
+ "Associates a host system to its resource pools")
+]
class Xen_HostedResourcePool : CIM_HostedResourcePool
{
};
[Association,
Description (
- "Associates a host system to its resource pools"
-)]
+ "Associates a host system to its resource pools")
+]
class KVM_HostedResourcePool : CIM_HostedResourcePool
{
};
\ No newline at end of file
diff -r be03306b6557 -r 2519c5f9656c schema/HostedResourcePool.registration
--- a/schema/HostedResourcePool.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/HostedResourcePool.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,3 +1,4 @@
# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_HostedResourcePool root/virt Virt_HostedResourcePoolProvider Virt_HostedResourcePool association
KVM_HostedResourcePool root/virt Virt_HostedResourcePoolProvider Virt_HostedResourcePool association
\ No newline at end of file
diff -r be03306b6557 -r 2519c5f9656c schema/LogicalDisk.mof
--- a/schema/LogicalDisk.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/LogicalDisk.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,23 +1,17 @@
-// Copyright 2007 IBM. All rights reserved.
+// Copyright IBM Corp. 2007
-// ==================================================================
-// Xen_LogicalDisk
-// ==================================================================
[Description (
"A class derived from CIM_LogicalDisk to represent "
- "the Xen virtual disks on the system.")]
+ "the Xen virtual disks on the system.")
+]
class Xen_LogicalDisk : CIM_LogicalDisk
{
};
-// Copyright 2007 IBM. All rights reserved.
-
-// ==================================================================
-// KVM_LogicalDisk
-// ==================================================================
[Description (
"A class derived from CIM_LogicalDisk to represent "
- "the KVM virtual disks on the system.")]
+ "the KVM virtual disks on the system.")
+]
class KVM_LogicalDisk : CIM_LogicalDisk
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/LogicalDisk.registration
--- a/schema/LogicalDisk.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/LogicalDisk.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,5 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_LogicalDisk root/virt Virt_DeviceProvider Virt_Device instance
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
KVM_LogicalDisk root/virt Virt_DeviceProvider Virt_Device instance
diff -r be03306b6557 -r 2519c5f9656c schema/Memory.mof
--- a/schema/Memory.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/Memory.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,24 +1,17 @@
-// Copyright 2007 IBM. All rights reserved.
-
-// ==================================================================
-// Xen_Memory
-// ==================================================================
+// Copyright IBM Corp. 2007
[Description (
"A class derived from CIM_Memory to represent "
- "the Xen virtual memory.")]
+ "the Xen virtual memory.")
+]
class Xen_Memory : CIM_Memory
{
};
-// Copyright 2007 IBM. All rights reserved.
-
-// ==================================================================
-// KVM_Memory
-// ==================================================================
[Description (
"A class derived from CIM_Memory to represent "
- "the KVM virtual memory.")]
+ "the KVM virtual memory.")
+]
class KVM_Memory : CIM_Memory
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/Memory.registration
--- a/schema/Memory.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/Memory.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,5 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_Memory root/virt Virt_DeviceProvider Virt_Device instance
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
KVM_Memory root/virt Virt_DeviceProvider Virt_Device instance
diff -r be03306b6557 -r 2519c5f9656c schema/MemoryPool.mof
--- a/schema/MemoryPool.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/MemoryPool.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,17 +1,9 @@
-// Copyright 2007 IBM. All rights reserved.
+// Copyright IBM Corp. 2007
-// ==================================================================
-// Xen_MemoryPool
-// ==================================================================
class Xen_MemoryPool : CIM_ResourcePool
{
};
-// Copyright 2007 IBM. All rights reserved.
-
-// ==================================================================
-// KVM_MemoryPool
-// ==================================================================
class KVM_MemoryPool : CIM_ResourcePool
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/MemoryPool.registration
--- a/schema/MemoryPool.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/MemoryPool.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,5 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_MemoryPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
KVM_MemoryPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
diff -r be03306b6557 -r 2519c5f9656c schema/NetPool.mof
--- a/schema/NetPool.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/NetPool.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,7 +1,9 @@
// Copyright IBM Corp. 2007
+
class Xen_NetworkPool : CIM_ResourcePool
{
};
+
class KVM_NetworkPool : CIM_ResourcePool
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/NetPool.registration
--- a/schema/NetPool.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/NetPool.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,3 +1,4 @@
# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_NetworkPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
KVM_NetworkPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
\ No newline at end of file
diff -r be03306b6557 -r 2519c5f9656c schema/NetworkPort.mof
--- a/schema/NetworkPort.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/NetworkPort.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,23 +1,17 @@
-// Copyright 2007 IBM. All rights reserved.
+// Copyright IBM Corp. 2007
-// ==================================================================
-// Xen_NetworkPort
-// ==================================================================
[Description (
"A class derived from CIM_NetworkPort to represent "
- "the Xen virtual network interfaces on the system.")]
+ "the Xen virtual network interfaces on the system.")
+]
class Xen_NetworkPort : CIM_NetworkPort
{
};
-// Copyright 2007 IBM. All rights reserved.
-
-// ==================================================================
-// KVM_NetworkPort
-// ==================================================================
[Description (
"A class derived from CIM_NetworkPort to represent "
- "the KVM virtual network interfaces on the system.")]
+ "the KVM virtual network interfaces on the system.")
+]
class KVM_NetworkPort : CIM_NetworkPort
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/NetworkPort.registration
--- a/schema/NetworkPort.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/NetworkPort.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,5 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_NetworkPort root/virt Virt_DeviceProvider Virt_Device instance
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
KVM_NetworkPort root/virt Virt_DeviceProvider Virt_Device instance
diff -r be03306b6557 -r 2519c5f9656c schema/Processor.mof
--- a/schema/Processor.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/Processor.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,23 +1,17 @@
-// Copyright 2007 IBM. All rights reserved.
+// Copyright IBM Corp. 2007
-// ==================================================================
-// Xen_Processor
-// ==================================================================
[Description (
"A class derived from CIM_Processor to represent "
- "the Xen virtual processors.")]
+ "the Xen virtual processors.")
+]
class Xen_Processor : CIM_Processor
{
};
-// Copyright 2007 IBM. All rights reserved.
-
-// ==================================================================
-// KVM_Processor
-// ==================================================================
[Description (
"A class derived from CIM_Processor to represent "
- "the KVM virtual processors.")]
+ "the KVM virtual processors.")
+]
class KVM_Processor : CIM_Processor
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/Processor.registration
--- a/schema/Processor.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/Processor.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,5 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_Processor root/virt Virt_DeviceProvider Virt_Device instance
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
KVM_Processor root/virt Virt_DeviceProvider Virt_Device instance
diff -r be03306b6557 -r 2519c5f9656c schema/ProcessorPool.mof
--- a/schema/ProcessorPool.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ProcessorPool.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,17 +1,9 @@
-// Copyright 2007 IBM. All rights reserved.
+// Copyright IBM Corp. 2007
-// ==================================================================
-// Xen_ProcessorPool
-// ==================================================================
class Xen_ProcessorPool : CIM_ResourcePool
{
};
-// Copyright 2007 IBM. All rights reserved.
-
-// ==================================================================
-// KVM_ProcessorPool
-// ==================================================================
class KVM_ProcessorPool : CIM_ResourcePool
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/ProcessorPool.registration
--- a/schema/ProcessorPool.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ProcessorPool.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,5 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_ProcessorPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
KVM_ProcessorPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
diff -r be03306b6557 -r 2519c5f9656c schema/RegisteredProfile.mof
--- a/schema/RegisteredProfile.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/RegisteredProfile.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,21 +1,17 @@
-// Copyright 2007 IBM. All rights reserved.
+// Copyright IBM Corp. 2007
-// ==================================================================
-// Xen_RegisteredProfile
-// ==================================================================
[Description (
"A class derived from CIM_RegisteredProfile to represent "
- "an advertised conformant profile.")]
+ "an advertised conformant profile.")
+]
class Xen_RegisteredProfile : CIM_RegisteredProfile
{
};
-// ==================================================================
-// KVM_RegisteredProfile
-// ==================================================================
[Description (
"A class derived from CIM_RegisteredProfile to represent "
- "an advertised conformant profile.")]
+ "an advertised conformant profile.")
+]
class KVM_RegisteredProfile : CIM_RegisteredProfile
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/RegisteredProfile.registration
--- a/schema/RegisteredProfile.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/RegisteredProfile.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,5 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_RegisteredProfile root/interop Virt_RegisteredProfileProvider Virt_RegisteredProfile instance
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
KVM_RegisteredProfile root/interop Virt_RegisteredProfileProvider Virt_RegisteredProfile instance
diff -r be03306b6557 -r 2519c5f9656c schema/ResourceAllocationFromPool.mof
--- a/schema/ResourceAllocationFromPool.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ResourceAllocationFromPool.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,6 +1,11 @@
// Copyright IBM Corp. 2007
-class Xen_ResourceAllocationFromPool : CIM_ResourceAllocationFromPool {
+
+[Association]
+class Xen_ResourceAllocationFromPool : CIM_ResourceAllocationFromPool
+{
};
-class KVM_ResourceAllocationFromPool : CIM_ResourceAllocationFromPool {
+[Association]
+class KVM_ResourceAllocationFromPool : CIM_ResourceAllocationFromPool
+{
};
diff -r be03306b6557 -r 2519c5f9656c schema/ResourceAllocationFromPool.registration
--- a/schema/ResourceAllocationFromPool.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ResourceAllocationFromPool.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,3 +1,4 @@
# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_ResourceAllocationFromPool root/virt Xen_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association
KVM_ResourceAllocationFromPool root/virt KVM_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association
\ No newline at end of file
diff -r be03306b6557 -r 2519c5f9656c schema/ResourceAllocationSettingData.mof
--- a/schema/ResourceAllocationSettingData.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ResourceAllocationSettingData.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,14 +1,16 @@
// Copyright IBM Corp. 2007
-class Xen_ResourceAllocationSettingData : CIM_ResourceAllocationSettingData {
+class Xen_ResourceAllocationSettingData : CIM_ResourceAllocationSettingData
+{
};
-class KVM_ResourceAllocationSettingData : CIM_ResourceAllocationSettingData {
-
+class KVM_ResourceAllocationSettingData : CIM_ResourceAllocationSettingData
+{
};
[Description ("Xen virtual disk configuration")]
-class Xen_DiskResourceAllocationSettingData : Xen_ResourceAllocationSettingData{
+class Xen_DiskResourceAllocationSettingData : Xen_ResourceAllocationSettingData
+{
[Description ("Device as seen by the guest")]
string VirtualDevice;
@@ -16,7 +18,8 @@ class Xen_DiskResourceAllocationSettingD
};
[Description ("KVM virtual disk configuration")]
-class KVM_DiskResourceAllocationSettingData : KVM_ResourceAllocationSettingData{
+class KVM_DiskResourceAllocationSettingData : KVM_ResourceAllocationSettingData
+{
[Description ("Device as seen by the guest")]
string VirtualDevice;
@@ -24,7 +27,8 @@ class KVM_DiskResourceAllocationSettingD
};
[Description ("Xen virtual network configuration")]
-class Xen_NetResourceAllocationSettingData : Xen_ResourceAllocationSettingData {
+class Xen_NetResourceAllocationSettingData : Xen_ResourceAllocationSettingData
+{
[Description ("Interface type")]
string NetworkType;
@@ -32,7 +36,8 @@ class Xen_NetResourceAllocationSettingDa
};
[Description ("KVM virtual network configuration")]
-class KVM_NetResourceAllocationSettingData : KVM_ResourceAllocationSettingData {
+class KVM_NetResourceAllocationSettingData : KVM_ResourceAllocationSettingData
+{
[Description ("Interface type")]
string NetworkType;
@@ -40,13 +45,21 @@ class KVM_NetResourceAllocationSettingDa
};
[Description ("Xen virtual processor")]
-class Xen_ProcResourceAllocationSettingData : Xen_ResourceAllocationSettingData {};
+class Xen_ProcResourceAllocationSettingData : Xen_ResourceAllocationSettingData
+{
+};
[Description ("KVM virtual processor")]
-class KVM_ProcResourceAllocationSettingData : KVM_ResourceAllocationSettingData {};
+class KVM_ProcResourceAllocationSettingData : KVM_ResourceAllocationSettingData
+{
+};
[Description ("Xen virtual memory")]
-class Xen_MemResourceAllocationSettingData : Xen_ResourceAllocationSettingData {};
+class Xen_MemResourceAllocationSettingData : Xen_ResourceAllocationSettingData
+{
+};
[Description ("KVM virtual memory")]
-class KVM_MemResourceAllocationSettingData : KVM_ResourceAllocationSettingData {};
+class KVM_MemResourceAllocationSettingData : KVM_ResourceAllocationSettingData
+{
+};
diff -r be03306b6557 -r 2519c5f9656c schema/ResourceAllocationSettingData.registration
--- a/schema/ResourceAllocationSettingData.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ResourceAllocationSettingData.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,4 +1,5 @@
# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_DiskResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance
Xen_NetResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance
Xen_ProcResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance
diff -r be03306b6557 -r 2519c5f9656c schema/ResourcePoolConfigurationCapabilities.mof
--- a/schema/ResourcePoolConfigurationCapabilities.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ResourcePoolConfigurationCapabilities.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,7 +1,9 @@
// Copyright IBM Corp. 2007
-class Xen_ResourcePoolConfigurationCapabilities : CIM_ResourcePoolConfigurationCapabilities {
+class Xen_ResourcePoolConfigurationCapabilities : CIM_ResourcePoolConfigurationCapabilities
+{
};
-class KVM_ResourcePoolConfigurationCapabilities : CIM_ResourcePoolConfigurationCapabilities {
+class KVM_ResourcePoolConfigurationCapabilities : CIM_ResourcePoolConfigurationCapabilities
+{
};
diff -r be03306b6557 -r 2519c5f9656c schema/ResourcePoolConfigurationCapabilities.registration
--- a/schema/ResourcePoolConfigurationCapabilities.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ResourcePoolConfigurationCapabilities.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,3 +1,4 @@
# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_ResourcePoolConfigurationCapabilities root/virt Virt_ResourcePoolConfigurationCapabilitiesProvider Virt_ResourcePoolConfigurationCapabilities instance
KVM_ResourcePoolConfigurationCapabilities root/virt Virt_ResourcePoolConfigurationCapabilitiesProvider Virt_ResourcePoolConfigurationCapabilities instance
\ No newline at end of file
diff -r be03306b6557 -r 2519c5f9656c schema/ResourcePoolConfigurationService.mof
--- a/schema/ResourcePoolConfigurationService.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ResourcePoolConfigurationService.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,8 +1,9 @@
// Copyright IBM Corp. 2007
-class Xen_ResourcePoolConfigurationService : CIM_ResourcePoolConfigurationService {
+class Xen_ResourcePoolConfigurationService : CIM_ResourcePoolConfigurationService
+{
};
-class KVM_ResourcePoolConfigurationService : CIM_ResourcePoolConfigurationService {
-
-};
\ No newline at end of file
+class KVM_ResourcePoolConfigurationService : CIM_ResourcePoolConfigurationService
+{
+};
diff -r be03306b6557 -r 2519c5f9656c schema/ResourcePoolConfigurationService.registration
--- a/schema/ResourcePoolConfigurationService.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/ResourcePoolConfigurationService.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,3 +1,4 @@
# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_ResourcePoolConfigurationService root/virt Virt_ResourcePoolConfigurationServiceProvider Virt_ResourcePoolConfigurationService instance method
KVM_ResourcePoolConfigurationService root/virt Virt_ResourcePoolConfigurationServiceProvider Virt_ResourcePoolConfigurationService instance method
\ No newline at end of file
diff -r be03306b6557 -r 2519c5f9656c schema/SettingsDefineCapabilities.mof
--- a/schema/SettingsDefineCapabilities.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/SettingsDefineCapabilities.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,8 +1,11 @@
// Copyright IBM Corp. 2007
+
+[Association]
class Xen_SettingsDefineCapabilities : CIM_SettingsDefineCapabilities
{
};
+[Association]
class KVM_SettingsDefineCapabilities : CIM_SettingsDefineCapabilities
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/SettingsDefineCapabilities.registration
--- a/schema/SettingsDefineCapabilities.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/SettingsDefineCapabilities.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_SettingsDefineCapabilities root/virt Xen_SettingsDefineCapabilitiesProvider Virt_SettingsDefineCapabilities association
-KVM_SettingsDefineCapabilities root/virt KVM_SettingsDefineCapabilitiesProvider Virt_SettingsDefineCapabilities association
+# Classname Namespace ProviderName ProviderModule ProviderTypes
+Xen_SettingsDefineCapabilities root/virt Xen_SettingsDefineCapabilitiesProvider Virt_SettingsDefineCapabilities association
+KVM_SettingsDefineCapabilities root/virt KVM_SettingsDefineCapabilitiesProvider Virt_SettingsDefineCapabilities association
diff -r be03306b6557 -r 2519c5f9656c schema/SettingsDefineState.mof
--- a/schema/SettingsDefineState.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/SettingsDefineState.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,6 +1,11 @@
// Copyright IBM Corp. 2007
-class Xen_SettingsDefineState : CIM_SettingsDefineState {
+
+[Association]
+class Xen_SettingsDefineState : CIM_SettingsDefineState
+{
};
-class KVM_SettingsDefineState : CIM_SettingsDefineState {
+[Association]
+class KVM_SettingsDefineState : CIM_SettingsDefineState
+{
};
\ No newline at end of file
diff -r be03306b6557 -r 2519c5f9656c schema/SettingsDefineState.registration
--- a/schema/SettingsDefineState.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/SettingsDefineState.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_SettingsDefineState root/virt Xen_SettingsDefineStateProvider Virt_SettingsDefineState association
KVM_SettingsDefineState root/virt KVM_SettingsDefineStateProvider Virt_SettingsDefineState association
diff -r be03306b6557 -r 2519c5f9656c schema/SystemDevice.mof
--- a/schema/SystemDevice.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/SystemDevice.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,44 +1,32 @@
-// Copyright 2007 IBM. All rights reserved.
+// Copyright IBM Corp. 2007
-// *******************************************************************
-// Associations
-// *******************************************************************
-
-// ==================================================================
-// Xen_SystemDevice
-// ==================================================================
[Association,
Description (
- "A class to associate a Xen_ComputerSystem with its devices"
-)]
+ "A class to associate a Xen_ComputerSystem with its devices." )
+]
class Xen_SystemDevice : CIM_SystemDevice
{
+
[Override ( "GroupComponent" )]
Xen_ComputerSystem REF GroupComponent;
[Override ( "PartComponent" )]
CIM_LogicalDevice REF PartComponent;
+
};
-// Copyright 2007 IBM. All rights reserved.
-
-// *******************************************************************
-// Associations
-// *******************************************************************
-
-// ==================================================================
-// KVM_SystemDevice
-// ==================================================================
[Association,
Description (
- "A class to associate a KVM_ComputerSystem with its devices"
-)]
+ "A class to associate a KVM_ComputerSystem with its devices." )
+]
class KVM_SystemDevice : CIM_SystemDevice
{
+
[Override ( "GroupComponent" )]
KVM_ComputerSystem REF GroupComponent;
[Override ( "PartComponent" )]
CIM_LogicalDevice REF PartComponent;
+
};
diff -r be03306b6557 -r 2519c5f9656c schema/SystemDevice.registration
--- a/schema/SystemDevice.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/SystemDevice.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,3 +1,4 @@
# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_SystemDevice root/virt Xen_SystemDeviceProvider Virt_SystemDevice association
KVM_SystemDevice root/virt KVM_SystemDeviceProvider Virt_SystemDevice association
diff -r be03306b6557 -r 2519c5f9656c schema/VSSD.mof
--- a/schema/VSSD.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/VSSD.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,16 +1,21 @@
// Copyright IBM Corp. 2007
+
[Description (
"A class derived from CIM_VirtualSystemSettingData to represent "
- "the config of Xen virtual machines/domains running on the system.")]
+ "the config of Xen virtual machines/domains running on the system.")
+]
class Xen_VirtualSystemSettingData : CIM_VirtualSystemSettingData
{
+
string Bootloader;
string BootloaderArgs;
+
};
[Description (
"A class derived from CIM_VirtualSystemSettingData to represent "
- "the config of KVM virtual machines/domains running on the system.")]
+ "the config of KVM virtual machines/domains running on the system.")
+]
class KVM_VirtualSystemSettingData : CIM_VirtualSystemSettingData
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/VSSD.registration
--- a/schema/VSSD.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/VSSD.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_VirtualSystemSettingData root/virt Virt_VSSDProvider Virt_VSSD instance
KVM_VirtualSystemSettingData root/virt Virt_VSSDProvider Virt_VSSD instance
diff -r be03306b6557 -r 2519c5f9656c schema/VSSDComponent.mof
--- a/schema/VSSDComponent.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/VSSDComponent.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,6 +1,11 @@
// Copyright IBM Corp. 2007
-class Xen_VirtualSystemSettingDataComponent : CIM_Component {
+
+[Association]
+class Xen_VirtualSystemSettingDataComponent : CIM_Component
+{
};
-class KVM_VirtualSystemSettingDataComponent : CIM_Component {
+[Association]
+class KVM_VirtualSystemSettingDataComponent : CIM_Component
+{
};
diff -r be03306b6557 -r 2519c5f9656c schema/VSSDComponent.registration
--- a/schema/VSSDComponent.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/VSSDComponent.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_VirtualSystemSettingDataComponent root/virt Xen_VSSDComponentProvider Virt_VSSDComponent association
KVM_VirtualSystemSettingDataComponent root/virt KVM_VSSDComponentProvider Virt_VSSDComponent association
diff -r be03306b6557 -r 2519c5f9656c schema/VirtualSystemManagementCapabilities.mof
--- a/schema/VirtualSystemManagementCapabilities.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/VirtualSystemManagementCapabilities.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,23 +1,17 @@
-// Copyright 2007 IBM. All rights reserved.
+// Copyright IBM Corp. 2007
-// ==================================================================
-// Xen_VirtualSystemManagementCapabilities
-// ==================================================================
[Description (
"A class derived from CIM_Capabilities to represent "
- "the management capabilities of a Xen virtual system")]
+ "the management capabilities of a Xen virtual system")
+]
class Xen_VirtualSystemManagementCapabilities : CIM_VirtualSystemManagementCapabilities
{
};
-// Copyright 2007 IBM. All rights reserved.
-
-// ==================================================================
-// KVM_VirtualSystemManagementCapabilities
-// ==================================================================
[Description (
"A class derived from CIM_Capabilities to represent "
- "the management capabilities of a KVM virtual system.")]
+ "the management capabilities of a KVM virtual system.")
+]
class KVM_VirtualSystemManagementCapabilities : CIM_VirtualSystemManagementCapabilities
{
};
diff -r be03306b6557 -r 2519c5f9656c schema/VirtualSystemManagementCapabilities.registration
--- a/schema/VirtualSystemManagementCapabilities.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/VirtualSystemManagementCapabilities.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,5 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_VirtualSystemManagementCapabilities root/virt Virt_VirtualSystemManagementCapabilitiesProvider Virt_VirtualSystemManagementCapabilities instance
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
KVM_VirtualSystemManagementCapabilities root/virt Virt_VirtualSystemManagementCapabilitiesProvider Virt_VirtualSystemManagementCapabilities instance
diff -r be03306b6557 -r 2519c5f9656c schema/VirtualSystemManagementService.mof
--- a/schema/VirtualSystemManagementService.mof Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/VirtualSystemManagementService.mof Mon Nov 12 12:35:48 2007 +0100
@@ -1,6 +1,9 @@
// Copyright IBM Corp. 2007
-class Xen_VirtualSystemManagementService : CIM_VirtualSystemManagementService {
+
+class Xen_VirtualSystemManagementService : CIM_VirtualSystemManagementService
+{
};
-class KVM_VirtualSystemManagementService : CIM_VirtualSystemManagementService {
+class KVM_VirtualSystemManagementService : CIM_VirtualSystemManagementService
+{
};
diff -r be03306b6557 -r 2519c5f9656c schema/VirtualSystemManagementService.registration
--- a/schema/VirtualSystemManagementService.registration Mon Nov 12 12:16:21 2007 +0100
+++ b/schema/VirtualSystemManagementService.registration Mon Nov 12 12:35:48 2007 +0100
@@ -1,3 +1,4 @@
# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_VirtualSystemManagementService root/virt Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method instance
KVM_VirtualSystemManagementService root/virt Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method instance
1
0
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1194491086 28800
# Node ID c84928927faf099a7de17ee15321ad7f2574e979
# Parent 926009fc62a0080bcf93aaddf098b074ce71a096
Fix stdi_trigger_indication for Pegasus
This fixes (for me) the DefineSystem crash on Pegasus.
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 926009fc62a0 -r c84928927faf std_indication.c
--- a/std_indication.c Wed Nov 07 08:40:48 2007 -0800
+++ b/std_indication.c Wed Nov 07 19:04:46 2007 -0800
@@ -92,10 +92,30 @@ CMPIStatus stdi_trigger_indication(const
CMPIObjectPath *op;
CMPIStatus s;
const char *method = "TriggerIndications";
+ CMPIArgs *in;
+ CMPIArgs *out;
+
+ in = CMNewArgs(broker, &s);
+ if (s.rc != CMPI_RC_OK)
+ return s;
+
+ out = CMNewArgs(broker, &s);
+ if (s.rc != CMPI_RC_OK)
+ return s;
op = CMNewObjectPath(broker, ns, type, &s);
- CBInvokeMethod(broker, context, op, method, NULL, NULL, &s);
+ if ((op == NULL) || (s.rc != CMPI_RC_OK)) {
+ CU_DEBUG("Unable to create path for indication %s",
+ type);
+ cu_statusf(broker, &s,
+ CMPI_RC_ERR_FAILED,
+ "Unable to create path for indication %s",
+ type);
+ goto out;
+ }
+ CBInvokeMethod(broker, context, op, method, in, out, &s);
+ out:
return s;
}
@@ -108,21 +128,26 @@ CMPIStatus stdi_raise_indication(const C
CMPIObjectPath *op;
CMPIStatus s;
const char *method = "RaiseIndication";
- CMPIArgs *args;
+ CMPIArgs *argsin;
+ CMPIArgs *argsout;
op = CMNewObjectPath(broker, ns, type, &s);
if (s.rc != CMPI_RC_OK)
return s;
- args = CMNewArgs(broker, &s);
+ argsin = CMNewArgs(broker, &s);
if (s.rc != CMPI_RC_OK)
return s;
- s = CMAddArg(args, "Indication", &ind, CMPI_instance);
+ argsout = CMNewArgs(broker, &s);
if (s.rc != CMPI_RC_OK)
return s;
- CBInvokeMethod(broker, context, op, method, args, NULL, &s);
+ s = CMAddArg(argsin, "Indication", &ind, CMPI_instance);
+ if (s.rc != CMPI_RC_OK)
+ return s;
+
+ CBInvokeMethod(broker, context, op, method, argsin, argsout, &s);
return s;
}
3
2
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1194624608 28800
# Node ID 581a0f3fb078ccb003378d6d5974f5fe4636f123
# Parent 08753448b529043c78b24ebb019485761d8c6d4c
Change installed namespace to root/virt
- Made namespace a configure option for the source build
- Made Makefile postinstall use namespace variable
- Updated for HostedService recent addition
This one deserves some serious testing, although I was pleasantly surprised
at how few instances of the namespace we had hard-coded. We could probably
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 08753448b529 -r 581a0f3fb078 Makefile.am
--- a/Makefile.am Thu Nov 08 19:19:50 2007 -0800
+++ b/Makefile.am Fri Nov 09 08:10:08 2007 -0800
@@ -83,11 +83,11 @@ EXTRA_DIST = schema $(pkgdata_DATA) $(pk
# Un/Register the providers and class definitions from/to the current CIMOM.
# @CIMSERVER@ is set by the configure script
postinstall:
- sh provider-register.sh -v -t @CIMSERVER@ -n /root/ibmsd -r $(REGS) -m $(MOFS)
+ sh provider-register.sh -v -t @CIMSERVER@ -n @CIM_VIRT_NS@ -r $(REGS) -m $(MOFS)
sh provider-register.sh -v -t @CIMSERVER@ -n /root/interop -r $(INTEROP_REGS) -m $(INTEROP_MOFS)
preuninstall:
- sh provider-register.sh -v -d -t @CIMSERVER@ -n /root/ibmsd -r $(REGS) -m $(MOFS)
+ sh provider-register.sh -v -d -t @CIMSERVER@ -n @CIM_VIRT_NS@ -r $(REGS) -m $(MOFS)
sh provider-register.sh -v -d -t @CIMSERVER@ -n /root/interop -r $(INTEROP_REGS) -m $(INTEROP_MOFS)
rpm: clean
diff -r 08753448b529 -r 581a0f3fb078 configure.ac
--- a/configure.ac Thu Nov 08 19:19:50 2007 -0800
+++ b/configure.ac Fri Nov 09 08:10:08 2007 -0800
@@ -34,6 +34,14 @@ AC_ARG_VAR([LIBVIRTDIR],[the directory w
AC_ARG_VAR([LIBVIRTDIR],[the directory where the libvirt package is installed.])
AC_ARG_VAR([TESTSUITEDIR],[the directory where the SBLIM testsuite is installed.
])
+
+AC_ARG_WITH([namespace],
+ AC_HELP_STRING([--with-namespace=ns],
+ [CIM namespace to use, default root/virt]),
+ [test "x$withval" != "x" && CIM_VIRT_NS="$withval"],
+ [CIM_VIRT_NS="root/virt"])
+AC_SUBST(CIM_VIRT_NS)
+AC_DEFINE_UNQUOTED(CIM_VIRT_NS, "$CIM_VIRT_NS", [Namespace for provider source])
AC_ARG_WITH([diskconfig],
[ --with-diskconfig=PATH Set config file for disk pool. (default=/tmp/diskpool.conf)],
diff -r 08753448b529 -r 581a0f3fb078 doc/libvirt-cim.html
--- a/doc/libvirt-cim.html Thu Nov 08 19:19:50 2007 -0800
+++ b/doc/libvirt-cim.html Fri Nov 09 08:10:08 2007 -0800
@@ -73,9 +73,9 @@
$ mkdir cim216<br/>
$ cd cim216<br/>
$ unzip $PATH_TO_ZIPFILE<br/>
- $ sudo cimmofl -uc -aEV -R$PEGASUS_REPO -n /root/ibmsd cimv216.mof<br/>
- $ sudo cimmofl -uc -aEV -R$PEGASUS_REPO -n /root/ibmsd qualifiers.mof<br/>
- $ sudo cimmofl -uc -aEV -R$PEGASUS_REPO -n /root/ibmsd qualifiers_optional.mof<br/>
+ $ sudo cimmofl -uc -aEV -R$PEGASUS_REPO -n /root/virt cimv216.mof<br/>
+ $ sudo cimmofl -uc -aEV -R$PEGASUS_REPO -n /root/virt qualifiers.mof<br/>
+ $ sudo cimmofl -uc -aEV -R$PEGASUS_REPO -n /root/virt qualifiers_optional.mof<br/>
</code></p>
<h4>To install the schema in SFCB:</h4>
diff -r 08753448b529 -r 581a0f3fb078 schema/AllocationCapabilities.registration
--- a/schema/AllocationCapabilities.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/AllocationCapabilities.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_AllocationCapabilities root/ibmsd Virt_AllocationCapabilitiesProvider Virt_AllocationCapabilities instance
-KVM_AllocationCapabilities root/ibmsd Virt_AllocationCapabilitiesProvider Virt_AllocationCapabilities instance
+Xen_AllocationCapabilities root/virt Virt_AllocationCapabilitiesProvider Virt_AllocationCapabilities instance
+KVM_AllocationCapabilities root/virt Virt_AllocationCapabilitiesProvider Virt_AllocationCapabilities instance
diff -r 08753448b529 -r 581a0f3fb078 schema/ComputerSystem.registration
--- a/schema/ComputerSystem.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/ComputerSystem.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_ComputerSystem root/ibmsd Virt_ComputerSystemProvider Virt_ComputerSystem instance method
+Xen_ComputerSystem root/virt Virt_ComputerSystemProvider Virt_ComputerSystem instance method
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-KVM_ComputerSystem root/ibmsd Virt_ComputerSystemProvider Virt_ComputerSystem instance
+KVM_ComputerSystem root/virt Virt_ComputerSystemProvider Virt_ComputerSystem instance
diff -r 08753448b529 -r 581a0f3fb078 schema/ComputerSystemIndication.registration
--- a/schema/ComputerSystemIndication.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/ComputerSystemIndication.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2007
-Xen_ComputerSystemCreatedIndication root/ibmsd Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method
-Xen_ComputerSystemDeletedIndication root/ibmsd Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method
-KVM_ComputerSystemCreatedIndication root/ibmsd Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method
-KVM_ComputerSystemDeletedIndication root/ibmsd Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method
+Xen_ComputerSystemCreatedIndication root/virt Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method
+Xen_ComputerSystemDeletedIndication root/virt Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method
+KVM_ComputerSystemCreatedIndication root/virt Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method
+KVM_ComputerSystemDeletedIndication root/virt Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method
diff -r 08753448b529 -r 581a0f3fb078 schema/DiskPool.registration
--- a/schema/DiskPool.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/DiskPool.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,2 +1,2 @@ Xen_DiskPool root/ibmsd Virt_DevicePoolP
-Xen_DiskPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance
-KVM_DiskPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance
+Xen_DiskPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
+KVM_DiskPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
diff -r 08753448b529 -r 581a0f3fb078 schema/ElementAllocatedFromPool.registration
--- a/schema/ElementAllocatedFromPool.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/ElementAllocatedFromPool.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,3 +1,3 @@
# Copyright IBM Corp. 2007
-Xen_ElementAllocatedFromPool root/ibmsd Xen_ElementAllocatedFromPoolProvider Virt_ElementAllocatedFromPool association
-KVM_ElementAllocatedFromPool root/ibmsd KVM_ElementAllocatedFromPoolProvider Virt_ElementAllocatedFromPool association
\ No newline at end of file
+Xen_ElementAllocatedFromPool root/virt Xen_ElementAllocatedFromPoolProvider Virt_ElementAllocatedFromPool association
+KVM_ElementAllocatedFromPool root/virt KVM_ElementAllocatedFromPoolProvider Virt_ElementAllocatedFromPool association
\ No newline at end of file
diff -r 08753448b529 -r 581a0f3fb078 schema/ElementConformsToProfile.registration
--- a/schema/ElementConformsToProfile.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/ElementConformsToProfile.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,7 +1,7 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-#Xen_ElementConformsToProfile root/ibmsd Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association
+#Xen_ElementConformsToProfile root/virt Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association
Xen_ElementConformsToProfile root/interop Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-#KVM_ElementConformsToProfile root/ibmsd Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association
+#KVM_ElementConformsToProfile root/virt Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association
KVM_ElementConformsToProfile root/interop Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association
diff -r 08753448b529 -r 581a0f3fb078 schema/EnabledLogicalElementCapabilities.registration
--- a/schema/EnabledLogicalElementCapabilities.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/EnabledLogicalElementCapabilities.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_EnabledLogicalElementCapabilities root/ibmsd Virt_EnabledLogicalElementCapabilitiesProvider Virt_EnabledLogicalElementCapabilities instance
+Xen_EnabledLogicalElementCapabilities root/virt Virt_EnabledLogicalElementCapabilitiesProvider Virt_EnabledLogicalElementCapabilities instance
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-KVM_EnabledLogicalElementCapabilities root/ibmsd Virt_EnabledLogicalElementCapabilitiesProvider Virt_EnabledLogicalElementCapabilities instance
+KVM_EnabledLogicalElementCapabilities root/virt Virt_EnabledLogicalElementCapabilitiesProvider Virt_EnabledLogicalElementCapabilities instance
diff -r 08753448b529 -r 581a0f3fb078 schema/HostSystem.registration
--- a/schema/HostSystem.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/HostSystem.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_HostSystem root/ibmsd Virt_HostSystemProvider Virt_HostSystem instance
+Xen_HostSystem root/virt Virt_HostSystemProvider Virt_HostSystem instance
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-KVM_HostSystem root/ibmsd Virt_HostSystemProvider Virt_HostSystem instance
+KVM_HostSystem root/virt Virt_HostSystemProvider Virt_HostSystem instance
diff -r 08753448b529 -r 581a0f3fb078 schema/HostedDependency.registration
--- a/schema/HostedDependency.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/HostedDependency.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_HostedDependency root/ibmsd Virt_HostedDependencyProvider Virt_HostedDependency association
+Xen_HostedDependency root/virt Virt_HostedDependencyProvider Virt_HostedDependency association
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-KVM_HostedDependency root/ibmsd Virt_HostedDependencyProvider Virt_HostedDependency association
+KVM_HostedDependency root/virt Virt_HostedDependencyProvider Virt_HostedDependency association
diff -r 08753448b529 -r 581a0f3fb078 schema/HostedResourcePool.registration
--- a/schema/HostedResourcePool.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/HostedResourcePool.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,3 +1,3 @@
# Copyright IBM Corp. 2007
-Xen_HostedResourcePool root/ibmsd Virt_HostedResourcePoolProvider Virt_HostedResourcePool association
-KVM_HostedResourcePool root/ibmsd Virt_HostedResourcePoolProvider Virt_HostedResourcePool association
\ No newline at end of file
+Xen_HostedResourcePool root/virt Virt_HostedResourcePoolProvider Virt_HostedResourcePool association
+KVM_HostedResourcePool root/virt Virt_HostedResourcePoolProvider Virt_HostedResourcePool association
\ No newline at end of file
diff -r 08753448b529 -r 581a0f3fb078 schema/HostedService.registration
--- a/schema/HostedService.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/HostedService.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_HostedService root/ibmsd Xen_HostedServiceProvider Virt_HostedService association
-KVM_HostedService root/ibmsd KVM_HostedServiceProvider Virt_HostedService association
+Xen_HostedService root/virt Xen_HostedServiceProvider Virt_HostedService association
+KVM_HostedService root/virt KVM_HostedServiceProvider Virt_HostedService association
diff -r 08753448b529 -r 581a0f3fb078 schema/LogicalDisk.registration
--- a/schema/LogicalDisk.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/LogicalDisk.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_LogicalDisk root/ibmsd Virt_DeviceProvider Virt_Device instance
+Xen_LogicalDisk root/virt Virt_DeviceProvider Virt_Device instance
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-KVM_LogicalDisk root/ibmsd Virt_DeviceProvider Virt_Device instance
+KVM_LogicalDisk root/virt Virt_DeviceProvider Virt_Device instance
diff -r 08753448b529 -r 581a0f3fb078 schema/Memory.registration
--- a/schema/Memory.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/Memory.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_Memory root/ibmsd Virt_DeviceProvider Virt_Device instance
+Xen_Memory root/virt Virt_DeviceProvider Virt_Device instance
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-KVM_Memory root/ibmsd Virt_DeviceProvider Virt_Device instance
+KVM_Memory root/virt Virt_DeviceProvider Virt_Device instance
diff -r 08753448b529 -r 581a0f3fb078 schema/MemoryPool.registration
--- a/schema/MemoryPool.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/MemoryPool.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_MemoryPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance
+Xen_MemoryPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-KVM_MemoryPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance
+KVM_MemoryPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
diff -r 08753448b529 -r 581a0f3fb078 schema/NetPool.registration
--- a/schema/NetPool.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/NetPool.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,3 +1,3 @@
# Copyright IBM Corp. 2007
-Xen_NetworkPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance
-KVM_NetworkPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance
\ No newline at end of file
+Xen_NetworkPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
+KVM_NetworkPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
\ No newline at end of file
diff -r 08753448b529 -r 581a0f3fb078 schema/NetworkPort.registration
--- a/schema/NetworkPort.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/NetworkPort.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_NetworkPort root/ibmsd Virt_DeviceProvider Virt_Device instance
+Xen_NetworkPort root/virt Virt_DeviceProvider Virt_Device instance
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-KVM_NetworkPort root/ibmsd Virt_DeviceProvider Virt_Device instance
+KVM_NetworkPort root/virt Virt_DeviceProvider Virt_Device instance
diff -r 08753448b529 -r 581a0f3fb078 schema/Processor.registration
--- a/schema/Processor.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/Processor.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_Processor root/ibmsd Virt_DeviceProvider Virt_Device instance
+Xen_Processor root/virt Virt_DeviceProvider Virt_Device instance
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-KVM_Processor root/ibmsd Virt_DeviceProvider Virt_Device instance
+KVM_Processor root/virt Virt_DeviceProvider Virt_Device instance
diff -r 08753448b529 -r 581a0f3fb078 schema/ProcessorPool.registration
--- a/schema/ProcessorPool.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/ProcessorPool.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_ProcessorPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance
+Xen_ProcessorPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-KVM_ProcessorPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance
+KVM_ProcessorPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance
diff -r 08753448b529 -r 581a0f3fb078 schema/ResourceAllocationFromPool.registration
--- a/schema/ResourceAllocationFromPool.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/ResourceAllocationFromPool.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,3 +1,3 @@
# Copyright IBM Corp. 2007
-Xen_ResourceAllocationFromPool root/ibmsd Xen_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association
-KVM_ResourceAllocationFromPool root/ibmsd KVM_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association
\ No newline at end of file
+Xen_ResourceAllocationFromPool root/virt Xen_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association
+KVM_ResourceAllocationFromPool root/virt KVM_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association
\ No newline at end of file
diff -r 08753448b529 -r 581a0f3fb078 schema/ResourceAllocationSettingData.registration
--- a/schema/ResourceAllocationSettingData.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/ResourceAllocationSettingData.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2007
-Xen_DiskResourceAllocationSettingData root/ibmsd Virt_RASDProvider Virt_RASD instance
-Xen_NetResourceAllocationSettingData root/ibmsd Virt_RASDProvider Virt_RASD instance
-Xen_ProcResourceAllocationSettingData root/ibmsd Virt_RASDProvider Virt_RASD instance
-Xen_MemResourceAllocationSettingData root/ibmsd Virt_RASDProvider Virt_RASD instance
+Xen_DiskResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance
+Xen_NetResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance
+Xen_ProcResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance
+Xen_MemResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance
diff -r 08753448b529 -r 581a0f3fb078 schema/ResourcePoolConfigurationCapabilities.registration
--- a/schema/ResourcePoolConfigurationCapabilities.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/ResourcePoolConfigurationCapabilities.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,3 +1,3 @@
# Copyright IBM Corp. 2007
-Xen_ResourcePoolConfigurationCapabilities root/ibmsd Virt_ResourcePoolConfigurationCapabilitiesProvider Virt_ResourcePoolConfigurationCapabilities instance
-KVM_ResourcePoolConfigurationCapabilities root/ibmsd Virt_ResourcePoolConfigurationCapabilitiesProvider Virt_ResourcePoolConfigurationCapabilities instance
\ No newline at end of file
+Xen_ResourcePoolConfigurationCapabilities root/virt Virt_ResourcePoolConfigurationCapabilitiesProvider Virt_ResourcePoolConfigurationCapabilities instance
+KVM_ResourcePoolConfigurationCapabilities root/virt Virt_ResourcePoolConfigurationCapabilitiesProvider Virt_ResourcePoolConfigurationCapabilities instance
\ No newline at end of file
diff -r 08753448b529 -r 581a0f3fb078 schema/ResourcePoolConfigurationService.registration
--- a/schema/ResourcePoolConfigurationService.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/ResourcePoolConfigurationService.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,3 +1,3 @@
# Copyright IBM Corp. 2007
-Xen_ResourcePoolConfigurationService root/ibmsd Virt_ResourcePoolConfigurationServiceProvider Virt_ResourcePoolConfigurationService instance method
-KVM_ResourcePoolConfigurationService root/ibmsd Virt_ResourcePoolConfigurationServiceProvider Virt_ResourcePoolConfigurationService instance method
\ No newline at end of file
+Xen_ResourcePoolConfigurationService root/virt Virt_ResourcePoolConfigurationServiceProvider Virt_ResourcePoolConfigurationService instance method
+KVM_ResourcePoolConfigurationService root/virt Virt_ResourcePoolConfigurationServiceProvider Virt_ResourcePoolConfigurationService instance method
\ No newline at end of file
diff -r 08753448b529 -r 581a0f3fb078 schema/SettingsDefineCapabilities.registration
--- a/schema/SettingsDefineCapabilities.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/SettingsDefineCapabilities.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_SettingsDefineCapabilities root/ibmsd Xen_SettingsDefineCapabilitiesProvider Virt_SettingsDefineCapabilities association
-KVM_SettingsDefineCapabilities root/ibmsd KVM_SettingsDefineCapabilitiesProvider Virt_SettingsDefineCapabilities association
+Xen_SettingsDefineCapabilities root/virt Xen_SettingsDefineCapabilitiesProvider Virt_SettingsDefineCapabilities association
+KVM_SettingsDefineCapabilities root/virt KVM_SettingsDefineCapabilitiesProvider Virt_SettingsDefineCapabilities association
diff -r 08753448b529 -r 581a0f3fb078 schema/SettingsDefineState.registration
--- a/schema/SettingsDefineState.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/SettingsDefineState.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_SettingsDefineState root/ibmsd Xen_SettingsDefineStateProvider Virt_SettingsDefineState association
-KVM_SettingsDefineState root/ibmsd KVM_SettingsDefineStateProvider Virt_SettingsDefineState association
+Xen_SettingsDefineState root/virt Xen_SettingsDefineStateProvider Virt_SettingsDefineState association
+KVM_SettingsDefineState root/virt KVM_SettingsDefineStateProvider Virt_SettingsDefineState association
diff -r 08753448b529 -r 581a0f3fb078 schema/SystemDevice.registration
--- a/schema/SystemDevice.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/SystemDevice.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,3 +1,3 @@
# Copyright IBM Corp. 2007
-Xen_SystemDevice root/ibmsd Xen_SystemDeviceProvider Virt_SystemDevice association
-KVM_SystemDevice root/ibmsd KVM_SystemDeviceProvider Virt_SystemDevice association
+Xen_SystemDevice root/virt Xen_SystemDeviceProvider Virt_SystemDevice association
+KVM_SystemDevice root/virt KVM_SystemDeviceProvider Virt_SystemDevice association
diff -r 08753448b529 -r 581a0f3fb078 schema/VSSD.registration
--- a/schema/VSSD.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/VSSD.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_VirtualSystemSettingData root/ibmsd Virt_VSSDProvider Virt_VSSD instance
-KVM_VirtualSystemSettingData root/ibmsd Virt_VSSDProvider Virt_VSSD instance
+Xen_VirtualSystemSettingData root/virt Virt_VSSDProvider Virt_VSSD instance
+KVM_VirtualSystemSettingData root/virt Virt_VSSDProvider Virt_VSSD instance
diff -r 08753448b529 -r 581a0f3fb078 schema/VSSDComponent.registration
--- a/schema/VSSDComponent.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/VSSDComponent.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_VirtualSystemSettingDataComponent root/ibmsd Xen_VSSDComponentProvider Virt_VSSDComponent association
-KVM_VirtualSystemSettingDataComponent root/ibmsd KVM_VSSDComponentProvider Virt_VSSDComponent association
+Xen_VirtualSystemSettingDataComponent root/virt Xen_VSSDComponentProvider Virt_VSSDComponent association
+KVM_VirtualSystemSettingDataComponent root/virt KVM_VSSDComponentProvider Virt_VSSDComponent association
diff -r 08753448b529 -r 581a0f3fb078 schema/VirtualSystemManagementCapabilities.registration
--- a/schema/VirtualSystemManagementCapabilities.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/VirtualSystemManagementCapabilities.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_VirtualSystemManagementCapabilities root/ibmsd Virt_VirtualSystemManagementCapabilitiesProvider Virt_VirtualSystemManagementCapabilities instance
+Xen_VirtualSystemManagementCapabilities root/virt Virt_VirtualSystemManagementCapabilitiesProvider Virt_VirtualSystemManagementCapabilities instance
# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-KVM_VirtualSystemManagementCapabilities root/ibmsd Virt_VirtualSystemManagementCapabilitiesProvider Virt_VirtualSystemManagementCapabilities instance
+KVM_VirtualSystemManagementCapabilities root/virt Virt_VirtualSystemManagementCapabilitiesProvider Virt_VirtualSystemManagementCapabilities instance
diff -r 08753448b529 -r 581a0f3fb078 schema/VirtualSystemManagementService.registration
--- a/schema/VirtualSystemManagementService.registration Thu Nov 08 19:19:50 2007 -0800
+++ b/schema/VirtualSystemManagementService.registration Fri Nov 09 08:10:08 2007 -0800
@@ -1,3 +1,3 @@
# Copyright IBM Corp. 2007
-Xen_VirtualSystemManagementService root/ibmsd Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method instance
-KVM_VirtualSystemManagementService root/ibmsd Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method instance
+Xen_VirtualSystemManagementService root/virt Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method instance
+KVM_VirtualSystemManagementService root/virt Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method instance
diff -r 08753448b529 -r 581a0f3fb078 src/Virt_ComputerSystemIndication.c
--- a/src/Virt_ComputerSystemIndication.c Thu Nov 08 19:19:50 2007 -0800
+++ b/src/Virt_ComputerSystemIndication.c Fri Nov 09 08:10:08 2007 -0800
@@ -142,7 +142,7 @@ static bool async_ind(CMPIContext *conte
CMPIStatus s;
const char *type_name;
char *type_cn = NULL;
- const char *ns = "root/ibmsd";
+ const char *ns = CIM_VIRT_NS;
/* FIXME: Hmm, need to get the namespace a better way */
diff -r 08753448b529 -r 581a0f3fb078 src/Virt_ElementConformsToProfile.c
--- a/src/Virt_ElementConformsToProfile.c Thu Nov 08 19:19:50 2007 -0800
+++ b/src/Virt_ElementConformsToProfile.c Fri Nov 09 08:10:08 2007 -0800
@@ -34,6 +34,8 @@
#include "profiles.h"
#include "std_association.h"
+#include "config.h"
+
#include "Virt_RegisteredProfile.h"
/* Associate an XXX_RegisteredProfile to the proper XXX_ManagedElement.
@@ -64,7 +66,7 @@ static CMPIStatus elem_instances(const C
goto out;
}
- op = CMNewObjectPath(_BROKER, "/root/ibmsd", classname, &s);
+ op = CMNewObjectPath(_BROKER, CIM_VIRT_NS, classname, &s);
if ((s.rc != CMPI_RC_OK) || CMIsNullObject(op))
goto error;
3
3
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1194651524 28800
# Node ID 22c4e9b498fb52f5fce98a71702c4610a42b6f18
# Parent 5f84fd6c5cdefb2dfe41e4d8ec6ca750d3e69faa
Some minor std_association fixes.
Change result_list to tmp_list since the list is freed before filter_results() returns.
The CU_DEBUG() call before the match_class() call on info->assoc_class has a typo. The string text prints info->assoc_class, but the value passed in for info->assoc_class is info->result_class.
Return an error if match_class() fails. This needs to be done in both do_assoc() and do_ref()
Resent patch due to poor grammar in the match_class() for assoc_class error message.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 5f84fd6c5cde -r 22c4e9b498fb std_association.c
--- a/std_association.c Thu Nov 08 11:21:50 2007 -0800
+++ b/std_association.c Fri Nov 09 15:38:44 2007 -0800
@@ -80,16 +80,16 @@ static CMPIStatus filter_results(struct
const char *filter_class,
const CMPIBroker *broker)
{
- struct inst_list result_list;
+ struct inst_list tmp_list;
CMPIStatus s = {CMPI_RC_OK, NULL};
CMPIObjectPath *op;
int i;
- result_list = *list;
+ tmp_list = *list;
inst_list_init(list);
- for (i = 0; result_list.list[i] != NULL; i++) {
- op = CMGetObjectPath(result_list.list[i], &s);
+ for (i = 0; tmp_list.list[i] != NULL; i++) {
+ op = CMGetObjectPath(tmp_list.list[i], &s);
if ((s.rc != CMPI_RC_OK) || CMIsNullObject(op))
goto out;
@@ -100,11 +100,11 @@ static CMPIStatus filter_results(struct
if (!match_op(broker, op, filter_class))
continue;
- inst_list_add(list, result_list.list[i]);
+ inst_list_add(list, tmp_list.list[i]);
}
out:
- inst_list_free(&result_list);
+ inst_list_free(&tmp_list);
return s;
}
@@ -163,18 +163,25 @@ static CMPIStatus do_assoc(struct std_as
handler->target_class);
if (!rc) {
CU_DEBUG("Match_class failed.\n");
+ cu_statusf(ctx->brkr, &s,
+ CMPI_RC_ERR_FAILED,
+ "Result class is not valid for this association");
goto out;
}
CU_DEBUG("Match_class succeeded.\n");
CU_DEBUG("Calling match_class: \n\tinfo->assoc_class: '%s'\n",
- info->result_class);
+ info->assoc_class);
rc = match_class(ctx->brkr,
NAMESPACE(ref),
info->assoc_class,
handler->assoc_class);
if (!rc) {
CU_DEBUG("Match_class failed.\n");
+ cu_statusf(ctx->brkr, &s,
+ CMPI_RC_ERR_FAILED,
+ "Association class given is not valid for"
+ "this association");
goto out;
}
CU_DEBUG("Match_class succeeded.\n");
@@ -248,8 +255,13 @@ static CMPIStatus do_ref(struct std_asso
NAMESPACE(ref),
info->result_class,
handler->assoc_class);
- if (!rc)
- goto out;
+ if (!rc) {
+ cu_statusf(ctx->brkr, &s,
+ CMPI_RC_ERR_FAILED,
+ "Result class is not valid for this association");
+ goto out;
+ }
+
s = handler->handler(ref, info, &list);
if ((s.rc != CMPI_RC_OK) || (list.list == NULL))
2
1
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1194649591 28800
# Node ID 11f579d7363d783dab97b0d59b2fd5d2eedb7034
# Parent 5f84fd6c5cdefb2dfe41e4d8ec6ca750d3e69faa
Some minor std_association fixes.
Change result_list to tmp_list since the list is freed before filter_results() returns.
The CU_DEBUG() call before the match_class() call on info->assoc_class has a typo. The string text prints info->assoc_class, but the value passed in for info->assoc_class is info->result_class.
Return an error if match_class() fails. This needs to be done in both do_assoc() and do_ref()
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 5f84fd6c5cde -r 11f579d7363d std_association.c
--- a/std_association.c Thu Nov 08 11:21:50 2007 -0800
+++ b/std_association.c Fri Nov 09 15:06:31 2007 -0800
@@ -80,16 +80,16 @@ static CMPIStatus filter_results(struct
const char *filter_class,
const CMPIBroker *broker)
{
- struct inst_list result_list;
+ struct inst_list tmp_list;
CMPIStatus s = {CMPI_RC_OK, NULL};
CMPIObjectPath *op;
int i;
- result_list = *list;
+ tmp_list = *list;
inst_list_init(list);
- for (i = 0; result_list.list[i] != NULL; i++) {
- op = CMGetObjectPath(result_list.list[i], &s);
+ for (i = 0; tmp_list.list[i] != NULL; i++) {
+ op = CMGetObjectPath(tmp_list.list[i], &s);
if ((s.rc != CMPI_RC_OK) || CMIsNullObject(op))
goto out;
@@ -100,11 +100,11 @@ static CMPIStatus filter_results(struct
if (!match_op(broker, op, filter_class))
continue;
- inst_list_add(list, result_list.list[i]);
+ inst_list_add(list, tmp_list.list[i]);
}
out:
- inst_list_free(&result_list);
+ inst_list_free(&tmp_list);
return s;
}
@@ -163,18 +163,24 @@ static CMPIStatus do_assoc(struct std_as
handler->target_class);
if (!rc) {
CU_DEBUG("Match_class failed.\n");
+ cu_statusf(ctx->brkr, &s,
+ CMPI_RC_ERR_FAILED,
+ "Result class is not valid for this association");
goto out;
}
CU_DEBUG("Match_class succeeded.\n");
CU_DEBUG("Calling match_class: \n\tinfo->assoc_class: '%s'\n",
- info->result_class);
+ info->assoc_class);
rc = match_class(ctx->brkr,
NAMESPACE(ref),
info->assoc_class,
handler->assoc_class);
if (!rc) {
CU_DEBUG("Match_class failed.\n");
+ cu_statusf(ctx->brkr, &s,
+ CMPI_RC_ERR_FAILED,
+ "Association class given does not this association");
goto out;
}
CU_DEBUG("Match_class succeeded.\n");
@@ -248,8 +254,13 @@ static CMPIStatus do_ref(struct std_asso
NAMESPACE(ref),
info->result_class,
handler->assoc_class);
- if (!rc)
- goto out;
+ if (!rc) {
+ cu_statusf(ctx->brkr, &s,
+ CMPI_RC_ERR_FAILED,
+ "Result class is not valid for this association");
+ goto out;
+ }
+
s = handler->handler(ref, info, &list);
if ((s.rc != CMPI_RC_OK) || (list.list == NULL))
1
0
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1194638786 28800
# Node ID 9e90c48e77195c9b1f7f7f892ba6f43f3d7a027d
# Parent 5f84fd6c5cdefb2dfe41e4d8ec6ca750d3e69faa
Some minor std_association fixes.
Change result_list to tmp_list since the list is freed before filter_results() returns.
Initialize CMPIStatus s in do_assoc(). If match class fails, then s is never properly set. This is assuming that it's *not* an error if a user queries an association with a result class that isn't handled by the provider.
The CU_DEBUG() call before the match_class() call on info->assoc_class has a typo. The string text prints info->assoc_class, but the value passed in for info->assoc_class is info->result_class.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 5f84fd6c5cde -r 9e90c48e7719 std_association.c
--- a/std_association.c Thu Nov 08 11:21:50 2007 -0800
+++ b/std_association.c Fri Nov 09 12:06:26 2007 -0800
@@ -80,16 +80,16 @@ static CMPIStatus filter_results(struct
const char *filter_class,
const CMPIBroker *broker)
{
- struct inst_list result_list;
+ struct inst_list tmp_list;
CMPIStatus s = {CMPI_RC_OK, NULL};
CMPIObjectPath *op;
int i;
- result_list = *list;
+ tmp_list = *list;
inst_list_init(list);
- for (i = 0; result_list.list[i] != NULL; i++) {
- op = CMGetObjectPath(result_list.list[i], &s);
+ for (i = 0; tmp_list.list[i] != NULL; i++) {
+ op = CMGetObjectPath(tmp_list.list[i], &s);
if ((s.rc != CMPI_RC_OK) || CMIsNullObject(op))
goto out;
@@ -100,11 +100,11 @@ static CMPIStatus filter_results(struct
if (!match_op(broker, op, filter_class))
continue;
- inst_list_add(list, result_list.list[i]);
+ inst_list_add(list, tmp_list.list[i]);
}
out:
- inst_list_free(&result_list);
+ inst_list_free(&tmp_list);
return s;
}
@@ -133,7 +133,7 @@ static CMPIStatus do_assoc(struct std_as
bool names_only)
{
struct inst_list list;
- CMPIStatus s;
+ CMPIStatus s = {CMPI_RC_OK, NULL};
struct std_assoc *handler;
bool rc;
@@ -168,7 +168,7 @@ static CMPIStatus do_assoc(struct std_as
CU_DEBUG("Match_class succeeded.\n");
CU_DEBUG("Calling match_class: \n\tinfo->assoc_class: '%s'\n",
- info->result_class);
+ info->assoc_class);
rc = match_class(ctx->brkr,
NAMESPACE(ref),
info->assoc_class,
2
3

Re: [Libvirt-cim] [PATCH] Make HostedResourcePool a little more discerning
by Kaitlin Rupert 09 Nov '07
by Kaitlin Rupert 09 Nov '07
09 Nov '07
Kaitlin Rupert wrote:
> Dan Smith wrote:
>> KR> Oops, yes. I meant the pool_to_sys() side. =)
>>
>> Well, that is less of a problem I'd say. We don't really have the
>> same issue of checking for a superclass where a subset of the children
>> would be invalid parameters to the association, right? That's the
>> root of the problem with the other direction.
>>
>> We could certainly look up an instance of the pool they're asking
>> about and check their reference. I'm not sure it really matters as
>> much as something like a GetInstance though, because the answer is
>> always the same, no matter what pool they ask about. If someone
>> deleted a pool between when they got a reference and when they asked
>> about the host system for that pool, then we'd fail the association
>> even though we already knew the answer and the answer is valid.
>>
>> Depends on your interpretation of CIM principles I suppose :)
>>
>> KR> Is there a defined CIM way for handling properties? I mostly
>> KR> asked because I don't know much about them.
>>
>> I'm not sure what the policy is for property filtering and if keys
>> can't be filtered. Something to revisit when we actually implement
>> support for such, I'd say :)
>
Well said - good points. =)
--
Kaitlin Rupert
IBM Linux Technology Center
karupert(a)us.ibm.com
1
0

09 Nov '07
Kaitlin Rupert wrote:
> Dan Smith wrote:
>> KR> I'll need to update HostedService to conform.
>>
>> The first hunk of that patch was to HostedService.c Is there anything
>> else that needs to be done?
Yes, you're right. I'm sorry - for some reason when I read the first
part of your patch, I read it all as changes
src/Virt_VirtualSystemManagementService.c.
--
Kaitlin Rupert
IBM Linux Technology Center
karupert(a)us.ibm.com
1
0
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1194571829 28800
# Node ID 7ca1a71de7d47452ea49c6be5f11365b9bb6a947
# Parent 691b1ebbe2adc285c31006f71a3abc702c268add
Remove unused parameter from get_vsms()
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 691b1ebbe2ad -r 7ca1a71de7d4 src/Virt_HostedService.c
--- a/src/Virt_HostedService.c Thu Nov 08 12:51:51 2007 -0800
+++ b/src/Virt_HostedService.c Thu Nov 08 17:30:29 2007 -0800
@@ -63,7 +63,7 @@ static CMPIStatus host_to_service(const
if (!CMIsNullObject(inst))
inst_list_add(list, inst);
- s = get_vsms(ref, &inst, _BROKER, 0);
+ s = get_vsms(ref, &inst, _BROKER);
if (s.rc != CMPI_RC_OK)
return s;
if (!CMIsNullObject(inst))
diff -r 691b1ebbe2ad -r 7ca1a71de7d4 src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c Thu Nov 08 12:51:51 2007 -0800
+++ b/src/Virt_VirtualSystemManagementService.c Thu Nov 08 17:30:29 2007 -0800
@@ -995,8 +995,7 @@ STDIM_MethodMIStub(, Virt_VirtualSystemM
CMPIStatus get_vsms(const CMPIObjectPath *reference,
CMPIInstance **_inst,
- const CMPIBroker *broker,
- int name_only)
+ const CMPIBroker *broker)
{
CMPIStatus s;
CMPIInstance *inst;
@@ -1057,7 +1056,7 @@ static CMPIStatus return_vsms(const CMPI
CMPIInstance *inst;
CMPIStatus s;
- s = get_vsms(reference, &inst, _BROKER, name_only);
+ s = get_vsms(reference, &inst, _BROKER);
if (s.rc != CMPI_RC_OK)
goto out;
@@ -1099,7 +1098,7 @@ static CMPIStatus GetInstance(CMPIInstan
CMPIStatus s;
const char *prop;
- s = get_vsms(ref, &inst, _BROKER, 0);
+ s = get_vsms(ref, &inst, _BROKER);
if (s.rc != CMPI_RC_OK)
return s;
diff -r 691b1ebbe2ad -r 7ca1a71de7d4 src/Virt_VirtualSystemManagementService.h
--- a/src/Virt_VirtualSystemManagementService.h Thu Nov 08 12:51:51 2007 -0800
+++ b/src/Virt_VirtualSystemManagementService.h Thu Nov 08 17:30:29 2007 -0800
@@ -21,5 +21,4 @@
CMPIStatus get_vsms(const CMPIObjectPath *reference,
CMPIInstance **_inst,
- const CMPIBroker *broker,
- int name_only);
+ const CMPIBroker *broker);
2
2

[PATCH 0 of 5] Adding support for the HostedService association provider.
by Kaitlin Rupert 09 Nov '07
by Kaitlin Rupert 09 Nov '07
09 Nov '07
This patch set adds support for the HostedService association. This include changes needed in the VSMS and RPCS providers so that their internal get instance functions could be called.
2
11