From 8ad0f7f39526ee0d8f52f44f5434dfd518f8897a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 24 Jul 2022 00:28:32 +0000 Subject: Add "settle" functionality to mdevd-colplug - Still untested. - Also prepare for 0.1.6.0. - Includes a refactor of several functions in mdevd, moved into an internal libmdevd that is also used by mdevd-coldplug. Signed-off-by: Laurent Bercot --- .gitignore | 5 +- INSTALL | 4 +- NEWS | 6 ++ doc/index.html | 6 +- doc/mdevd-coldplug.html | 17 ++++- doc/upgrade.html | 10 ++- package/deps.mak | 18 +++-- package/info | 2 +- src/mdevd/deps-exe/mdevd | 1 + src/mdevd/deps-exe/mdevd-coldplug | 1 + src/mdevd/deps-lib/mdevd | 3 + src/mdevd/mdevd-coldplug.c | 61 +++++++++++++++-- src/mdevd/mdevd-internal.h | 24 +++++++ src/mdevd/mdevd.c | 140 ++++---------------------------------- src/mdevd/mdevd_netlink_init.c | 31 +++++++++ src/mdevd/mdevd_uevent_getvar.c | 16 +++++ src/mdevd/mdevd_uevent_read.c | 87 +++++++++++++++++++++++ 17 files changed, 283 insertions(+), 149 deletions(-) create mode 100644 src/mdevd/deps-lib/mdevd create mode 100644 src/mdevd/mdevd-internal.h create mode 100644 src/mdevd/mdevd_netlink_init.c create mode 100644 src/mdevd/mdevd_uevent_getvar.c create mode 100644 src/mdevd/mdevd_uevent_read.c diff --git a/.gitignore b/.gitignore index 147e421..e11a6fe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,7 @@ *.o -*.a +/*.a.xyzzy *.lo -*.so -*.so.* +/*.so.xyzzy /config.mak /src/include/mdevd/config.h /mdevd diff --git a/INSTALL b/INSTALL index 8e4fc04..422d895 100644 --- a/INSTALL +++ b/INSTALL @@ -6,8 +6,8 @@ Build Instructions - A Linux-based system with a standard C development environment - GNU make version 3.81 or later - - skalibs version 2.12.0.0 or later: https://skarnet.org/software/skalibs/ - - optional: execline version 2.9.0.0 or later: https://skarnet.org/software/execline/ + - skalibs version 2.12.0.1 or later: https://skarnet.org/software/skalibs/ + - optional: execline version 2.9.0.1 or later: https://skarnet.org/software/execline/ This software is Linux-specific. It will run on a Linux kernel, version 2.6.10 or later. diff --git a/NEWS b/NEWS index 028923a..f382c60 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,11 @@ Changelog for mdevd. +In 0.1.6.0 +---------- + + - mdevd-coldplug can now be synchronous with the -O option. + + In 0.1.5.2 ---------- diff --git a/doc/index.html b/doc/index.html index e51e85c..c6261c4 100644 --- a/doc/index.html +++ b/doc/index.html @@ -99,7 +99,7 @@ and does not pull in any unnecessary code. The Linux kernel must be 2.6.10 or later.
  • GNU make, version 3.81 or later
  • skalibs version -2.12.0.0 or later. It's a build-time requirement. It's also a run-time +2.12.0.1 or later. It's a build-time requirement. It's also a run-time requirement if you link against the shared version of the skalibs library.
  • Optionally: nsss @@ -108,7 +108,7 @@ you use the --enable-nsss option to configure; but you would only do that if you're replacing nsswitch on your whole system, and most people are not.
  • Optionally: execline -version 2.9.0.0 or later. It's a only a run-time requirement, and only +version 2.9.0.1 or later. It's a only a run-time requirement, and only if your mdev.conf file contains +, - or & command directives.
  • @@ -124,7 +124,7 @@ if your mdev.conf file contains +, - or