X-Spam-Check-By: sourceware.org Message-ID: <44B4EAFE.1050509@byu.net> Date: Wed, 12 Jul 2006 06:28:46 -0600 From: Eric Blake User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Find working improperly causes updatedb to take forever References: <44B460CC DOT 49C960A1 AT yahoo DOT com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Igor Peshansky on 7/11/2006 10:19 PM: > As for "-fstype proc" not matching /proc, that is probably a real bug, > though it's unclear whether the bug is in findutils or Cygwin. See my earlier email - the information that cygwin provides in getmntent is insufficient, so findutils thinks /proc is in the filesystem "unknown". As it is, the gnulib implementation of mountlist.c could probably be improved to be taught a few things about cygwin. I've taught stat, as part of coreutils, a little more about decoding mount points; but have not tried pushing that back upstream into gnulib. > Basically, findutils reads through the mount table entries, and expects > all filesystems to be there (including /proc, etc). Under Cygwin, /proc > doesn't appear as a separate mount table entry, and thus is missed by > findutils. Depending on whether POSIX mandates that /proc appear in the > mount table or not, either Cygwin or findutils needs to be fixed. POSIX does not specify mount tables. That's not to say that cygwin's getmntent should not strive to be useful, like linux's; but there is no standard to base it on. > Since > findutils uses GNUlib's read_file_system_list(), it's also possible that > the fix needs to be made there. > > For more info, see the findutils source (find/fstype.c is the most > relevant source file, I believe). As a workaround, you might want to add > /proc to PRUNEPATHS. I don't use updatedb enough myself; but it looks like when I do my next release of findutils, I will have to change the default PRUNEPATHS and PRUNEFS to match the cygwin situation; updatedb is likely very useless inside of /proc. - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEtOr984KuGfSFAYARAiv+AJwO4TScm4ZJDCo8a1m0HRbrBygOTwCdH+SO 1JVN4sAF+Y+YLJ4ByL7B4gY= =66pU -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/