Date: Wed, 17 Oct 2007 18:15:07 +0200 From: Stefan Esser <se@FreeBSD.org> To: Alfred Perlstein <alfred@freebsd.org> Cc: cvs-src@FreeBSD.org, Ceri Davies <ceri@submonkey.net>, cvs-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/locate/locate updatedb.sh Message-ID: <4716350B.90004@FreeBSD.org> In-Reply-To: <20071017122837.GM31826@elvis.mu.org> References: <200710152209.l9FM9Jv3017150@repoman.freebsd.org> <20071016102013.GE23043@submonkey.net> <4714F06B.7070702@FreeBSD.org> <20071016225906.GK23043@submonkey.net> <20071017122837.GM31826@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Alfred Perlstein wrote: > * Ceri Davies <ceri@submonkey.net> [071016 15:59] wrote: >> While userland can tell if a filesystem is pseudo or not, (see lsvfs), >> I'm not sure that we can reliably tell whether a device is removable or >> not (cf. my camera, USB key, iPod, etc.). > > fstab(5) gives some hints, "noauto" would be a giveaway as well as > value of 0 for 'fs_passno' is also a hint. Hmmm, file systems with noauto could be added to $PRUNEPATHS, I guess. But I'm against too much magic behind the scenes, since that may lead to violation of the POLA. I'll give it a try, anyway ... Other sub-directories exist that should be kept out of the locate db like /var/spool for example. Probably there are many more ... Regards, STefan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4716350B.90004>