[go: up one dir, main page]

Menu

#9 rlocate will NEVER work with kernels >2.6.24

open
nobody
None
9
2008-04-02
2008-01-30
No

Quite frankly, I didn't understand it, but you might be able to make some sense from this Gentoo report:
http://bugs.gentoo.org/show_bug.cgi?id=207421

Discussion

  • Dâniel Fraga

    Dâniel Fraga - 2008-01-31

    Logged In: YES
    user_id=634287
    Originator: NO

    I'd like to ask if rlocate can't be merged in the kernel so we avoid the need to always reinstall the module. Wouldn't it be much easier? Thanks.

    make -f scripts/Makefile.build obj=/usr/local/src/rlocate-0.5.6/src/rlocate-module
    gcc -Wp,-MD,/usr/local/src/rlocate-0.5.6/src/rlocate-module/.rlocate.o.d -nostdinc -isystem /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -march=k8 -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -fstack-protector -fomit-frame-pointer -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DIRCTL_DEV_MAJOR=254 -DRL_VERSION=\"0.5.6\" -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I ./ -I /lib/modules/2.6.24/build/include/ -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(rlocate)" -D"KBUILD_MODNAME=KBUILD_STR(rlocate)" -c -o /usr/local/src/rlocate-0.5.6/src/rlocate-module/.tmp_rlocate.o /usr/local/src/rlocate-0.5.6/src/rlocate-module/rlocate.c
    /usr/local/src/rlocate-0.5.6/src/rlocate-module/rlocate.c: In function 'init_rlocate':
    /usr/local/src/rlocate-0.5.6/src/rlocate-module/rlocate.c:1046: error: implicit declaration of function 'mod_unreg_security'
    /usr/local/src/rlocate-0.5.6/src/rlocate-module/rlocate.c:1048: error: implicit declaration of function 'unregister_security'
    make[5]: *** [/usr/local/src/rlocate-0.5.6/src/rlocate-module/rlocate.o] Error 1
    make[4]: *** [_module_/usr/local/src/rlocate-0.5.6/src/rlocate-module] Error 2
    make[4]: Leaving directory `/usr/src/linux'
    make[3]: *** [rlocate.o] Error 2
    make[3]: Leaving directory `/usr/local/src/rlocate-0.5.6/src/rlocate-module'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/usr/local/src/rlocate-0.5.6/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/local/src/rlocate-0.5.6'
    make: *** [all] Error 2

     
  • Frank-Ralph Reiser

    Logged In: YES
    user_id=946098
    Originator: NO

    This is just an idea, I'm no kernel programmer and I don't have any insights into the rlocate sources and its mechanisms.
    http://inotify-tools.sourceforge.net/ works with kernel 2.6.24
    Could rlocate use the same interface to the kernel?
    Not sure if that hint is any help at all. Maybe there is even a performance issue connected with this.

     
  • Nobody/Anonymous

    Logged In: NO

    Here is what the kernel people have to say...
    http://bugzilla.kernel.org/show_bug.cgi?id=10193

    Please, do something about this. Distributions are about to remove rlocate, as the current kernel would need to be patched for rlocate to work. If inotify doesn't do the trick, maybe you could help improve it to suit the purpose.
    Thanks!

     
  • Rudi Lippert

    Rudi Lippert - 2008-03-13
    • priority: 5 --> 9
     
  • Rudi Lippert

    Rudi Lippert - 2008-03-13

    Logged In: YES
    user_id=946705
    Originator: YES

    I've had a look at inotify. From what I found out, it would take gigabytes of ram to implement rlocate with inotify.
    I suggest you submit your module as a kernel patch. As its strategy is quite different to inotify, it might be accepted for 2.6.26 or so...

     
  • Rudi Lippert

    Rudi Lippert - 2008-04-02

    Logged In: YES
    user_id=946705
    Originator: YES

    A solution with inotify will not only need lots of memory but also take several minutes to set up all the required watches on startup. If rlocate is to ever work again, the kernel module will have to be merged to the kernel.

    Someone, please do something about this!

     
  • Rudi Lippert

    Rudi Lippert - 2008-04-02
    • summary: 2.6.24 seems to break rlocate completely --> rlocate will NEVER work with kernels >2.6.24
     
  • Rasto Levrinc

    Rasto Levrinc - 2008-06-25

    Logged In: YES
    user_id=1203732
    Originator: NO

    It should be possible to do it like nullfs here http://dazuko.dnsalias.org/wiki/index.php/Downloads

    I don't have much time at the moment, so patches are welcomed.

     

Log in to post a comment.