]> git.ipfire.org Git - thirdparty/kmod.git/blobdiff - TODO
testsuite: do not overrid paths inside build
[thirdparty/kmod.git] / TODO
diff --git a/TODO b/TODO
index 096202b9e1f0a4dd1081ac9335c34c1fcdef1062..800ce79a49f97adcbf8891972a10055e67a39c01 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,28 +1,32 @@
 Features:
 =========
 
-* config: configs that do not need to be matched by fnmatch() could be using a
-  vector instead of a list. This way we could search in it by calling
-  bsearch().
+* Add command for signing modules
+   - There is a script to sign modules in kernel tree, but we should be able to
+   sign modules by ourselves
 
-* index: drop the "open(), seek(), read()" implementation and use another one
-  with mmap(). When lookup() is called and the file is not mmaped, mmap it.
+* Remove duplicate symbols in libkmod and tools
+   - Some functions were added both in libkmod and tools like depmod since they
+     couldn't be easily exported. Now we could be sharing there more easily
+     through libkmod-internal, or by creating a shared/ dir in which to put
+     these functions
 
-* create test-mock library to be LD_PRELOAD'ed before running the binaries
-  so we're able to create unit tests
+* Stop using NOFAIL() and fatal()
 
-* Add functions to dump configuration. Create a list with the config items
-  (blacklist, aliases, etc) or just dump to a fd?
+* Protect index against OOM
 
-* Add functions to list all modules known by modules.dep
+* Implement actions in kmod tool like 'insert', 'remove', 'info', etc
 
-* provide 1:1 compatibility with module-init-tools's modprobe
-   - dump configuration
-   - deal with dependency loop
+* testsuite:
+   - when fake delete_module() succeeds, remove its entry from /sys/module
 
-* Add manpages: copy them from module-init-tools and make the necessary changes
+* Stop using system() inside the library and use fork + exec instead
 
-* review API, maybe unify all of these setters:
+* config: configs that do not need to be matched by fnmatch() could be using a
+  vector instead of a list. This way we could search in it by calling
+  bsearch().
+
+* review API, maybe unify all of these getters:
    - kmod_module_version_get_symbol()
    - kmod_module_version_get_crc()
    - kmod_module_symbol_get_symbol()
@@ -33,79 +37,16 @@ Features:
    - kmod_module_symbols_free_list()
    - kmod_module_dependency_symbols_free_list()
 
-* provide modules.archive, a cache file with all modules compressed
-  and a fast access. It's like a tar.gz, but with each entry
-  compressed as opposed to the whole tar compressed, easy to pick
-  individual entries, that is, more like .gz.tar. As zlib compression
-  does not store the uncompressed file size, this could provide
-  it. The file format should be something like:
-     MAGIC-ID
-     DIRECTORY-ENTRY-SIZE
-     DIRECTORY (hash-like format, points to file offset and size)
-     ENTRIES (each is a compressed module)
-  Helper binary to:
-     kmod-archive list
-     kmod-archive add path.ko
-     kmod-archive rm path.ko
-     kmod-archive get path.ko
-     kmod-archive exists path.ko
-
-Known Bugs:
-===========
+* index: drop the "open(), seek(), read()" implementation and use another one
+  with mmap(). When lookup() is called and the file is not mmaped, mmap it.
 
 
 Things to be added/removed in kernel (check what is really needed):
 ===================================================================
 
 * list of currently loaded modules
-
-* module's size should be available under /sys
+       - readdir() in /sys/modules: dir without a 'initstate' file means the
+         module is builtin.
 
 * kill /proc/modules ?
-
-Things that are different from module-init-tools on purpose (!TODO)
-===================================================================
-
-modprobe
---------
-
-* 'modprobe -l' was marked as deprecated and does not exist anymore
-
-* 'modprobe -t' is gone, together with 'modprobe -l'
-
-* there's and additional '--remove-dependencies' flags to kmod-modprobe so we
-  can remove modules depending on that one
-
-* kmod-modprobe doesn't parse configuration files whose name don't end on
-  '.alias'  or '.conf'. modprobe used to warn about these files.
-
-* kmod-modprobe doesn't parse 'config' and 'include' commands in configuration
-  files.
-
-* we don't use <module-dir>/modules.builtin{,.bin} indexes. Instead we rely on
-  module appearing on /sys/modules/* without a initstate file to determine if
-  it is builtin.
-
-* modprobe from m-i-t does not honour softdeps for install commands. E.g.:
-  config:
-
-        install bli "echo bli"
-       install bla "echo bla"
-       softdep bla pre: bli
-
-  With m-i-t, the output of 'modprobe --show-depends bla' will be:
-        install "echo bla"
-
-  While with kmod:
-        install "echo bli"
-        install "echo bla"
-
-depmod
-------
-
-* there's no 'depmod -m' option: legacy modules.*map files are gone
-
-lsmod
------
-
-* information is parsed from /sys instead of /proc/modules
+       - Unlikely, given other tools might depend on it