Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
d67c2b76
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看板
提交
d67c2b76
编写于
1月 29, 2013
作者:
J
John Ferlan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
inotify: Clean up some function headers
上级
2ca9c3ce
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
24 addition
and
15 deletion
+24
-15
src/xen/xen_inotify.c
src/xen/xen_inotify.c
+24
-15
未找到文件。
src/xen/xen_inotify.c
浏览文件 @
d67c2b76
...
...
@@ -4,7 +4,7 @@
* /etc/xen
* /var/lib/xend/domains
*
* Copyright (C) 2010-201
1
Red Hat, Inc.
* Copyright (C) 2010-201
3
Red Hat, Inc.
* Copyright (C) 2008 VirtualIron
*
* This library is free software; you can redistribute it and/or
...
...
@@ -51,7 +51,9 @@ struct xenUnifiedDriver xenInotifyDriver = {
static
int
xenInotifyXenCacheLookup
(
virConnectPtr
conn
,
const
char
*
filename
,
char
**
name
,
unsigned
char
*
uuid
)
{
char
**
name
,
unsigned
char
*
uuid
)
{
xenUnifiedPrivatePtr
priv
=
conn
->
privateData
;
xenXMConfCachePtr
entry
;
...
...
@@ -72,8 +74,11 @@ xenInotifyXenCacheLookup(virConnectPtr conn,
}
static
int
xenInotifyXendDomainsDirLookup
(
virConnectPtr
conn
,
const
char
*
filename
,
char
**
name
,
unsigned
char
*
uuid
)
{
xenInotifyXendDomainsDirLookup
(
virConnectPtr
conn
,
const
char
*
filename
,
char
**
name
,
unsigned
char
*
uuid
)
{
int
i
;
virDomainPtr
dom
;
const
char
*
uuid_str
;
...
...
@@ -131,7 +136,9 @@ xenInotifyXendDomainsDirLookup(virConnectPtr conn, const char *filename,
static
int
xenInotifyDomainLookup
(
virConnectPtr
conn
,
const
char
*
filename
,
char
**
name
,
unsigned
char
*
uuid
)
{
char
**
name
,
unsigned
char
*
uuid
)
{
xenUnifiedPrivatePtr
priv
=
conn
->
privateData
;
if
(
priv
->
useXenConfigCache
)
return
xenInotifyXenCacheLookup
(
conn
,
filename
,
name
,
uuid
);
...
...
@@ -142,7 +149,9 @@ xenInotifyDomainLookup(virConnectPtr conn,
static
virDomainEventPtr
xenInotifyDomainEventFromFile
(
virConnectPtr
conn
,
const
char
*
filename
,
int
type
,
int
detail
)
{
int
type
,
int
detail
)
{
virDomainEventPtr
event
;
char
*
name
=
NULL
;
unsigned
char
uuid
[
VIR_UUID_BUFLEN
];
...
...
@@ -156,8 +165,8 @@ xenInotifyDomainEventFromFile(virConnectPtr conn,
}
static
int
xenInotifyXendDomainsDirRemoveEntry
(
virConnectPtr
conn
,
const
char
*
fname
)
{
xenInotifyXendDomainsDirRemoveEntry
(
virConnectPtr
conn
,
const
char
*
fname
)
{
xenUnifiedPrivatePtr
priv
=
conn
->
privateData
;
const
char
*
uuidstr
=
fname
+
strlen
(
XEND_DOMAINS_DIR
)
+
1
;
unsigned
char
uuid
[
VIR_UUID_BUFLEN
];
...
...
@@ -193,8 +202,8 @@ xenInotifyXendDomainsDirRemoveEntry(virConnectPtr conn,
}
static
int
xenInotifyXendDomainsDirAddEntry
(
virConnectPtr
conn
,
const
char
*
fname
)
{
xenInotifyXendDomainsDirAddEntry
(
virConnectPtr
conn
,
const
char
*
fname
)
{
char
*
name
=
NULL
;
unsigned
char
uuid
[
VIR_UUID_BUFLEN
];
xenUnifiedPrivatePtr
priv
=
conn
->
privateData
;
...
...
@@ -217,8 +226,8 @@ xenInotifyXendDomainsDirAddEntry(virConnectPtr conn,
}
static
int
xenInotifyRemoveDomainConfigInfo
(
virConnectPtr
conn
,
const
char
*
fname
)
{
xenInotifyRemoveDomainConfigInfo
(
virConnectPtr
conn
,
const
char
*
fname
)
{
xenUnifiedPrivatePtr
priv
=
conn
->
privateData
;
return
priv
->
useXenConfigCache
?
xenXMConfigCacheRemoveFile
(
conn
,
fname
)
:
...
...
@@ -226,8 +235,8 @@ xenInotifyRemoveDomainConfigInfo(virConnectPtr conn,
}
static
int
xenInotifyAddDomainConfigInfo
(
virConnectPtr
conn
,
const
char
*
fname
)
{
xenInotifyAddDomainConfigInfo
(
virConnectPtr
conn
,
const
char
*
fname
)
{
xenUnifiedPrivatePtr
priv
=
conn
->
privateData
;
return
priv
->
useXenConfigCache
?
xenXMConfigCacheAddFile
(
conn
,
fname
)
:
...
...
@@ -348,7 +357,7 @@ xenInotifyOpen(virConnectPtr conn,
DIR
*
dh
;
struct
dirent
*
ent
;
char
*
path
;
xenUnifiedPrivatePtr
priv
=
(
xenUnifiedPrivatePtr
)
conn
->
privateData
;
xenUnifiedPrivatePtr
priv
=
conn
->
privateData
;
virCheckFlags
(
VIR_CONNECT_RO
,
VIR_DRV_OPEN_ERROR
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录