You are not logged in.
Pages: 1
About rlocate
rlocate for Linux (2.6 Kernel)
Released January 27, 2005
Copyright (c) 2004,2005 Rasto Levrinc
Based on slocate by Kevin Lindsayrlocate is an implementation of the ``locate'' command that is always up-to-date. The database that the original locate uses is usually updated only once a day, so newer files cannot be located right away. The behavior of rlocate is the same as slocate, but it also maintains a diff database that gets updated whenever a new file is created. This is accomplished with rlocate kernel module and daemon. The rlocate kernel module can be compiled only with Linux 2.6 kernels.
http://sourceforge.net/docman/display_d … _id=129555
i used to use this on my gentoo, it worked great, with no overhead. it's be cool to have it on arch, since imho it only has advantages when compared to slocate...
what goes up must come down
Offline
the cool thing about this is that one could effectively use grep on those files and have the same functionality that beagle provides only much simpler & better
from a coders perspective anyway... Imagine the cool scripts one could make in bash with this
KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein
Offline
Working on it now. The build is not exactly package-friendly, so some patching is required.
Watch this space.
Offline
Working on it now. The build is not exactly package-friendly, so some patching is required.
Watch this space.
cool ! eagerly waiting then... thanks for such reactivity, tomk !
what goes up must come down
Offline
Interesting. I do wonder what kind of effect it has on write performance though.
Offline
You could look at mlocate as an alternative: a simpler way to meet similar needs.
Mortuus in anima, curam gero cutis
Offline
works great here, many many thanks tomk !!
what goes up must come down
Offline
Don't mention it.
I see it's got 5 votes already - if that pace keeps up, we could have this in community in about a week.
Offline
cool then ! 8)
a good and convenient rlocate tool is the KDE I/O Slave.
very handy !
*edit*
oh, motyR already worked on kio-locate
what goes up must come down
Offline
just one last thing : it only seems to work for root, though my user is part of the rlocate group... any suggestions ?
what goes up must come down
Offline
Did you log out and in again, after adding yourself to the group?
Offline
i didn't. my mistake. that's one more thing i learnt tonight. once again, thank you tomk !
what goes up must come down
Offline
is it incompatible with kernel26-beyond ? i get
# modprobe rlocate
FATAL: Error inserting rlocate (/lib/modules/2.6.16-beyond/misc/rlocate.ko): Invalid module format
here's my modified PKGBUILD :
# Contributor: Tom K <tomk>
pkgname=rlocate-mod
pkgver=0.5.1
pkgrel=1
pkgdesc="The rlocate kernel module, for Arch kernel26beyond"
depends=('glibc' 'kernel26beyond')
conflicts=('slocate')
source=(http://dl.sourceforge.net/sourceforge/rlocate/rlocate-$pkgver.tar.gz)
md5sums=('618dc98cd9c13468e8b8e1ca5f0eabbc')
url="http://rlocate.sourceforge.net/"
license="GPL"
install=$pkgname.install
_kernver=2.6.16-beyond
build() {
cd $startdir/src/rlocate-$pkgver
./configure --with-kernel=/lib/modules/$_kernver/build
--with-moduledir=/lib/modules/$_kernver/misc
cd src/rlocate-module
make || return 1
install -Dm755 rlocate.ko $startdir/pkg/lib/modules/$_kernver/misc/rlocate.ko
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/$pkgname.install
}
what am i doing wrong ?
what goes up must come down
Offline
Works fine here with beyond.
Did you download the tarball from the AUR, or just the PKGBUILD? There's an install script in the tarball, which is required.
For a quick fix, try
depmod -a
as root.
Offline
i downloaded the tarball, sorry i didn't notice the install script...
it works now.
thanks again tomk ! i won't bother you anymore on that one...
what goes up must come down
Offline
I cannot get rlocate working. I used aurbuild to make rlocate and rlocate-mod packages and install them. I did try also downloading tarballs, makepkg and pacman -A. I had to change rlocate-mod PKGBUILD file a bit:
_kernver=2.6.16-ARCH --> _kernver=2.6.17-ARCH
$ sudo modprobe rlocate
FATAL: Error inserting rlocate (/lib/modules/2.6.17-ARCH/misc/rlocate.ko): Invalid argument
I tested sudo depmod -a and it does not report anything and wont help to sudo modprobe rlocate
Have I missed something?
$ pQ kernel26
kernel26 2.6.17.11-1
For debugging; strace prints following: rlocate_error.txt
Offline
You probably have the capability module already loaded. Just unload it:
modprobe -r capability
and try again.
Offline
After upgrading to 2.6.18-4 kernel rlocate-mod crashes to the configure check list. It worked with 2.6.17 kernel.
Need help with kernel version 0.0.0
checking for directory with kernel source... /lib/modules/2.6.18-ARCH/build
checking for kernel version... 0.0.0
configure: error: *** rlocate needs kernel 2.6 to work
make: *** No targets specified and no makefile found. Stop.
==> ERROR: Build Failed. Aborting...
Offline
There's a new release out. Change pkgver to 0.5.3 and you'll be OK.
I'll update it in the AUR shortly.
Offline
thanks
Offline
When run as a user:
cromo@kromka:~$ locate
locate: fatal error: Could not find user database '/var/lib/rlocate/rlocate.db': Permission denied
Works fine when run as root.
Offline
>>>
>>> To use rlocate, add your username to the rlocate group, and add
>>> rlocate to the MODULES and DAEMONS arrays in /etc/rc.conf.
>>>
Offline
Mhmm this is weird, I thought it is no longer needed to add the user to rlocate group, as stated in comments @ PKGBUILD page. Thanks anyway.
Offline
Pages: 1