Bug 113816 - slocate doesn't exclude /sys or sysfs
Summary: slocate doesn't exclude /sys or sysfs
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: slocate
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Keywords: Patch
Depends On:
Blocks: FC2Blocker
TreeView+ depends on / blocked
 
Reported: 2004-01-18 20:22 UTC by Kaj J. Niemi
Modified: 2014-03-17 02:41 UTC (History)
2 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2004-04-16 09:12:01 UTC


Attachments (Terms of Use)

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 


Note You need to log in before you can comment on or make changes to this bug.