FS#14714 - [mlocate] Add more excludes to /etc/updatedb.conf

Attached to Project: Arch Linux
Opened by Gerardo Exequiel Pozzi (djgera) - Thursday, 14 May 2009, 02:24 GMT
Last edited by Allan McRae (Allan) - Saturday, 01 August 2009, 09:41 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To James Rayner (iphitus)
Allan McRae (Allan)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description: The current config of mlocate index many filesystem that by default should not be indexed like sysfs @ /sys, devpts @ /dev/pts ramfs @ /dev, and others. Also should not index bind mounts (this is debatable)

The current config is:

PRUNEPATHS="/mnt /media /tmp /var/tmp /usr/tmp /var/spool /var/cache"

PRUNEFS="nfs nfs4 smbfs cifs ncpfs afs proc autofs auto iso9660 coda ftpfs sshfs shfs"


My proposed config looks:

# PRUNE_BIND_MOUNTS="yes"

PRUNEPATHS="/media /mnt /tmp /var/tmp /var/cache /var/lock /var/run /var/spool"

PRUNEFS="afs auto autofs binfmt_misc cifs coda configfs cramfs debugfs devpts ftpfs iso9660 mqueue ncpfs nfs nfs4 proc ramfs securityfs shfs smbfs sshfs sysfs tmpfs udf usbfs"

This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 01 August 2009, 09:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  mlocate-0.22-2
Comment by Glenn Matthys (RedShift) - Sunday, 17 May 2009, 08:06 GMT
Why should sysfs, dev, etc... be excluded? You can't know what the user is searching, what if he remembers some name from /sys but doesn't know what subdirectory it is in?
Comment by Gerardo Exequiel Pozzi (djgera) - Sunday, 17 May 2009, 11:14 GMT
For the same reason that /proc is actually excluded, since theses are directories exported/related by kernel dynamically, and just for that.

For these purposes a better solution is find.

Loading...