mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
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:
parent
e8645610c8
commit
90a10912e2
@ -1397,7 +1397,7 @@ udevProcessDeviceListEntry(struct udev *udev,
|
||||
* Do not bother enumerating over subsystems that do not
|
||||
* contain interesting devices.
|
||||
*/
|
||||
const char *subsystem_blacklist[] = {
|
||||
const char *subsystem_ignored[] = {
|
||||
"acpi", "tty", "vc", "i2c",
|
||||
};
|
||||
|
||||
@ -1406,8 +1406,8 @@ udevEnumerateAddMatches(struct udev_enumerate *udev_enumerate)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS(subsystem_blacklist); i++) {
|
||||
const char *s = subsystem_blacklist[i];
|
||||
for (i = 0; i < G_N_ELEMENTS(subsystem_ignored); i++) {
|
||||
const char *s = subsystem_ignored[i];
|
||||
if (udev_enumerate_add_nomatch_subsystem(udev_enumerate, s) < 0) {
|
||||
virReportSystemError(errno, "%s", _("failed to add susbsystem filter"));
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user