Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
63411259
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看板
提交
63411259
编写于
5月 21, 2013
作者:
O
Osier Yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
src/*.[ch]: Remove the whitespace before ";"
上级
45ca0b87
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
15 deletion
+15
-15
src/libvirt-lxc.c
src/libvirt-lxc.c
+1
-1
src/libvirt.c
src/libvirt.c
+5
-5
src/nodeinfo.c
src/nodeinfo.c
+9
-9
未找到文件。
src/libvirt-lxc.c
浏览文件 @
63411259
...
...
@@ -151,7 +151,7 @@ virDomainLxcEnterNamespace(virDomainPtr domain,
if
(
virProcessSetNamespaces
(
nfdlist
,
fdlist
)
<
0
)
{
if
(
oldfdlist
&&
noldfdlist
)
{
for
(
i
=
0
;
i
<
*
noldfdlist
;
i
++
)
{
for
(
i
=
0
;
i
<
*
noldfdlist
;
i
++
)
{
VIR_FORCE_CLOSE
((
*
oldfdlist
)[
i
]);
}
VIR_FREE
(
*
oldfdlist
);
...
...
src/libvirt.c
浏览文件 @
63411259
...
...
@@ -150,7 +150,7 @@ static int virConnectAuthCallbackDefault(virConnectCredentialPtr cred,
void *cbdata ATTRIBUTE_UNUSED) {
int i;
for (i = 0
; i < ncred
; i++) {
for (i = 0
; i < ncred
; i++) {
char buf[1024];
char *bufptr = buf;
size_t len;
...
...
@@ -820,7 +820,7 @@ int virStateInitialize(bool privileged,
if (virInitialize() < 0)
return -1;
for (i = 0
; i < virStateDriverTabCount
; i++) {
for (i = 0
; i < virStateDriverTabCount
; i++) {
if (virStateDriverTab[i]->stateInitialize) {
VIR_DEBUG("Running global init for %s state driver",
virStateDriverTab[i]->name);
...
...
@@ -846,7 +846,7 @@ int virStateInitialize(bool privileged,
int virStateCleanup(void) {
int i, ret = 0;
for (i = 0
; i < virStateDriverTabCount
; i++) {
for (i = 0
; i < virStateDriverTabCount
; i++) {
if (virStateDriverTab[i]->stateCleanup &&
virStateDriverTab[i]->stateCleanup() < 0)
ret = -1;
...
...
@@ -864,7 +864,7 @@ int virStateCleanup(void) {
int virStateReload(void) {
int i, ret = 0;
for (i = 0
; i < virStateDriverTabCount
; i++) {
for (i = 0
; i < virStateDriverTabCount
; i++) {
if (virStateDriverTab[i]->stateReload &&
virStateDriverTab[i]->stateReload() < 0)
ret = -1;
...
...
@@ -882,7 +882,7 @@ int virStateReload(void) {
int virStateStop(void) {
int i, ret = 0;
for (i = 0
; i < virStateDriverTabCount
; i++) {
for (i = 0
; i < virStateDriverTabCount
; i++) {
if (virStateDriverTab[i]->stateStop &&
virStateDriverTab[i]->stateStop())
ret = 1;
...
...
src/nodeinfo.c
浏览文件 @
63411259
...
...
@@ -1478,9 +1478,9 @@ nodeCapsInitNUMAFake(virCapsPtr caps ATTRIBUTE_UNUSED)
}
id
=
0
;
for
(
s
=
0
;
s
<
nodeinfo
.
sockets
;
s
++
)
{
for
(
c
=
0
;
c
<
nodeinfo
.
cores
;
c
++
)
{
for
(
t
=
0
;
t
<
nodeinfo
.
threads
;
t
++
)
{
for
(
s
=
0
;
s
<
nodeinfo
.
sockets
;
s
++
)
{
for
(
c
=
0
;
c
<
nodeinfo
.
cores
;
c
++
)
{
for
(
t
=
0
;
t
<
nodeinfo
.
threads
;
t
++
)
{
cpus
[
id
].
id
=
id
;
cpus
[
id
].
socket_id
=
s
;
cpus
[
id
].
core_id
=
c
;
...
...
@@ -1502,7 +1502,7 @@ nodeCapsInitNUMAFake(virCapsPtr caps ATTRIBUTE_UNUSED)
return
0
;
error:
for
(;
id
>=
0
;
id
--
)
for
(;
id
>=
0
;
id
--
)
virBitmapFree
(
cpus
[
id
].
siblings
);
VIR_FREE
(
cpus
);
return
-
1
;
...
...
@@ -1637,7 +1637,7 @@ nodeCapsInitNUMA(virCapsPtr caps)
goto
cleanup
;
memset
(
allonesmask
,
0xff
,
mask_n_bytes
);
for
(
n
=
0
;
n
<=
numa_max_node
()
;
n
++
)
{
for
(
n
=
0
;
n
<=
numa_max_node
()
;
n
++
)
{
int
i
;
/* The first time this returns -1, ENOENT if node doesn't exist... */
if
(
numa_node_to_cpus
(
n
,
mask
,
mask_n_bytes
)
<
0
)
{
...
...
@@ -1655,14 +1655,14 @@ nodeCapsInitNUMA(virCapsPtr caps)
/* Detect the amount of memory in the numa cell */
memory
=
nodeGetCellMemory
(
n
);
for
(
ncpus
=
0
,
i
=
0
;
i
<
max_n_cpus
;
i
++
)
for
(
ncpus
=
0
,
i
=
0
;
i
<
max_n_cpus
;
i
++
)
if
(
MASK_CPU_ISSET
(
mask
,
i
))
ncpus
++
;
if
(
VIR_ALLOC_N
(
cpus
,
ncpus
)
<
0
)
goto
cleanup
;
for
(
ncpus
=
0
,
i
=
0
;
i
<
max_n_cpus
;
i
++
)
{
for
(
ncpus
=
0
,
i
=
0
;
i
<
max_n_cpus
;
i
++
)
{
if
(
MASK_CPU_ISSET
(
mask
,
i
))
{
if
(
virNodeCapsFillCPUInfo
(
i
,
cpus
+
ncpus
++
)
<
0
)
{
topology_failed
=
true
;
...
...
@@ -1714,7 +1714,7 @@ nodeGetCellsFreeMemory(unsigned long long *freeMems,
if
(
lastCell
>
maxCell
)
lastCell
=
maxCell
;
for
(
numCells
=
0
,
n
=
startCell
;
n
<=
lastCell
;
n
++
)
{
for
(
numCells
=
0
,
n
=
startCell
;
n
<=
lastCell
;
n
++
)
{
long
long
mem
;
if
(
numa_node_size64
(
n
,
&
mem
)
<
0
)
{
virReportError
(
VIR_ERR_INTERNAL_ERROR
,
...
...
@@ -1740,7 +1740,7 @@ nodeGetFreeMemory(void)
return
nodeGetFreeMemoryFake
();
for
(
n
=
0
;
n
<=
numa_max_node
()
;
n
++
)
{
for
(
n
=
0
;
n
<=
numa_max_node
()
;
n
++
)
{
long
long
mem
;
if
(
numa_node_size64
(
n
,
&
mem
)
<
0
)
{
virReportError
(
VIR_ERR_INTERNAL_ERROR
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录