module-init-tools 0.9.3

module-init-tools 0.9.3

Post by Rusty Russel » Wed, 11 Dec 2002 09:10:08



Hi all,

        module-init-tools 0.9.3 and the associated RPM
modutils-2.4.21-7.src.rpm are out.

        http://www.[CC].kernel.org/pub/linux/kernel/people/rusty/modules/

This includes Roger Luethi's fix to the RPM which avoids screwing up
the old symlinks.

0.9.3 Version
        Fixes modprobe -r ordering (Thanks to Jim Radford's report)
        Extra rmmod options implemented (Thanks to David Brownell)

0.9.2 Version
        insmod now correctly ignores old options (Petr Vandrovec's bug report)
        depmod now generates modules.ccwmap (Arnd Bergmann's implementation)
        modprobe -r implemented (Jim Radford's implementation)

Please continue to send reports and patches!
Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. module-init-tools 0.9.3, rmmod modules with '-'

Hi Rusty,

It seems we cannot unload modules if they have a '-' in their name.
filename2modname() in rmmod.c converts a '-' in the filename
to '_'. Why? Are dashes not allowed as part of module names?

For eg: (kernel 2.5.52/module-init-tools 0.9.3)



Module                  Size  Used by
probe-test               943  0

probe-test 943 0

module-init-tools version 0.9.3

ERROR: Module probe_test does not exist in /proc/modules
                   ^note this

Editing filename2modname() to remove this special test for
'-' seems to fix it. But, this is done explicitly, so
I wonder if there is a deeper meaning to this. Can you
please take a look and explain?

Thanks,
Vamsi.
--
Vamsi Krishna S.
Linux Technology Center,
IBM Software Lab, Bangalore.
Ph: +91 80 5044959

--
--- rmmod-old.c 2002-12-13 21:11:57.000000000 +0530

        else
                afterslash++;

-       /* stop at first . */
+       /* Convert to underscores, stop at first . */
        for (i = 0; afterslash[i] && afterslash[i] != '.'; i++) {
-               modname[i] = afterslash[i];
+               if (afterslash[i] == '-')
+                       modname[i] = '_';
+               else
+                       modname[i] = afterslash[i];
        }
        modname[i] = '\0';
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Disabeling write-cache on an ide-harddisk

3. Patch?: module-init-tools/modprobe.c - use modules.dep

4. Linux SLEUTHS! HELP!

5. module-init-tools and chained aliases

6. Can LinuxPPC 2000 Q4 be installed online, or do I need CD?

7. fix module-init-tools ver_linux problem.

8. Procmail, Solaris 2.4, and defunct processes...

9. module-init-tools 0.9.5

10. module-init-tools 0.9.6

11. 2.5 module-init-tools/mk_initrd problems

12. module-init-tools 0.9-alpha

13. module-init-tools vs. mkinitrd