Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
1449392d
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1449392d
编写于
12月 05, 2009
作者:
M
Matthias Bolte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix compilation for configure --disable-nls
上级
74c1c534
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
23 addition
and
23 deletion
+23
-23
src/opennebula/one_conf.c
src/opennebula/one_conf.c
+1
-1
src/opennebula/one_driver.c
src/opennebula/one_driver.c
+8
-8
src/phyp/phyp_driver.c
src/phyp/phyp_driver.c
+11
-11
src/xen/xen_driver.c
src/xen/xen_driver.c
+3
-3
未找到文件。
src/opennebula/one_conf.c
浏览文件 @
1449392d
...
...
@@ -147,7 +147,7 @@ int oneSubmitVM(virConnectPtr conn,
if
((
oneid
=
c_oneAllocateTemplate
(
templ
))
<
0
)
{
oneError
(
conn
,
NULL
,
VIR_ERR_OPERATION_FAILED
,
_
(
"Error submitting virtual machine to OpenNebula"
));
"%s"
,
_
(
"Error submitting virtual machine to OpenNebula"
));
VIR_FREE
(
templ
);
return
-
1
;
}
...
...
src/opennebula/one_driver.c
浏览文件 @
1449392d
...
...
@@ -280,13 +280,13 @@ static int oneDomainUndefine(virDomainPtr dom)
vm
=
virDomainFindByUUID
(
&
driver
->
domains
,
dom
->
uuid
);
if
(
!
vm
)
{
oneError
(
dom
->
conn
,
dom
,
VIR_ERR_INVALID_DOMAIN
,
_
(
"no domain with matching uuid"
));
"%s"
,
_
(
"no domain with matching uuid"
));
goto
return_point
;
}
if
(
!
vm
->
persistent
)
{
oneError
(
dom
->
conn
,
dom
,
VIR_ERR_INTERNAL_ERROR
,
_
(
"cannot undefine transient domain"
));
"%s"
,
_
(
"cannot undefine transient domain"
));
goto
return_point
;
}
virDomainRemoveInactive
(
&
driver
->
domains
,
vm
);
...
...
@@ -499,7 +499,7 @@ static int oneDomainShutdown(virDomainPtr dom)
if
(
c_oneShutdown
(
vm
->
pid
))
{
oneError
(
dom
->
conn
,
dom
,
VIR_ERR_OPERATION_INVALID
,
_
(
"Wrong state to perform action"
));
"%s"
,
_
(
"Wrong state to perform action"
));
goto
return_point
;
}
vm
->
state
=
VIR_DOMAIN_SHUTDOWN
;
...
...
@@ -535,7 +535,7 @@ static int oneDomainDestroy(virDomainPtr dom)
/* VM not running, delete the instance at ONE DB */
if
(
c_oneFinalize
(
vm
->
pid
)){
oneError
(
dom
->
conn
,
dom
,
VIR_ERR_OPERATION_INVALID
,
_
(
"Wrong state to perform action"
));
"%s"
,
_
(
"Wrong state to perform action"
));
goto
return_point
;
}
}
...
...
@@ -570,11 +570,11 @@ static int oneDomainSuspend(virDomainPtr dom)
goto
return_point
;
}
oneError
(
dom
->
conn
,
dom
,
VIR_ERR_OPERATION_INVALID
,
_
(
"Wrong state to perform action"
));
"%s"
,
_
(
"Wrong state to perform action"
));
goto
return_point
;
}
oneError
(
dom
->
conn
,
dom
,
VIR_ERR_OPERATION_INVALID
,
_
(
"domain is not running"
));
"%s"
,
_
(
"domain is not running"
));
}
else
{
oneError
(
dom
->
conn
,
dom
,
VIR_ERR_INVALID_DOMAIN
,
_
(
"no domain with matching id %d"
),
dom
->
id
);
...
...
@@ -603,11 +603,11 @@ static int oneDomainResume(virDomainPtr dom)
goto
return_point
;
}
oneError
(
dom
->
conn
,
dom
,
VIR_ERR_OPERATION_INVALID
,
_
(
"Wrong state to perform action"
));
"%s"
,
_
(
"Wrong state to perform action"
));
goto
return_point
;
}
oneError
(
dom
->
conn
,
dom
,
VIR_ERR_OPERATION_INVALID
,
_
(
"domain is not paused
"
));
"%s"
,
_
(
"domain is not paused
"
));
}
else
{
oneError
(
dom
->
conn
,
dom
,
VIR_ERR_INVALID_DOMAIN
,
_
(
"no domain with matching id %d"
),
dom
->
id
);
...
...
src/phyp/phyp_driver.c
浏览文件 @
1449392d
...
...
@@ -91,19 +91,19 @@ phypOpen(virConnectPtr conn,
if
(
conn
->
uri
->
server
==
NULL
)
{
PHYP_ERROR
(
conn
,
VIR_ERR_INTERNAL_ERROR
,
_
(
"Missing server name in phyp:// URI"
));
"%s"
,
_
(
"Missing server name in phyp:// URI"
));
return
VIR_DRV_OPEN_ERROR
;
}
if
(
conn
->
uri
->
path
==
NULL
)
{
PHYP_ERROR
(
conn
,
VIR_ERR_INTERNAL_ERROR
,
_
(
"Missing managed system name in phyp:// URI"
));
"%s"
,
_
(
"Missing managed system name in phyp:// URI"
));
return
VIR_DRV_OPEN_ERROR
;
}
if
(
conn
->
uri
->
user
==
NULL
)
{
PHYP_ERROR
(
conn
,
VIR_ERR_INTERNAL_ERROR
,
_
(
"Missing username in phyp:// URI"
));
"%s"
,
_
(
"Missing username in phyp:// URI"
));
return
VIR_DRV_OPEN_ERROR
;
}
...
...
@@ -150,13 +150,13 @@ phypOpen(virConnectPtr conn,
if
(
escape_specialcharacters
(
conn
->
uri
->
path
,
string
,
len
)
==
-
1
)
{
PHYP_ERROR
(
conn
,
VIR_ERR_INTERNAL_ERROR
,
_
(
"Error parsing 'path'. Invalid characters."
));
"%s"
,
_
(
"Error parsing 'path'. Invalid characters."
));
goto
failure
;
}
if
((
session
=
openSSHSession
(
conn
,
auth
,
&
internal_socket
))
==
NULL
)
{
PHYP_ERROR
(
conn
,
VIR_ERR_INTERNAL_ERROR
,
_
(
"Error while opening SSH session."
));
"%s"
,
_
(
"Error while opening SSH session."
));
goto
failure
;
}
//conn->uri->path = string;
...
...
@@ -314,7 +314,7 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth,
LIBSSH2_ERROR_EAGAIN
)
;
if
(
rc
)
{
PHYP_ERROR
(
conn
,
VIR_ERR_INTERNAL_ERROR
,
_
(
"Failure establishing SSH session."
));
"%s"
,
_
(
"Failure establishing SSH session."
));
goto
disconnect
;
}
...
...
@@ -344,7 +344,7 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth,
if
(
!
auth
||
!
auth
->
cb
)
{
PHYP_ERROR
(
conn
,
VIR_ERR_AUTH_FAILED
,
_
(
"No authentication callback provided."
));
"%s"
,
_
(
"No authentication callback provided."
));
goto
disconnect
;
}
...
...
@@ -355,7 +355,7 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth,
if
(
!
hasPassphrase
)
{
PHYP_ERROR
(
conn
,
VIR_ERR_AUTH_FAILED
,
_
(
"Required credentials are not supported."
));
"%s"
,
_
(
"Required credentials are not supported."
));
goto
disconnect
;
}
...
...
@@ -364,7 +364,7 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth,
if
(
res
<
0
)
{
PHYP_ERROR
(
conn
,
VIR_ERR_AUTH_FAILED
,
_
(
"Unable to fetch credentials."
));
"%s"
,
_
(
"Unable to fetch credentials."
));
goto
disconnect
;
}
...
...
@@ -372,7 +372,7 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth,
password
=
creds
[
0
].
result
;
}
else
{
PHYP_ERROR
(
conn
,
VIR_ERR_AUTH_FAILED
,
_
(
"Unable to get password certificates"
));
"%s"
,
_
(
"Unable to get password certificates"
));
goto
disconnect
;
}
...
...
@@ -383,7 +383,7 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth,
if
(
rc
)
{
PHYP_ERROR
(
conn
,
VIR_ERR_AUTH_FAILED
,
_
(
"Authentication failed"
));
"%s"
,
_
(
"Authentication failed"
));
goto
disconnect
;
}
else
goto
exit
;
...
...
src/xen/xen_driver.c
浏览文件 @
1449392d
...
...
@@ -1316,14 +1316,14 @@ xenUnifiedDomainMigrateFinish (virConnectPtr dconn,
domain_xml
=
xenDaemonDomainDumpXML
(
dom
,
0
,
NULL
);
if
(
!
domain_xml
)
{
xenUnifiedError
(
dconn
,
VIR_ERR_MIGRATE_PERSIST_FAILED
,
_
(
"failed to get XML representation of migrated domain"
));
"%s"
,
_
(
"failed to get XML representation of migrated domain"
));
goto
failure
;
}
dom_new
=
xenDaemonDomainDefineXML
(
dconn
,
domain_xml
);
if
(
!
dom_new
)
{
xenUnifiedError
(
dconn
,
VIR_ERR_MIGRATE_PERSIST_FAILED
,
_
(
"failed to define domain on destination host"
));
xenUnifiedError
(
dconn
,
VIR_ERR_MIGRATE_PERSIST_FAILED
,
"%s"
,
_
(
"failed to define domain on destination host"
));
goto
failure
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录