Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
d3b05abf
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看板
提交
d3b05abf
编写于
9月 20, 2012
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Convert HAVE_UDEV to WITH_UDEV
Signed-off-by:
N
Daniel P. Berrange
<
berrange@redhat.com
>
上级
bae47e4e
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
14 addition
and
14 deletion
+14
-14
configure.ac
configure.ac
+2
-2
src/Makefile.am
src/Makefile.am
+3
-3
src/interface/interface_driver.c
src/interface/interface_driver.c
+2
-2
src/node_device/node_device_driver.c
src/node_device/node_device_driver.c
+2
-2
src/node_device/node_device_driver.h
src/node_device/node_device_driver.h
+1
-1
src/storage/storage_backend_scsi.c
src/storage/storage_backend_scsi.c
+2
-2
src/util/virstoragefile.c
src/util/virstoragefile.c
+1
-1
tools/virsh.c
tools/virsh.c
+1
-1
未找到文件。
configure.ac
浏览文件 @
d3b05abf
...
...
@@ -2336,11 +2336,11 @@ if test "x$with_udev" = "xyes" || test "x$with_udev" = "xcheck"; then
])
fi
if test "x$with_udev" = "xyes" ; then
AC_DEFINE_UNQUOTED([
HAVE
_UDEV], 1,
AC_DEFINE_UNQUOTED([
WITH
_UDEV], 1,
[use UDEV for host device enumeration])
fi
fi
AM_CONDITIONAL([
HAVE
_UDEV], [test "x$with_udev" = "xyes"])
AM_CONDITIONAL([
WITH
_UDEV], [test "x$with_udev" = "xyes"])
AC_SUBST([UDEV_CFLAGS])
AC_SUBST([UDEV_LIBS])
AC_SUBST([PCIACCESS_CFLAGS])
...
...
src/Makefile.am
浏览文件 @
d3b05abf
...
...
@@ -620,7 +620,7 @@ if WITH_NETCF
INTERFACE_DRIVER_SOURCES
+=
\
interface/interface_backend_netcf.c
endif
if
HAVE
_UDEV
if
WITH
_UDEV
INTERFACE_DRIVER_SOURCES
+=
\
interface/interface_backend_udev.c
endif
...
...
@@ -1108,7 +1108,7 @@ if WITH_NETCF
libvirt_driver_interface_la_CFLAGS
+=
$(NETCF_CFLAGS)
libvirt_driver_interface_la_LIBADD
+=
$(NETCF_LIBS)
else
if
HAVE
_UDEV
if
WITH
_UDEV
libvirt_driver_interface_la_CFLAGS
+=
$(UDEV_CFLAGS)
libvirt_driver_interface_la_LIBADD
+=
$(UDEV_LIBS)
endif
...
...
@@ -1222,7 +1222,7 @@ libvirt_driver_nodedev_la_SOURCES += $(NODE_DEVICE_DRIVER_HAL_SOURCES)
libvirt_driver_nodedev_la_CFLAGS
+=
$(HAL_CFLAGS)
libvirt_driver_nodedev_la_LIBADD
+=
$(HAL_LIBS)
endif
if
HAVE
_UDEV
if
WITH
_UDEV
libvirt_driver_nodedev_la_SOURCES
+=
$(NODE_DEVICE_DRIVER_UDEV_SOURCES)
libvirt_driver_nodedev_la_CFLAGS
+=
$(UDEV_CFLAGS)
$(PCIACCESS_CFLAGS)
libvirt_driver_nodedev_la_LIBADD
+=
$(UDEV_LIBS)
$(PCIACCESS_LIBS)
...
...
src/interface/interface_driver.c
浏览文件 @
d3b05abf
...
...
@@ -28,10 +28,10 @@ interfaceRegister(void) {
if
(
netcfIfaceRegister
()
==
0
)
return
0
;
#endif
/* WITH_NETCF */
#if
HAVE
_UDEV
#if
WITH
_UDEV
/* If there's no netcf or it failed to load, register the udev backend */
if
(
udevIfaceRegister
()
==
0
)
return
0
;
#endif
/*
HAVE
_UDEV */
#endif
/*
WITH
_UDEV */
return
-
1
;
}
src/node_device/node_device_driver.c
浏览文件 @
d3b05abf
...
...
@@ -681,7 +681,7 @@ out:
}
int
nodedevRegister
(
void
)
{
#if defined(HAVE_HAL) && defined(
HAVE
_UDEV)
#if defined(HAVE_HAL) && defined(
WITH
_UDEV)
/* Register only one of these two - they conflict */
if
(
udevNodeRegister
()
==
-
1
)
return
halNodeRegister
();
...
...
@@ -690,7 +690,7 @@ int nodedevRegister(void) {
# ifdef HAVE_HAL
return
halNodeRegister
();
# endif
# ifdef
HAVE
_UDEV
# ifdef
WITH
_UDEV
return
udevNodeRegister
();
# endif
#endif
...
...
src/node_device/node_device_driver.h
浏览文件 @
d3b05abf
...
...
@@ -42,7 +42,7 @@
# ifdef HAVE_HAL
int
halNodeRegister
(
void
);
# endif
# ifdef
HAVE
_UDEV
# ifdef
WITH
_UDEV
int
udevNodeRegister
(
void
);
# endif
...
...
src/storage/storage_backend_scsi.c
浏览文件 @
d3b05abf
...
...
@@ -166,7 +166,7 @@ static char *
virStorageBackendSCSISerial
(
const
char
*
dev
)
{
char
*
serial
=
NULL
;
#ifdef
HAVE
_UDEV
#ifdef
WITH
_UDEV
virCommandPtr
cmd
=
virCommandNewArgList
(
"/lib/udev/scsi_id"
,
"--replace-whitespace"
,
...
...
@@ -191,7 +191,7 @@ virStorageBackendSCSISerial(const char *dev)
virReportOOMError
();
}
#ifdef
HAVE
_UDEV
#ifdef
WITH
_UDEV
cleanup:
virCommandFree
(
cmd
);
#endif
...
...
src/util/virstoragefile.c
浏览文件 @
d3b05abf
...
...
@@ -1282,7 +1282,7 @@ int virStorageFileGetLVMKey(const char *path,
}
#endif
#ifdef
HAVE
_UDEV
#ifdef
WITH
_UDEV
int
virStorageFileGetSCSIKey
(
const
char
*
path
,
char
**
key
)
{
...
...
tools/virsh.c
浏览文件 @
d3b05abf
...
...
@@ -2727,7 +2727,7 @@ vshShowVersion(vshControl *ctl ATTRIBUTE_UNUSED)
vshPrint
(
ctl
,
" Interface"
);
# if defined(WITH_NETCF)
vshPrint
(
ctl
,
" netcf"
);
# elif defined(
HAVE
_UDEV)
# elif defined(
WITH
_UDEV)
vshPrint
(
ctl
,
" udev"
);
# endif
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录