提交 345ff369 编写于 作者: D Daniel P. Berrange

Prefer UDEV to HAL drivers if both a compiled

HAL is deprecated and UDEV is the future. Thus if both
options are compiled, we should prefer use of UDEV over
HAL

* src/node_device/node_device_driver.c: Switch init
  order to try UDEV first, then HAL
上级 e72cc3c1
......@@ -646,8 +646,8 @@ void registerCommonNodeFuncs(virDeviceMonitorPtr driver)
int nodedevRegister(void) {
#if defined(HAVE_HAL) && defined(HAVE_UDEV)
/* Register only one of these two - they conflict */
if (halNodeRegister() == -1)
return udevNodeRegister();
if (udevNodeRegister() == -1)
return halNodeRegister();
return 0;
#else
# ifdef HAVE_HAL
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册