delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/12/08:29:03

X-Spam-Check-By: sourceware.org
Message-ID: <44B4EAFE.1050509@byu.net>
Date: Wed, 12 Jul 2006 06:28:46 -0600
From: Eric Blake <ebb9 AT byu DOT net>
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> <Pine DOT GSO DOT 4 DOT 63 DOT 0607120003290 DOT 26009 AT access1 DOT cims DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.63.0607120003290.26009@access1.cims.nyu.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019