Bug 129339 - updatedb walks on netpaths
Summary: updatedb walks on netpaths
Status: VERIFIED DUPLICATE of bug 333296
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: RC 4
Hardware: x86 Linux
: P5 - None : Normal
Target Milestone: ---
Assignee: Andreas Schwab
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-19 11:58 UTC by Jan Engelhardt
Modified: 2008-12-10 16:05 UTC (History)
0 users

See Also:
Found By: Beta-Customer
Services Priority: 1000
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***