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

[libvirt] [PATCH v2 0/3] Honor blacklist for modprobe command



Original patch here:

http://www.redhat.com/archives/libvir-list/2014-January/msg01408.html

Changes since v1:

 * Add virkmod.{c,h} to perform the various modprobe commands
   virModprobeConfig()       -> modprobe -c
   virModprobeLoad()         -> modprobe driver
   virModprobeUnload()       -> modprobe -r driver
   virModprobeUseBlacklist() -> modprobe -b driver

 * virkmodtest.c to test the functions
   Caveat emptor... The config is the only test run by default.  Loading and
   Unloading modules is something to be done carefully.

 * virpci.c
   Use the virModprobe*() API's instead of a direct MODPROBE

 * .gitignore
   Added the /tests/virkmodtest and /examples/domain-events/ which seems
   to have appeared recently.  I can separate them out if desired.

 NOTE: Since I have no messages in virkmod.c, modifying po/POTFILES.in was
       deemed unnecessary by a 'make check-syntax'

John Ferlan (3):
  utils: Introduce functions for modprobe
  tests: Add test for new virkmod functions
  Honor blacklist for modprobe command

 .gitignore               |   2 +
 src/Makefile.am          |   1 +
 src/libvirt_private.syms |   7 ++
 src/util/virkmod.c       | 138 ++++++++++++++++++++++++++++++++
 src/util/virkmod.h       |  35 +++++++++
 src/util/virpci.c        |  49 +++++++++---
 tests/Makefile.am        |   5 ++
 tests/virkmodtest.c      | 201 +++++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 429 insertions(+), 9 deletions(-)
 create mode 100644 src/util/virkmod.c
 create mode 100644 src/util/virkmod.h
 create mode 100644 tests/virkmodtest.c

-- 
1.8.4.2


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