Bug 129339

Summary: updatedb walks on netpaths
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Jan Engelhardt <jengelh>
Component: BasesystemAssignee: Andreas Schwab <schwab>
Status: VERIFIED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: RC 4   
Target Milestone: ---   
Hardware: x86   
OS: Linux   
Whiteboard:
Found By: Beta-Customer Services Priority: 1000
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jan Engelhardt 2005-10-19 11:58:02 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.
Comment 1 Andreas Schwab 2005-10-19 12:24:35 UTC
tmpfs should still be scanned.
Comment 2 Andreas Schwab 2005-10-19 12:42:20 UTC
Fixed.
Comment 3 Jan Engelhardt 2005-10-20 06:33:35 UTC
Where do I change that? I need it now otherwise it will retraverse all the mounts to internal ftp servers again in 24h.
Comment 4 Andreas Schwab 2005-10-20 08:12:52 UTC
/etc/sysconfig/locate
Comment 5 Jan Engelhardt 2006-07-15 09:35:10 UTC
What about the new 9pfs? Please add if not yet included.
Comment 6 Andreas Schwab 2006-07-24 12:43:08 UTC
Fixed.
Comment 7 Jan Engelhardt 2008-07-16 17:36:49 UTC
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?
Comment 8 Wolfgang Wilde 2008-07-21 13:40:56 UTC
On my OpenSUSE 11.0 it now scans automounted NFS paths. Looks like local-file detection is not working anymore in 11.0(?).
Comment 9 Andreas Schwab 2008-07-21 13:56:25 UTC

*** This bug has been marked as a duplicate of bug 333296 ***