Bugzilla – Bug 129339
updatedb walks on netpaths
Last modified: 2008-12-10 16:05:16 UTC
13:52 gwdg-wb04:/home/nop # ps aufwwx|grep find /usr/bin/find / ( -fstype nfs -o -fstype NFS -o -fstype proc -o -fstype afs -o -fstype proc -o -fstype smbfs -o -fstype autofs -o -fstype iso9660 -o -fstype ncpfs -o -fstype coda -o -fstype devpts -o -fstype ftpfs -o -fstype devfs -o -fstype mfs -o -fstype sysfs -o -fstype shfs -o -type d -regex \(^/mnt$\)\|\(^/cdrom$\)\|\(^/tmp$\)\|\(^/usr/tmp$\)\|\(^/var/tmp$\)\|\(^/var/spool$\)\|\(^/proc$\)\|\(^/media$\) ) -prune -o -print0 That's nice and good to skip any network mounts, but it does not account for CIFS. It should preferably skip _all_ of the filesystems that have 'nodev' in /proc/filesystems.
tmpfs should still be scanned.
Fixed.
Where do I change that? I need it now otherwise it will retraverse all the mounts to internal ftp servers again in 24h.
/etc/sysconfig/locate
What about the new 9pfs? Please add if not yet included.
It is probably time again to have a look at this issue. With the advent of FUSE, it gets harder and harder to figure out what could be a network path and which is not. What's your opinion on how to deal with this sort of thing? Maybe scan /proc/mounts and build a whitelist based on it, including all devices with /dev/* in the whitelist, as well as tmpfs and whatever is obviously local?
On my OpenSUSE 11.0 it now scans automounted NFS paths. Looks like local-file detection is not working anymore in 11.0(?).
*** This bug has been marked as a duplicate of bug 333296 ***