Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
31ea5e97
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,发现更多精彩内容 >>
提交
31ea5e97
编写于
2月 14, 2007
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix <features> block. Only include ID & VNC port for active domain XML
上级
8dca13ef
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
17 addition
and
12 deletion
+17
-12
ChangeLog
ChangeLog
+5
-0
qemud/conf.c
qemud/conf.c
+12
-12
未找到文件。
ChangeLog
浏览文件 @
31ea5e97
Wed Feb 14 16:47:24 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* qemud/conf.c: Fixed generation of <features> block, and
don't include ID, or VNC port in inactive XML generation
Wed Feb 14 16:45:24 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* src/qemu_internal.c: Fixed path to the libvirt_qemud
...
...
qemud/conf.c
浏览文件 @
31ea5e97
...
...
@@ -1725,7 +1725,7 @@ char *qemudGenerateXML(struct qemud_server *server, struct qemud_vm *vm, int liv
goto
cleanup
;
}
if
(
vm
->
id
>=
0
)
{
if
(
vm
->
id
>=
0
&&
live
)
{
if
(
qemudBufferPrintf
(
&
buf
,
"<domain type='%s' id='%d'>
\n
"
,
type
,
vm
->
id
)
<
0
)
goto
no_memory
;
}
else
{
...
...
@@ -1772,16 +1772,6 @@ char *qemudGenerateXML(struct qemud_server *server, struct qemud_vm *vm, int liv
if
(
qemudBufferPrintf
(
&
buf
,
" <cmdline>%s</cmdline>
\n
"
,
def
->
os
.
cmdline
)
<
0
)
goto
no_memory
;
if
(
def
->
features
&
QEMUD_FEATURE_ACPI
)
{
if
(
qemudBufferAdd
(
&
buf
,
" <features>
\n
"
)
<
0
)
goto
no_memory
;
if
(
qemudBufferAdd
(
&
buf
,
" <acpi>
\n
"
)
<
0
)
goto
no_memory
;
if
(
qemudBufferAdd
(
&
buf
,
" </features>
\n
"
)
<
0
)
goto
no_memory
;
}
for
(
n
=
0
;
n
<
def
->
os
.
nBootDevs
;
n
++
)
{
const
char
*
boottype
=
"hd"
;
switch
(
def
->
os
.
bootDevs
[
n
])
{
...
...
@@ -1805,6 +1795,16 @@ char *qemudGenerateXML(struct qemud_server *server, struct qemud_vm *vm, int liv
if
(
qemudBufferAdd
(
&
buf
,
" </os>
\n
"
)
<
0
)
goto
no_memory
;
if
(
def
->
features
&
QEMUD_FEATURE_ACPI
)
{
if
(
qemudBufferAdd
(
&
buf
,
" <features>
\n
"
)
<
0
)
goto
no_memory
;
if
(
qemudBufferAdd
(
&
buf
,
" <acpi/>
\n
"
)
<
0
)
goto
no_memory
;
if
(
qemudBufferAdd
(
&
buf
,
" </features>
\n
"
)
<
0
)
goto
no_memory
;
}
if
(
qemudBufferAdd
(
&
buf
,
" <devices>
\n
"
)
<
0
)
goto
no_memory
;
...
...
@@ -1888,7 +1888,7 @@ char *qemudGenerateXML(struct qemud_server *server, struct qemud_vm *vm, int liv
if
(
def
->
graphicsType
==
QEMUD_GRAPHICS_VNC
)
{
if
(
def
->
vncPort
)
{
qemudBufferPrintf
(
&
buf
,
" <graphics type='vnc' port='%d'/>
\n
"
,
vm
->
id
==
-
1
?
def
->
vncPort
:
def
->
vncActive
Port
);
vm
->
id
>=
0
&&
live
?
def
->
vncActivePort
:
def
->
vnc
Port
);
}
else
{
qemudBufferPrintf
(
&
buf
,
" <graphics type='vnc'/>
\n
"
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录