Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
cf54204e
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
cf54204e
编写于
11月 22, 2009
作者:
M
Matthias Bolte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
esx: Fix occurence typo
上级
49e261d1
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
27 addition
and
27 deletion
+27
-27
src/esx/esx_driver.c
src/esx/esx_driver.c
+10
-10
src/esx/esx_vi.c
src/esx/esx_vi.c
+7
-7
src/esx/esx_vi.h
src/esx/esx_vi.h
+8
-8
src/esx/esx_vi_methods.c
src/esx/esx_vi_methods.c
+1
-1
src/esx/esx_vmx.c
src/esx/esx_vmx.c
+1
-1
未找到文件。
src/esx/esx_driver.c
浏览文件 @
cf54204e
...
...
@@ -1158,7 +1158,7 @@ esxDomainLookupByUUID(virConnectPtr conn, const unsigned char *uuid)
"runtime.powerState
\0
"
)
<
0
||
esxVI_LookupVirtualMachineByUuid
(
conn
,
priv
->
host
,
uuid
,
propertyNameList
,
&
virtualMachine
,
esxVI_Occurence_RequiredItem
)
<
0
||
esxVI_Occur
r
ence_RequiredItem
)
<
0
||
esxVI_GetVirtualMachineIdentity
(
conn
,
virtualMachine
,
&
id
,
&
name
,
NULL
)
<
0
||
esxVI_GetVirtualMachinePowerState
(
conn
,
virtualMachine
,
...
...
@@ -1415,7 +1415,7 @@ esxDomainShutdown(virDomainPtr domain)
esxVI_LookupVirtualMachineByUuid
(
domain
->
conn
,
priv
->
host
,
domain
->
uuid
,
propertyNameList
,
&
virtualMachine
,
esxVI_Occurence_RequiredItem
)
<
0
||
esxVI_Occur
r
ence_RequiredItem
)
<
0
||
esxVI_GetVirtualMachinePowerState
(
domain
->
conn
,
virtualMachine
,
&
powerState
)
<
0
)
{
goto
failure
;
...
...
@@ -1464,7 +1464,7 @@ esxDomainReboot(virDomainPtr domain, unsigned int flags ATTRIBUTE_UNUSED)
esxVI_LookupVirtualMachineByUuid
(
domain
->
conn
,
priv
->
host
,
domain
->
uuid
,
propertyNameList
,
&
virtualMachine
,
esxVI_Occurence_RequiredItem
)
<
0
||
esxVI_Occur
r
ence_RequiredItem
)
<
0
||
esxVI_GetVirtualMachinePowerState
(
domain
->
conn
,
virtualMachine
,
&
powerState
)
<
0
)
{
goto
failure
;
...
...
@@ -1587,7 +1587,7 @@ esxDomainGetMaxMemory(virDomainPtr domain)
esxVI_LookupVirtualMachineByUuid
(
domain
->
conn
,
priv
->
host
,
domain
->
uuid
,
propertyNameList
,
&
virtualMachine
,
esxVI_Occurence_RequiredItem
)
<
0
)
{
esxVI_Occur
r
ence_RequiredItem
)
<
0
)
{
goto
failure
;
}
...
...
@@ -1771,7 +1771,7 @@ esxDomainGetInfo(virDomainPtr domain, virDomainInfoPtr info)
esxVI_LookupVirtualMachineByUuid
(
domain
->
conn
,
priv
->
host
,
domain
->
uuid
,
propertyNameList
,
&
virtualMachine
,
esxVI_Occurence_RequiredItem
)
<
0
)
{
esxVI_Occur
r
ence_RequiredItem
)
<
0
)
{
goto
failure
;
}
...
...
@@ -2159,7 +2159,7 @@ esxDomainDumpXML(virDomainPtr domain, int flags)
esxVI_LookupVirtualMachineByUuid
(
domain
->
conn
,
priv
->
host
,
domain
->
uuid
,
propertyNameList
,
&
virtualMachine
,
esxVI_Occurence_RequiredItem
)
<
0
)
{
esxVI_Occur
r
ence_RequiredItem
)
<
0
)
{
goto
failure
;
}
...
...
@@ -2497,7 +2497,7 @@ esxDomainDefineXML(virConnectPtr conn, const char *xml ATTRIBUTE_UNUSED)
/* Check if an existing domain should be edited */
if
(
esxVI_LookupVirtualMachineByUuid
(
conn
,
priv
->
host
,
def
->
uuid
,
NULL
,
&
virtualMachine
,
esxVI_Occurence_OptionalItem
)
<
0
)
{
esxVI_Occur
r
ence_OptionalItem
)
<
0
)
{
goto
failure
;
}
...
...
@@ -2686,7 +2686,7 @@ esxDomainUndefine(virDomainPtr domain)
esxVI_LookupVirtualMachineByUuid
(
domain
->
conn
,
priv
->
host
,
domain
->
uuid
,
propertyNameList
,
&
virtualMachine
,
esxVI_Occurence_RequiredItem
)
<
0
||
esxVI_Occur
r
ence_RequiredItem
)
<
0
||
esxVI_GetVirtualMachinePowerState
(
domain
->
conn
,
virtualMachine
,
&
powerState
)
<
0
)
{
goto
failure
;
...
...
@@ -2794,7 +2794,7 @@ esxDomainGetSchedulerParameters(virDomainPtr domain,
esxVI_LookupVirtualMachineByUuid
(
domain
->
conn
,
priv
->
host
,
domain
->
uuid
,
propertyNameList
,
&
virtualMachine
,
esxVI_Occurence_RequiredItem
)
<
0
)
{
esxVI_Occur
r
ence_RequiredItem
)
<
0
)
{
goto
failure
;
}
...
...
@@ -3332,7 +3332,7 @@ esxDomainIsActive(virDomainPtr domain)
esxVI_LookupVirtualMachineByUuid
(
domain
->
conn
,
priv
->
host
,
domain
->
uuid
,
propertyNameList
,
&
virtualMachine
,
esxVI_Occurence_RequiredItem
)
<
0
||
esxVI_Occur
r
ence_RequiredItem
)
<
0
||
esxVI_GetVirtualMachinePowerState
(
domain
->
conn
,
virtualMachine
,
&
powerState
)
<
0
)
{
goto
failure
;
...
...
src/esx/esx_vi.c
浏览文件 @
cf54204e
...
...
@@ -1803,7 +1803,7 @@ esxVI_LookupVirtualMachineByUuid(virConnectPtr conn, esxVI_Context *ctx,
const
unsigned
char
*
uuid
,
esxVI_String
*
propertyNameList
,
esxVI_ObjectContent
**
virtualMachine
,
esxVI_Occur
ence
occu
rence
)
esxVI_Occur
rence
occur
rence
)
{
int
result
=
0
;
esxVI_ManagedObjectReference
*
managedObjectReference
=
NULL
;
...
...
@@ -1820,7 +1820,7 @@ esxVI_LookupVirtualMachineByUuid(virConnectPtr conn, esxVI_Context *ctx,
}
if
(
managedObjectReference
==
NULL
)
{
if
(
occur
ence
==
esxVI_Occu
rence_OptionalItem
)
{
if
(
occur
rence
==
esxVI_Occur
rence_OptionalItem
)
{
return
0
;
}
else
{
virUUIDFormat
(
uuid
,
uuid_string
);
...
...
@@ -1870,7 +1870,7 @@ esxVI_LookupVirtualMachineByUuidAndPrepareForTask
esxVI_LookupVirtualMachineByUuid
(
conn
,
ctx
,
uuid
,
completePropertyNameList
,
virtualMachine
,
esxVI_Occurence_RequiredItem
)
<
0
||
esxVI_Occur
r
ence_RequiredItem
)
<
0
||
esxVI_GetVirtualMachineQuestionInfo
(
conn
,
*
virtualMachine
,
&
questionInfo
)
<
0
||
esxVI_LookupPendingTaskInfoListByVirtualMachine
...
...
@@ -1909,7 +1909,7 @@ int
esxVI_LookupDatastoreByName
(
virConnectPtr
conn
,
esxVI_Context
*
ctx
,
const
char
*
name
,
esxVI_String
*
propertyNameList
,
esxVI_ObjectContent
**
datastore
,
esxVI_Occur
ence
occu
rence
)
esxVI_Occur
rence
occur
rence
)
{
int
result
=
0
;
esxVI_String
*
completePropertyNameList
=
NULL
;
...
...
@@ -1943,7 +1943,7 @@ esxVI_LookupDatastoreByName(virConnectPtr conn, esxVI_Context *ctx,
}
if
(
datastoreList
==
NULL
)
{
if
(
occur
ence
==
esxVI_Occu
rence_OptionalItem
)
{
if
(
occur
rence
==
esxVI_Occur
rence_OptionalItem
)
{
goto
cleanup
;
}
else
{
ESX_VI_ERROR
(
conn
,
VIR_ERR_INTERNAL_ERROR
,
...
...
@@ -2038,7 +2038,7 @@ esxVI_LookupDatastoreByName(virConnectPtr conn, esxVI_Context *ctx,
}
}
if
(
occur
ence
!=
esxVI_Occu
rence_OptionalItem
)
{
if
(
occur
rence
!=
esxVI_Occur
rence_OptionalItem
)
{
if
(
numInaccessibleDatastores
>
0
)
{
ESX_VI_ERROR
(
conn
,
VIR_ERR_INTERNAL_ERROR
,
"Could not find datastore '%s', maybe it's "
...
...
@@ -2196,7 +2196,7 @@ esxVI_LookupAndHandleVirtualMachineQuestion(virConnectPtr conn,
"runtime.question"
)
<
0
||
esxVI_LookupVirtualMachineByUuid
(
conn
,
ctx
,
uuid
,
propertyNameList
,
&
virtualMachine
,
esxVI_Occurence_RequiredItem
)
<
0
||
esxVI_Occur
r
ence_RequiredItem
)
<
0
||
esxVI_GetVirtualMachineQuestionInfo
(
conn
,
virtualMachine
,
&
questionInfo
)
<
0
)
{
goto
failure
;
...
...
src/esx/esx_vi.h
浏览文件 @
cf54204e
...
...
@@ -33,7 +33,7 @@
typedef
enum
_esxVI_APIVersion
esxVI_APIVersion
;
typedef
enum
_esxVI_ProductVersion
esxVI_ProductVersion
;
typedef
enum
_esxVI_Occur
ence
esxVI_Occu
rence
;
typedef
enum
_esxVI_Occur
rence
esxVI_Occur
rence
;
typedef
struct
_esxVI_Context
esxVI_Context
;
typedef
struct
_esxVI_Response
esxVI_Response
;
typedef
struct
_esxVI_Enumeration
esxVI_Enumeration
;
...
...
@@ -58,11 +58,11 @@ enum _esxVI_ProductVersion {
esxVI_ProductVersion_VPX40
};
enum
_esxVI_Occurence
{
esxVI_Occurence_Undefined
=
0
,
esxVI_Occurence_RequiredItem
,
esxVI_Occurence_OptionalItem
,
esxVI_Occurence_List
enum
_esxVI_Occur
r
ence
{
esxVI_Occur
r
ence_Undefined
=
0
,
esxVI_Occur
r
ence_RequiredItem
,
esxVI_Occur
r
ence_OptionalItem
,
esxVI_Occur
r
ence_List
};
...
...
@@ -254,7 +254,7 @@ int esxVI_LookupVirtualMachineByUuid(virConnectPtr conn, esxVI_Context *ctx,
const
unsigned
char
*
uuid
,
esxVI_String
*
propertyNameList
,
esxVI_ObjectContent
**
virtualMachine
,
esxVI_Occur
ence
occu
rence
);
esxVI_Occur
rence
occur
rence
);
int
esxVI_LookupVirtualMachineByUuidAndPrepareForTask
(
virConnectPtr
conn
,
esxVI_Context
*
ctx
,
const
unsigned
char
*
uuid
,
...
...
@@ -265,7 +265,7 @@ int esxVI_LookupDatastoreByName(virConnectPtr conn, esxVI_Context *ctx,
const
char
*
name
,
esxVI_String
*
propertyNameList
,
esxVI_ObjectContent
**
datastore
,
esxVI_Occur
ence
occu
rence
);
esxVI_Occur
rence
occur
rence
);
int
esxVI_LookupTaskInfoByTask
(
virConnectPtr
conn
,
esxVI_Context
*
ctx
,
esxVI_ManagedObjectReference
*
task
,
...
...
src/esx/esx_vi_methods.c
浏览文件 @
cf54204e
...
...
@@ -1149,7 +1149,7 @@ esxVI_FindByUuid(virConnectPtr conn, esxVI_Context *ctx,
request
=
virBufferContentAndReset
(
&
buffer
);
/* FIXME: Use esxVI_Occurence instead of expectList */
/* FIXME: Use esxVI_Occur
r
ence instead of expectList */
if
(
esxVI_Context_Execute
(
conn
,
ctx
,
request
,
ESX_VI__SOAP__RESPONSE_XPATH
(
"FindByUuid"
),
&
response
,
esxVI_Boolean_True
)
<
0
)
{
...
...
src/esx/esx_vmx.c
浏览文件 @
cf54204e
...
...
@@ -608,7 +608,7 @@ esxVMX_AbsolutePathToDatastoreRelatedPath(virConnectPtr conn,
if
(
ctx
!=
NULL
)
{
if
(
esxVI_LookupDatastoreByName
(
conn
,
ctx
,
preliminaryDatastoreName
,
NULL
,
&
datastore
,
esxVI_Occurence_OptionalItem
)
<
0
)
{
esxVI_Occur
r
ence_OptionalItem
)
<
0
)
{
goto
failure
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录