Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
fdc36dcb
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看板
提交
fdc36dcb
编写于
7月 11, 2007
作者:
D
Daniel Veillard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* src/xml.c: patch from Masayuki Sunou fixing leaks in
virDomainParseXMLDiskDesc Daniel
上级
dbe0a4f5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
63 addition
and
17 deletion
+63
-17
ChangeLog
ChangeLog
+5
-0
NEWS
NEWS
+42
-0
src/xml.c
src/xml.c
+16
-17
未找到文件。
ChangeLog
浏览文件 @
fdc36dcb
Wed Jul 11 10:43:25 CEST 2007 Daniel Veillard <veillard@redhat.com>
* src/xml.c: patch from Masayuki Sunou fixing leaks in
virDomainParseXMLDiskDesc
Mon Jul 9 14:24:12 CEST 2007 Daniel Veillard <veillard@redhat.com>
* configure.in libvirt.spec.in include/libvirt/libvirt.h
...
...
NEWS
浏览文件 @
fdc36dcb
...
...
@@ -5,6 +5,48 @@
http://libvirt.org/news.html
Releases
0.3.0: Jul 9 2007:
- Secure Remote support (Richard Jones).
See the remote page
of the documentation
- Documentation: remote support (Richard Jones), description of
the URI connection strings (Richard Jones), update of virsh man
page, matrix of libvirt API/hypervisor support with version
informations (Richard Jones)
- Bug fixes: examples Makefile.am generation (Richard Jones),
SetMem fix (Mark Johnson), URI handling and ordering of
drivers (Daniel Berrange), fix virsh help without hypervisor (Richard
Jones), id marshalling fix (Daniel Berrange), fix virConnectGetMaxVcpus
on remote (Richard Jones), avoid a realloc leak (Jim Meyering), scheduler
parameters handling for Xen (Richard Jones), various early remote
bug fixes (Richard Jones), remove virsh leaks of domains references
(Masayuki Sunou), configCache refill bug (Richard Jones), fix
XML serialization bugs
- Improvements: QEmu switch to XDR-based protocol (Dan Berrange),
device attach/detach commands (Masayuki Sunou), OCaml bindings
(Richard Jones), new entry points virDomainGetConnect and
virNetworkGetConnect useful for bindings (Richard Jones),
reunitifaction of remote and qemu daemon under a single libvirtd
with a config file (Daniel Berrange)
- Cleanups: parsing of connection URIs (Richard Jones), messages
from virsh (Saori Fukuta), Coverage files (Daniel Berrange),
Solaris fixes (Mark Johnson), avoid [r]index calls (Richard Jones),
release information in Xen backend, virsh cpupin command cleanups
(Masayuki Sunou), xen:/// suppport as standard Xen URI (Richard Jones and
Daniel Berrange), improve driver selection/decline mechanism (Richard
Jones), error reporting on XML dump (Richard Jones), Remove unused
virDomainKernel structure (Richard Jones), daemon event loop event
handling (Daniel Berrange), various unifications cleanup in the daemon
merging (Daniel Berrange), internal file and timer monitoring API
(Daniel Berrange), remove libsysfs dependancy, call brctl program
directly (Daniel Berrange), virBuffer functions cleanups (Richard Jones),
make init script LSB compliant, error handling on lookup functions
(Richard Jones), remove internal virGetDomainByID (Richard Jones),
revamp of xen subdrivers interfaces (Richard Jones)
- Localization updates
0.2.3: Jun 8 2007:
- Documentation: documentation for upcoming remote access (Richard Jones),
virConnectNumOfDefinedDomains doc (Jan Michael), virsh help messages
...
...
src/xml.c
浏览文件 @
fdc36dcb
...
...
@@ -719,6 +719,7 @@ virDomainParseXMLDiskDesc(virConnectPtr conn, xmlNodePtr node, virBufferPtr buf,
int
typ
=
0
;
int
cdrom
=
0
;
int
isNoSrcCdrom
=
0
;
int
ret
=
0
;
type
=
xmlGetProp
(
node
,
BAD_CAST
"type"
);
if
(
type
!=
NULL
)
{
...
...
@@ -768,21 +769,14 @@ virDomainParseXMLDiskDesc(virConnectPtr conn, xmlNodePtr node, virBufferPtr buf,
}
if
(
!
isNoSrcCdrom
)
{
virXMLError
(
conn
,
VIR_ERR_NO_SOURCE
,
(
const
char
*
)
target
,
0
);
if
(
target
!=
NULL
)
xmlFree
(
target
);
if
(
device
!=
NULL
)
xmlFree
(
device
);
return
(
-
1
);
ret
=
-
1
;
goto
cleanup
;
}
}
if
(
target
==
NULL
)
{
virXMLError
(
conn
,
VIR_ERR_NO_TARGET
,
(
const
char
*
)
source
,
0
);
if
(
source
!=
NULL
)
xmlFree
(
source
);
if
(
device
!=
NULL
)
xmlFree
(
device
);
return
(
-
1
);
ret
=
-
1
;
goto
cleanup
;
}
/* Xend (all versions) put the floppy device config
...
...
@@ -861,12 +855,17 @@ virDomainParseXMLDiskDesc(virConnectPtr conn, xmlNodePtr node, virBufferPtr buf,
virBufferAdd
(
buf
,
")"
,
1
);
cleanup:
xmlFree
(
drvType
);
xmlFree
(
drvName
);
xmlFree
(
device
);
xmlFree
(
target
);
xmlFree
(
source
);
return
(
0
);
if
(
drvType
)
xmlFree
(
drvType
);
if
(
drvName
)
xmlFree
(
drvName
);
if
(
device
)
xmlFree
(
device
);
if
(
target
)
xmlFree
(
target
);
if
(
source
)
xmlFree
(
source
);
return
(
ret
);
}
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录