History log of /external/kmod/tools/modprobe.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b87d01d6ef87e7f717ed8a9221baeee3c60b571d 29-Sep-2015 Laura Abbott <labbott@fedoraproject.org> modprobe: Update error message when path is missing

Currently, modprobe fails with no output by default if the
search paths it tries are missing:

$ modprobe -S notakernel dm-crypt
$
$ modprobe -S notakernel lkjjweiojo
$

This is fairly cryptic and not at all obvious there is a problem
unless the error code is checked or verbose flags are used.
Update the error message to indicate a problem and print out the
directory that failed.
/external/kmod/tools/modprobe.c
655de2751dec5594807cb0a613e80fb48b06bc59 07-Jun-2015 Lucas De Marchi <lucas.demarchi@intel.com> tools: display features in --version

Reviewed-by: Andreas Mohr <andim2@users.sf.net>
/external/kmod/tools/modprobe.c
e2719b32cc5c199b930da9ddaac1996cb141275d 27-Feb-2015 Lucas De Marchi <lucas.demarchi@intel.com> modprobe: stop checking initstate for builtin modules

builtin modules are handled in libkmod by looking at the modules.builtin
index. There's no need to check again for the module's initstate to
decide if it's builtin.
/external/kmod/tools/modprobe.c
f357866d97995e30c0ad623880d28dc527ff6890 02-Jan-2015 Lucas De Marchi <lucas.demarchi@intel.com> Fix includes after change to build-sys

Make the includes be libkmod/libkmod.h for code outside of library. This
fixes the broken build after 1315123 ('build-sys: Don't add libkmod
subdirectory to include path').
/external/kmod/tools/modprobe.c
c2e4286bb98c6bec77575ac0c6f862e7ddf6394f 03-Oct-2014 Lucas De Marchi <lucas.demarchi@intel.com> Reorder and reorganize header files

Let the includes in the following order:

< system headers >
< libkmod >
< tool >
< local headers >
/external/kmod/tools/modprobe.c
74d1df6682e9dab799e6da8ad032f61b15be57d2 03-Oct-2014 Lucas De Marchi <lucas.demarchi@intel.com> Move array implementation to shared directory
/external/kmod/tools/modprobe.c
576dd4393d0deb2f4e050c5d1b96eaafb03bcb2c 03-Oct-2014 Lucas De Marchi <lucas.demarchi@intel.com> Move macro.h to shared directory

It's not really related to libkmod, so move it to a directory in which
we keep common stuff.
/external/kmod/tools/modprobe.c
c010f02030003c64faded49ee277b8903b8feb9f 02-May-2013 Johannes Berg <johannes.berg@intel.com> modprobe: don't check refcount with remove command

The modprobe.d (5) documentation for the "install" command
states that you could specify

install fred /sbin/modprobe barney; /sbin/modprobe --ignore-install fred

This makes some sense, but then the loading of "barney" is
hidden from the user who did only "modprobe fred". Thus,
it seems it should be possible to be able to unload the
"fred" module with "modprobe -r fred" by configuring the
"barney" module to also be removed:

remove fred /sbin/rmmod barney fred

(or similar.)

Make this possible by not checking the refcount when an
unload command was configured.

Reported-by: David Spinadel <david.spinadel@intel.com>
/external/kmod/tools/modprobe.c
1958af88a2078970cc0b4281cdfef16fe54071b6 21-Apr-2013 Lucas De Marchi <lucas.de.marchi@gmail.com> Add format attribute and fix issues

Add __attribute__((format)) to log_filep() and _show() functions, fixing
the bugs they found in the source code.

For functions that receive va_list instead of being variadic functions
we put 0 in the last argument, so at least the string is checked and we
get warnings of -Wformat-nonliteral type. So, it's better than adding a
pragma here to shut up the warning.
/external/kmod/tools/modprobe.c
ace742fa9aee1aec5931d5ee8a51fa9b8f0d94e0 21-Mar-2013 Lucas De Marchi <lucas.de.marchi@gmail.com> modprobe: Fix assertion on --show-depends with bogus config file

Putting something like "alias psmouse deadbeef" is a hackish way to
blacklist a module. While I don't encourage doing so, let's not explode
if we fiund such config files.

A small difference from the behavior of module-init-tools: we exit with
0 instead of 1.
/external/kmod/tools/modprobe.c
e6b0e49b4ea7937a98b16f23d621244ee1a3e588 16-Jan-2013 Lucas De Marchi <lucas.demarchi@profusion.mobi> Update copyright notices
/external/kmod/tools/modprobe.c
7c04aeee40e9cced2656e286b2dc4bfbe8008a9f 06-Nov-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> tools: use program_invocation_short_name provided by libc

Thanks to Dave Reisner for pointing this out.
/external/kmod/tools/modprobe.c
fcb0ce9475509f22031e77456c1075c891cbcd2e 06-Nov-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> tools: share function for logging
/external/kmod/tools/modprobe.c
52a50fe2e548d3a3c112074e9c4e89237c257161 06-Nov-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> tools: share setting up libkmod log

This also fixes a bug in "e6996c5 rmmod: route all messages to syslog if
told to" in which "+ verbose" was removed. Instead of letting verbose
add to kmod_get_log_priority(), let it be similar to the other programs
instead.
/external/kmod/tools/modprobe.c
92aad74925f788097b54a3f45392e7d272c0201b 06-Nov-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> tools: use a single function for logging libkmod output
/external/kmod/tools/modprobe.c
34e06bfb545f7a4cce6773b96b602db8329d4009 06-Nov-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> tools: make usage() messages go to stdout rather than stderr

When user supplied --help/-h, program should output to stdout the usage,
not to stderr. It's the expected behavior, what the user asked for,
not something to log or an error.
/external/kmod/tools/modprobe.c
84341fbe013bca49038174b03e95c2943a8e184c 06-Nov-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> tools: share function to convert prio to string

No change is expected in the final binary since right now only an inline
function is shared. Later we expect to share more code.
/external/kmod/tools/modprobe.c
4a2e20dfb3f94b0c5f0b8269b0dd84974a5dac56 06-Nov-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> tools: share getting program name from argv for all tools
/external/kmod/tools/modprobe.c
d9a2e1550453283ba28e6f6a6ea7bb0f72a062d9 01-Nov-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> modprobe: use ERR() instead of fprintf(stderr, ...)
/external/kmod/tools/modprobe.c
d96ae03bd924f7d6b8911024f0e787ad4a4c876f 01-Nov-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> modprobe: prefix log messages to stderr with modprobe
/external/kmod/tools/modprobe.c
07df56eb2434b04880e3c92be6ab63a4b4c8e4aa 01-Nov-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> modprobe: move log function
/external/kmod/tools/modprobe.c
86cc1f2328d548e28eb18b5e5f4cab7f7190a023 01-Nov-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> modprobe: prefix libkmod messages to stderr with modprobe:

When we are logging to stderr we are previously relying on libkmod
sending it to the default location in case we are not asked to log to
syslog. The problem is that modprobe may be used in scripts that don't
want to log to syslog (since they are not daemons, like scripts to
generate initrd) and then it's difficult to know where the message comes
from.

This patch treats only the messages coming from libkmod.
/external/kmod/tools/modprobe.c
1e947e3c8749e6ce0d80be372de9f5e670bd1802 01-Nov-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> modprobe: use prio_to_str() helper
/external/kmod/tools/modprobe.c
4434d8ba363900e47190f39297ee690485794c1c 01-Nov-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> modprobe: exit in one place
/external/kmod/tools/modprobe.c
c5b37dba8956dd8f82c54b9f97dc5dca07940db5 27-Sep-2012 Dave Reisner <dreisner@archlinux.org> build-sys: Remove --with-rootprefix option

This is a broken option that only leads to misery and incompatabilities
with other systems. Kbuild doesn't come close to supporting directories
other than /lib/modules with several targets simply failing without
hacky fixes. Simply remove the option and all traces of it, as it
doesn't make sense in today's world.
/external/kmod/tools/modprobe.c
36ddee65620f97c34d79815a24c65993e0c84754 17-Aug-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> modprobe: Unconditionally use KMOD_PROBE_APPLY_BLACKLIST_ALIAS_ONLY

This fixes a change in behavior regarding kmod and module-init-tools:
when trying to load a module by alias, we should check if it's
blacklisted, regardless of the command line arguments passed.

This was reported by "Dmitry V. Levin <ldv@altlinux.org>".
/external/kmod/tools/modprobe.c
ccd6afa4f250776b46e0a5eb3e3b64fed700b76a 15-Jun-2012 Lucas De Marchi <lucas.de.marchi@gmail.com> Remove ifdef for building tools not bundled

Current build system do not support to build separate tools anymore, so
just remove the ifdefs.
/external/kmod/tools/modprobe.c
ac78e109c37c2d1a075ee75f48cf86edfc516462 14-Jun-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> tools: rename source files

There's no point anymore in having "kmod-" prefix. This is a historical
thing when we started implementation of these tools.
/external/kmod/tools/modprobe.c