Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
95aed7fe
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,发现更多精彩内容 >>
提交
95aed7fe
编写于
3月 18, 2014
作者:
M
Martin Kletzander
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use K&R style for curly braces in remaining files
Signed-off-by:
N
Martin Kletzander
<
mkletzan@redhat.com
>
上级
cd4da711
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
41 addition
and
21 deletion
+41
-21
daemon/libvirtd-config.c
daemon/libvirtd-config.c
+7
-2
docs/internals/command.html.in
docs/internals/command.html.in
+2
-1
examples/dominfo/info1.c
examples/dominfo/info1.c
+4
-3
src/bhyve/bhyve_driver.c
src/bhyve/bhyve_driver.c
+2
-1
src/interface/interface_backend_netcf.c
src/interface/interface_backend_netcf.c
+5
-3
src/interface/interface_backend_udev.c
src/interface/interface_backend_udev.c
+3
-1
src/interface/interface_driver.c
src/interface/interface_driver.c
+3
-1
src/libxl/libxl_domain.c
src/libxl/libxl_domain.c
+2
-1
src/node_device/node_device_driver.c
src/node_device/node_device_driver.c
+3
-2
src/secret/secret_driver.c
src/secret/secret_driver.c
+5
-3
src/security/security_stack.c
src/security/security_stack.c
+5
-3
未找到文件。
daemon/libvirtd-config.c
浏览文件 @
95aed7fe
/*
* libvirtd-config.c: daemon start of day, guest process & i/o management
*
* Copyright (C) 2006-2012 Red Hat, Inc.
* Copyright (C) 2006-2012
, 2014
Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
*
* This library is free software; you can redistribute it and/or
...
...
@@ -158,7 +158,12 @@ checkType(virConfValuePtr p, const char *filename,
} while (0)
static
int
remoteConfigGetAuth
(
virConfPtr
conf
,
const
char
*
key
,
int
*
auth
,
const
char
*
filename
)
{
static
int
remoteConfigGetAuth
(
virConfPtr
conf
,
const
char
*
key
,
int
*
auth
,
const
char
*
filename
)
{
virConfValuePtr
p
;
p
=
virConfGetValue
(
conf
,
key
);
...
...
docs/internals/command.html.in
浏览文件 @
95aed7fe
...
...
@@ -560,7 +560,8 @@
<pre>
int runhook(const char *drvstr, const char *id,
const char *opstr, const char *subopstr,
const char *extra) {
const char *extra)
{
int ret;
char *path;
virCommandPtr cmd;
...
...
examples/dominfo/info1.c
浏览文件 @
95aed7fe
...
...
@@ -19,7 +19,8 @@
* extract the domain 0 information
*/
static
void
getDomainInfo
(
int
id
)
{
getDomainInfo
(
int
id
)
{
virConnectPtr
conn
=
NULL
;
/* the hypervisor connection */
virDomainPtr
dom
=
NULL
;
/* the domain being checked */
virDomainInfo
info
;
/* the information being fetched */
...
...
@@ -55,8 +56,8 @@ error:
virConnectClose
(
conn
);
}
int
main
()
{
int
main
()
{
getDomainInfo
(
0
);
return
0
;
...
...
src/bhyve/bhyve_driver.c
浏览文件 @
95aed7fe
...
...
@@ -696,7 +696,8 @@ cleanup:
static
int
bhyveConnectGetMaxVcpus
(
virConnectPtr
conn
ATTRIBUTE_UNUSED
,
const
char
*
type
)
{
const
char
*
type
)
{
if
(
virConnectGetMaxVcpusEnsureACL
(
conn
)
<
0
)
return
-
1
;
...
...
src/interface/interface_backend_netcf.c
浏览文件 @
95aed7fe
...
...
@@ -2,7 +2,7 @@
* interface_backend_netcf.c: backend driver methods to handle physical
* interface configuration using the netcf library.
*
* Copyright (C) 2006-201
3
Red Hat, Inc.
* Copyright (C) 2006-201
4
Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -900,7 +900,8 @@ cleanup:
return
ret
;
}
static
int
netcfInterfaceUndefine
(
virInterfacePtr
ifinfo
)
{
static
int
netcfInterfaceUndefine
(
virInterfacePtr
ifinfo
)
{
virNetcfDriverStatePtr
driver
=
ifinfo
->
conn
->
interfacePrivateData
;
struct
netcf_if
*
iface
=
NULL
;
virInterfaceDefPtr
def
=
NULL
;
...
...
@@ -1190,7 +1191,8 @@ static virStateDriver interfaceStateDriver = {
.
stateReload
=
netcfStateReload
,
};
int
netcfIfaceRegister
(
void
)
{
int
netcfIfaceRegister
(
void
)
{
if
(
virRegisterInterfaceDriver
(
&
interfaceDriver
)
<
0
)
{
virReportError
(
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"failed to register netcf interface driver"
));
...
...
src/interface/interface_backend_udev.c
浏览文件 @
95aed7fe
/*
* interface_backend_udev.c: udev backend for virInterface
*
* Copyright (C) 2014 Red Hat, Inc.
* Copyright (C) 2012 Doug Goldstein <cardoe@cardoe.com>
*
* This library is free software; you can redistribute it and/or
...
...
@@ -1186,7 +1187,8 @@ static virInterfaceDriver udevIfaceDriver = {
};
int
udevIfaceRegister
(
void
)
{
udevIfaceRegister
(
void
)
{
if
(
virRegisterInterfaceDriver
(
&
udevIfaceDriver
)
<
0
)
{
virReportError
(
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"failed to register udev interface driver"
));
...
...
src/interface/interface_driver.c
浏览文件 @
95aed7fe
/*
* interface_driver.c: loads the appropriate backend
*
* Copyright (C) 2014 Red Hat, Inc.
* Copyright (C) 2012 Doug Goldstein <cardoe@cardoe.com>
*
* This library is free software; you can redistribute it and/or
...
...
@@ -22,7 +23,8 @@
#include "interface_driver.h"
int
interfaceRegister
(
void
)
{
interfaceRegister
(
void
)
{
#ifdef WITH_NETCF
/* Attempt to load the netcf based backend first */
if
(
netcfIfaceRegister
()
==
0
)
...
...
src/libxl/libxl_domain.c
浏览文件 @
95aed7fe
...
...
@@ -739,7 +739,8 @@ libxlDomainEventQueue(libxlDriverPrivatePtr driver, virObjectEventPtr event)
}
char
*
libxlDomainManagedSavePath
(
libxlDriverPrivatePtr
driver
,
virDomainObjPtr
vm
)
{
libxlDomainManagedSavePath
(
libxlDriverPrivatePtr
driver
,
virDomainObjPtr
vm
)
{
char
*
ret
;
libxlDriverConfigPtr
cfg
=
libxlDriverConfigGet
(
driver
);
...
...
src/node_device/node_device_driver.c
浏览文件 @
95aed7fe
/*
* node_device_driver.c: node device enumeration
*
* Copyright (C) 2010-201
3
Red Hat, Inc.
* Copyright (C) 2010-201
4
Red Hat, Inc.
* Copyright (C) 2008 Virtual Iron Software, Inc.
* Copyright (C) 2008 David F. Lively
*
...
...
@@ -626,7 +626,8 @@ out:
return
ret
;
}
int
nodedevRegister
(
void
)
{
int
nodedevRegister
(
void
)
{
#if defined(WITH_HAL) && defined(WITH_UDEV)
/* Register only one of these two - they conflict */
if
(
udevNodeRegister
()
==
-
1
)
...
...
src/secret/secret_driver.c
浏览文件 @
95aed7fe
/*
* secret_driver.c: local driver for secret manipulation API
*
* Copyright (C) 2009-2012 Red Hat, Inc.
* Copyright (C) 2009-2012
, 2014
Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -537,7 +537,8 @@ secretOpen(virConnectPtr conn, virConnectAuthPtr auth ATTRIBUTE_UNUSED,
}
static
int
secretClose
(
virConnectPtr
conn
)
{
secretClose
(
virConnectPtr
conn
)
{
conn
->
secretPrivateData
=
NULL
;
return
0
;
}
...
...
@@ -631,7 +632,8 @@ secretUsageIDForDef(virSecretDefPtr def)
static
int
secretConnectListAllSecrets
(
virConnectPtr
conn
,
virSecretPtr
**
secrets
,
unsigned
int
flags
)
{
unsigned
int
flags
)
{
virSecretDriverStatePtr
driver
=
conn
->
secretPrivateData
;
virSecretPtr
*
tmp_secrets
=
NULL
;
int
nsecrets
=
0
;
...
...
src/security/security_stack.c
浏览文件 @
95aed7fe
/*
* Copyright (C) 2010-201
3
Red Hat, Inc.
* Copyright (C) 2010-201
4
Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -528,8 +528,10 @@ virSecurityStackSetHugepages(virSecurityManagerPtr mgr,
return
rc
;
}
static
char
*
virSecurityStackGetMountOptions
(
virSecurityManagerPtr
mgr
ATTRIBUTE_UNUSED
,
virDomainDefPtr
vm
ATTRIBUTE_UNUSED
)
{
static
char
*
virSecurityStackGetMountOptions
(
virSecurityManagerPtr
mgr
ATTRIBUTE_UNUSED
,
virDomainDefPtr
vm
ATTRIBUTE_UNUSED
)
{
return
NULL
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录