提交 90a10912 编写于 作者: D Daniel P. Berrangé

nodedev: remove use of the term 'blacklist' from enumeration code

The term "ignored" is a better choice for the filtering performed
on devices from udev.
Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 e8645610
...@@ -1397,7 +1397,7 @@ udevProcessDeviceListEntry(struct udev *udev, ...@@ -1397,7 +1397,7 @@ udevProcessDeviceListEntry(struct udev *udev,
* Do not bother enumerating over subsystems that do not * Do not bother enumerating over subsystems that do not
* contain interesting devices. * contain interesting devices.
*/ */
const char *subsystem_blacklist[] = { const char *subsystem_ignored[] = {
"acpi", "tty", "vc", "i2c", "acpi", "tty", "vc", "i2c",
}; };
...@@ -1406,8 +1406,8 @@ udevEnumerateAddMatches(struct udev_enumerate *udev_enumerate) ...@@ -1406,8 +1406,8 @@ udevEnumerateAddMatches(struct udev_enumerate *udev_enumerate)
{ {
size_t i; size_t i;
for (i = 0; i < G_N_ELEMENTS(subsystem_blacklist); i++) { for (i = 0; i < G_N_ELEMENTS(subsystem_ignored); i++) {
const char *s = subsystem_blacklist[i]; const char *s = subsystem_ignored[i];
if (udev_enumerate_add_nomatch_subsystem(udev_enumerate, s) < 0) { if (udev_enumerate_add_nomatch_subsystem(udev_enumerate, s) < 0) {
virReportSystemError(errno, "%s", _("failed to add susbsystem filter")); virReportSystemError(errno, "%s", _("failed to add susbsystem filter"));
return -1; return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册