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 reports an internal system loop on cygdrive

Hash: SHA1

According to Brian Keener on 1/18/2006 11:20 AM:
> When I attempt to do a find as in:
> BrianK@atl-lt-5783 ~
> $ find / -name "*winrc*" -print
> I get the following:
> find: Filesystem loop detected; `/cygdrive/c/cygwin' has the same device number
> and inode as a directory which is 3 levels higher in the filesystem hierarchy.

Not a bug, but a feature of cygwin 1.5.19.  You can surpress it by using
the -xdev option to find (this makes find not traverse into a virtual
/cygdrive, since it has a different devno, once again limiting your search
to just the actual filesystem subtree under c:\cygwin rather than all
drives and all cygwin virtual files).  Also, -print is implied if you
didn't use any of the other find actions:

find / -xdev -depth -name "*winrc*"

Furthermore, you can try seeing if the error message goes away if find
never changes device number during the traversal (this is achieved by
having a real /cygdrive rather than a virtual one):

$ cd /cygdrive/c/cygwin # assuming, of course, that this is where / is
$ mkdir cygdrive

- --
Life is short - so eat dessert first!

Eric Blake   
volunteer cygwin findutils maintainer
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Thunderbird -


Unsubscribe info:
Problem reports:

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