Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
05436ab7
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,发现更多精彩内容 >>
提交
05436ab7
编写于
1月 30, 2009
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix valgrind crash in LXC & avoid probing unneccessarily
上级
d8637214
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
20 addition
and
3 deletion
+20
-3
ChangeLog
ChangeLog
+5
-0
src/lxc_driver.c
src/lxc_driver.c
+15
-3
未找到文件。
ChangeLog
浏览文件 @
05436ab7
Fri Jan 30 16:51:22 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
* src/lxc_driver.c: Avoid probing for LXC until we know we're
going to try opening the connection. Disable when using valgrind
Fri Jan 30 16:48:22 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
* src/storage_conf.c: Fix leak of volume objects when free'ing
...
...
src/lxc_driver.c
浏览文件 @
05436ab7
...
...
@@ -80,14 +80,14 @@ static virDrvOpenStatus lxcOpen(virConnectPtr conn,
virConnectAuthPtr
auth
ATTRIBUTE_UNUSED
,
int
flags
ATTRIBUTE_UNUSED
)
{
if
(
!
lxcProbe
())
goto
declineConnection
;
if
(
lxc_driver
==
NULL
)
goto
declineConnection
;
/* Verify uri was specified */
if
(
conn
->
uri
==
NULL
)
{
if
(
!
lxcProbe
())
goto
declineConnection
;
conn
->
uri
=
xmlParseURI
(
"lxc:///"
);
if
(
!
conn
->
uri
)
{
virReportOOMError
(
conn
);
...
...
@@ -96,8 +96,11 @@ static virDrvOpenStatus lxcOpen(virConnectPtr conn,
}
else
if
(
conn
->
uri
->
scheme
==
NULL
||
STRNEQ
(
conn
->
uri
->
scheme
,
"lxc"
))
{
goto
declineConnection
;
}
else
if
(
!
lxcProbe
())
{
goto
declineConnection
;
}
conn
->
privateData
=
lxc_driver
;
return
VIR_DRV_OPEN_SUCCESS
;
...
...
@@ -1119,6 +1122,15 @@ static int lxcStartup(void)
{
uid_t
uid
=
getuid
();
unsigned
int
i
;
char
*
ld
;
/* Valgrind gets very annoyed when we clone containers, so
* disable LXC when under valgrind
* XXX remove this when valgrind is fixed
*/
ld
=
getenv
(
"LD_PRELOAD"
);
if
(
ld
&&
strstr
(
ld
,
"vgpreload"
))
return
-
1
;
/* Check that the user is root */
if
(
0
!=
uid
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录