[PATCH 0/2] Introduce inclusive language in kmod

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In July 2020, linux moved to adopt inclusive and neutral language.
This includes replacing words slave/master with alternative terms
like primary/secondary or the words blacklist/whitelist with
blocklist/passlist. 

This patchset aims at editing the existing kmod code to make it inclusive.
This is mainly achieved by refactoring the blacklist command to blocklist.

The first patch refactors the term and updates the relevant documentation.

Since changing blacklist to blocklist and completely removing support for the
term blacklist will most likely break many systems, temporary support for the
term blacklist with a warning is introduced as part of the fallback patch.

That being said, two possible approaches of phasing out the term 
blacklist are listed below:
Approach 1: The moment the word blacklist is seen when reading the config file,
overwrite it to blocklist in the user's config file. The benefit of this approach
would be that we could stop support for the term blacklist immediately while at 
the same time not breaking any systems.

Approach 2: Add a warning each time the term blacklist is encountered.
This is the approach that is currently implemented. It is less aggresive
than approach 1 and serves the purpose of removing the term blacklist from
most places in the code.

Reuben Varghese (2):
  Refactor all instances of blacklist to blocklist and update
    documentation
  Continue temporary support for Blacklist command with warnings

 Makefile.am                                   |  6 +--
 NEWS                                          | 12 ++---
 libkmod/docs/libkmod-sections.txt             |  4 +-
 libkmod/libkmod-config.c                      | 50 ++++++++++--------
 libkmod/libkmod-internal.h                    |  4 +-
 libkmod/libkmod-module.c                      | 52 +++++++++----------
 libkmod/libkmod.h                             | 12 ++---
 libkmod/libkmod.sym                           |  4 +-
 libkmod/python/kmod/_libkmod_h.pxd            |  2 +-
 libkmod/python/kmod/kmod.pyx                  |  2 +-
 man/modprobe.d.xml                            |  8 ++-
 man/modprobe.xml                              |  4 +-
 testsuite/.gitignore                          |  6 +--
 .../etc/modprobe.d/modprobe.conf              |  2 -
 .../etc/modprobe.d/modprobe.conf              |  2 +
 .../{test-blacklist.c => test-blocklist.c}    | 12 ++---
 tools/insert.c                                |  6 +--
 tools/modprobe.c                              | 18 +++----
 18 files changed, 109 insertions(+), 97 deletions(-)
 delete mode 100644 testsuite/rootfs-pristine/test-blacklist/etc/modprobe.d/modprobe.conf
 create mode 100644 testsuite/rootfs-pristine/test-blocklist/etc/modprobe.d/modprobe.conf
 rename testsuite/{test-blacklist.c => test-blocklist.c} (90%)

-- 
2.27.0




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux