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: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2020-06-16 12:16:55 +01:00
parent e8645610c8
commit 90a10912e2

View File

@ -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)
{ {
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;