Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
3463c34e
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看板
提交
3463c34e
编写于
1月 29, 2009
作者:
J
John Levon
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix VNC port reporting when vncunused is set
上级
a9f8c8f5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
22 addition
and
7 deletion
+22
-7
ChangeLog
ChangeLog
+11
-0
src/util.c
src/util.c
+1
-1
src/xend_internal.c
src/xend_internal.c
+9
-6
tests/sexpr2xmltest.c
tests/sexpr2xmltest.c
+1
-0
未找到文件。
ChangeLog
浏览文件 @
3463c34e
Thu Jan 29 16:41:07 GMT 2009 John Levon <john.levon@sun.com>
* src/util.c: allow strtol replacements for libvirt proxy
* src/xend_internal.c: fix VNC port reporting when vncunused
is set
* tests/sexpr2xmldata/sexpr2xml-fv-autoport.sexpr:
* tests/sexpr2xmldata/sexpr2xml-fv-autoport.xml:
* tests/sexpr2xmltest.c: add a test
Thu Jan 29 13:07:05 +0100 2009 Jim Meyering <meyering@redhat.com>
* Makefile.cfg: disable some new checks
...
...
src/util.c
浏览文件 @
3463c34e
...
...
@@ -1041,6 +1041,7 @@ cleanup:
return
rc
;
}
#endif
/* PROXY */
/* Like strtol, but produce an "int" result, and check more carefully.
...
...
@@ -1123,7 +1124,6 @@ virStrToLong_ull(char const *s, char **end_ptr, int base, unsigned long long *re
*
result
=
val
;
return
0
;
}
#endif
/* PROXY */
/**
* virSkipSpaces:
...
...
src/xend_internal.c
浏览文件 @
3463c34e
...
...
@@ -612,7 +612,9 @@ sexpr_get(virConnectPtr xend, const char *fmt, ...)
*
* convenience function to lookup an int value in the S-Expression
*
* Returns the value found or 0 if not found (but may not be an error)
* Returns the value found or 0 if not found (but may not be an error).
* This function suffers from the flaw that zero is both a correct
* return value and an error indicator: careful!
*/
static
int
sexpr_int
(
const
struct
sexpr
*
sexpr
,
const
char
*
name
)
...
...
@@ -2090,15 +2092,16 @@ xenDaemonParseSxprGraphicsNew(virConnectPtr conn,
port
=
xenStoreDomainGetVNCPort
(
conn
,
def
->
id
);
xenUnifiedUnlock
(
priv
);
// Didn't find port entry in xenstore
if
(
port
==
-
1
)
{
// Didn't find port entry in xenstore
port
=
sexpr_int
(
node
,
"device/vfb/vncdisplay"
);
const
char
*
str
=
sexpr_node
(
node
,
"device/vfb/vncdisplay"
);
int
val
;
if
(
str
!=
NULL
&&
virStrToLong_i
(
str
,
NULL
,
0
,
&
val
)
==
0
)
port
=
val
;
}
if
((
unused
&&
STREQ
(
unused
,
"1"
))
||
port
==
-
1
)
{
if
((
unused
&&
STREQ
(
unused
,
"1"
))
||
port
==
-
1
)
graphics
->
data
.
vnc
.
autoport
=
1
;
port
=
-
1
;
}
if
(
port
>=
0
&&
port
<
5900
)
port
+=
5900
;
...
...
tests/sexpr2xmltest.c
浏览文件 @
3463c34e
...
...
@@ -127,6 +127,7 @@ mymain(int argc, char **argv)
DO_TEST
(
"pv-vfb-orig"
,
"pv-vfb-orig"
,
2
);
DO_TEST
(
"pv-vfb-new"
,
"pv-vfb-new"
,
3
);
DO_TEST
(
"pv-vfb-new-vncdisplay"
,
"pv-vfb-new-vncdisplay"
,
3
);
DO_TEST
(
"fv-autoport"
,
"fv-autoport"
,
3
);
DO_TEST
(
"pv-bootloader"
,
"pv-bootloader"
,
1
);
DO_TEST
(
"disk-file"
,
"disk-file"
,
2
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录