Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
b2dbfefc
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,发现更多精彩内容 >>
提交
b2dbfefc
编写于
11月 25, 2008
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Avoid symbol clash with win32 headers and node device APIs
上级
9a7c05d9
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
19 addition
and
12 deletion
+19
-12
ChangeLog
ChangeLog
+11
-4
src/node_device_conf.c
src/node_device_conf.c
+2
-2
src/node_device_conf.h
src/node_device_conf.h
+1
-1
src/node_device_devkit.c
src/node_device_devkit.c
+4
-4
src/node_device_hal.c
src/node_device_hal.c
+1
-1
未找到文件。
ChangeLog
浏览文件 @
b2dbfefc
Tue Nov 25 10:36:40 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
* src/node_device_conf.c, src/node_device_conf.h,
src/node_device_devkit.c, src/node_device_hal.c: Change
'interface' to 'ifname' in struct to avoid clash with
symbols in MinGW/Win32 headers
Tue Nov 25 11:29:19 +0100 2008 Jim Meyering <meyering@redhat.com>
* src/virterror.c (virReportErrorHelper): Sync doc to code.
...
...
@@ -6,20 +13,20 @@ Tue Nov 25 11:29:19 +0100 2008 Jim Meyering <meyering@redhat.com>
* src/libvirt.c (virStateActive, virStateCleanup, virStateReload):
(virStateActive): Add per-function comments.
Mon Nov 24 19:32:40 GMT 2008 D
na
iel P. Berrange <berrange@redhat.com>
Mon Nov 24 19:32:40 GMT 2008 D
an
iel P. Berrange <berrange@redhat.com>
* src/openvz_conf.c, src/openvz_conf.h, src/openvz_driver.c:
Default vCPUs to equal host pCPU count if not set in config
(patch from Evgeniy Sokolov)
Mon Nov 24 19:27:40 GMT 2008 D
na
iel P. Berrange <berrange@redhat.com>
Mon Nov 24 19:27:40 GMT 2008 D
an
iel P. Berrange <berrange@redhat.com>
* examples/domain-events/events-python/event-test.py,
python/libvir.c, python/libvir.py, python/libvirt_wrap.h,
python/types.c, python/virConnect.py: Fixes to python
bindings for changes in public event API (David Lively)
Mon Nov 24 19:22:40 GMT 2008 D
na
iel P. Berrange <berrange@redhat.com>
Mon Nov 24 19:22:40 GMT 2008 D
an
iel P. Berrange <berrange@redhat.com>
* tests/Makefile.am, tests/sexpr2xmltest.c,
tests/testutilsxen.c, tests/xencapstest.c,
...
...
@@ -28,7 +35,7 @@ Mon Nov 24 19:22:40 GMT 2008 Dnaiel P. Berrange <berrange@redhat.com>
WITH_XEN conditionals from source, since the entire build
is disabled in Makefile.am
Mon Nov 24 16:49:40 GMT 2008 D
na
iel P. Berrange <berrange@redhat.com>
Mon Nov 24 16:49:40 GMT 2008 D
an
iel P. Berrange <berrange@redhat.com>
* autobuild.sh: Disable UML driver on mingw32 biuld
...
...
src/node_device_conf.c
浏览文件 @
b2dbfefc
...
...
@@ -269,7 +269,7 @@ char *virNodeDeviceDefFormat(virConnectPtr conn,
break
;
case
VIR_NODE_DEV_CAP_NET
:
virBufferVSprintf
(
&
buf
,
" <interface>%s</interface>
\n
"
,
data
->
net
.
i
nterfac
e
);
data
->
net
.
i
fnam
e
);
if
(
data
->
net
.
address
)
virBufferVSprintf
(
&
buf
,
" <address>%s</address>
\n
"
,
data
->
net
.
address
);
...
...
@@ -374,7 +374,7 @@ void virNodeDevCapsDefFree(virNodeDevCapsDefPtr caps)
VIR_FREE
(
data
->
usb_if
.
description
);
break
;
case
VIR_NODE_DEV_CAP_NET
:
VIR_FREE
(
data
->
net
.
i
nterfac
e
);
VIR_FREE
(
data
->
net
.
i
fnam
e
);
VIR_FREE
(
data
->
net
.
address
);
break
;
case
VIR_NODE_DEV_CAP_SCSI_HOST
:
...
...
src/node_device_conf.h
浏览文件 @
b2dbfefc
...
...
@@ -102,7 +102,7 @@ struct _virNodeDevCapsDef {
}
usb_if
;
struct
{
char
*
address
;
char
*
i
nterfac
e
;
char
*
i
fnam
e
;
enum
virNodeDevNetCapType
subtype
;
/* LAST -> no subtype */
}
net
;
struct
{
...
...
src/node_device_devkit.c
浏览文件 @
b2dbfefc
...
...
@@ -118,14 +118,14 @@ static int gather_net_cap(DevkitDevice *dkdev,
union
_virNodeDevCapData
*
d
)
{
const
char
*
sysfs_path
=
devkit_device_get_native_path
(
dkdev
);
const
char
*
i
nterfac
e
;
const
char
*
i
fnam
e
;
if
(
sysfs_path
==
NULL
)
return
-
1
;
i
nterfac
e
=
strrchr
(
sysfs_path
,
'/'
);
if
(
!
i
nterface
||
!*
interface
||
!*
(
++
interfac
e
))
i
fnam
e
=
strrchr
(
sysfs_path
,
'/'
);
if
(
!
i
fname
||
!*
ifname
||
!*
(
++
ifnam
e
))
return
-
1
;
if
((
d
->
net
.
i
nterface
=
strdup
(
interfac
e
))
==
NULL
)
if
((
d
->
net
.
i
fname
=
strdup
(
ifnam
e
))
==
NULL
)
return
-
1
;
d
->
net
.
subtype
=
VIR_NODE_DEV_CAP_NET_LAST
;
...
...
src/node_device_hal.c
浏览文件 @
b2dbfefc
...
...
@@ -196,7 +196,7 @@ static int gather_net_cap(LibHalContext *ctx, const char *udi,
union
_virNodeDevCapData
*
d
)
{
unsigned
long
long
dummy
;
(
void
)
get_str_prop
(
ctx
,
udi
,
"net.interface"
,
&
d
->
net
.
i
nterfac
e
);
(
void
)
get_str_prop
(
ctx
,
udi
,
"net.interface"
,
&
d
->
net
.
i
fnam
e
);
(
void
)
get_str_prop
(
ctx
,
udi
,
"net.address"
,
&
d
->
net
.
address
);
if
(
get_uint64_prop
(
ctx
,
udi
,
"net.80203.mac_address"
,
&
dummy
)
==
0
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录