[Libvirt-cim] [PATCH 19/47] Add type CIM_RES_TYPE_DELETED and modify type as it after resource_del

Xu Wang gesaint at linux.vnet.ibm.com
Tue Oct 8 06:13:53 UTC 2013


Signed-off-by: Xu Wang <gesaint at linux.vnet.ibm.com>
---
 src/Virt_VirtualSystemManagementService.c |    2 +-
 src/svpc_types.h                          |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Virt_VirtualSystemManagementService.c b/src/Virt_VirtualSystemManagementService.c
index 8ced2d6..bfb1654 100644
--- a/src/Virt_VirtualSystemManagementService.c
+++ b/src/Virt_VirtualSystemManagementService.c
@@ -2678,7 +2678,7 @@ static CMPIStatus resource_del(struct domain *dominfo,
                                                       CLASSNAME(op));
                         }
 
-                        dev->type = CIM_RES_TYPE_UNKNOWN;
+                        dev->type = CIM_RES_TYPE_DELETED;
 
                         break;
                 }
diff --git a/src/svpc_types.h b/src/svpc_types.h
index 99dd56f..fe4cc93 100644
--- a/src/svpc_types.h
+++ b/src/svpc_types.h
@@ -32,6 +32,7 @@
 #define CIM_RES_TYPE_EMU        1
 #define CIM_RES_TYPE_GRAPHICS   24
 #define CIM_RES_TYPE_INPUT      13 
+#define CIM_RES_TYPE_DELETED    999
 #define CIM_RES_TYPE_UNKNOWN    1000
 #define CIM_RES_TYPE_IMAGE      32768 
 
-- 
1.7.1




More information about the Libvirt-cim mailing list