Bug 113816

Summary: slocate doesn't exclude /sys or sysfs
Product: [Retired] Red Hat Raw Hide Reporter: Kaj J. Niemi <kajtzu>
Component: slocateAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: nphilipp, rvokal
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-04-16 09:12:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 114961    

Description Kaj J. Niemi 2004-01-18 20:22:38 UTC
Description of problem:
It would be nice if slocate would exclude sysfs, usbdevfs filesystems
by default. I guess adding them to /etc/cron.daily/slocate.cron is
enough since /etc/updatedb.conf doesn't seem to be in use.

New directories to exclude would be /sys and /udev I think.

Version-Release number of selected component (if applicable):
2.6.0-10

Thanks :)

Comment 1 Miloslav Trmac 2004-01-19 18:42:52 UTC
Triage->Easyfix

Comment 2 Kaj J. Niemi 2004-02-18 17:42:47 UTC
Trivial diff to slocate.cron below:

--- slocate.cron.old    2004-02-18 19:45:51.121171896 +0200
+++ slocate.cron        2004-02-18 19:46:35.282831132 +0200
@@ -1,3 +1,3 @@
 #!/bin/sh
 renice +19 -p $$ >/dev/null 2>&1
-/usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts" -e
"/tmp,/var/tmp,/usr/tmp,/afs,/net"
+/usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts,sysfs,usbdevfs" -e
"/tmp,/var/tmp,/usr/tmp,/afs,/net,/udev"



Comment 3 Kaj J. Niemi 2004-03-26 20:44:31 UTC
I guess this one could be considered as nice to have for FC2 and
linked to bug #114963? Thanks.

Comment 4 Karsten Hopp 2004-04-16 09:12:01 UTC
fixed in slocate-2.7-9