This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Find working improperly causes updatedb to take forever


-----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@byu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]