delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/19/17:08:41

X-Spam-Check-By: sourceware.org
Date: Thu, 19 Jan 2006 17:08:02 -0500
To: cygwin AT cygwin DOT com
Subject: Re: find reports an internal system loop on cygdrive
Message-Id: <VA.000012ac.013d6163@thesoftwaresource.com>
In-Reply-To: <Pine.GSO.4.63.0601191323001.19503@access1.cims.nyu.edu>
References: <VA DOT 000012a7 DOT 00717e61 AT thesoftwaresource DOT com> <43CF9FD8 DOT 5030208 AT byu DOT net> <VA DOT 000012ab DOT 005904c1 AT thesoftwaresource DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0601191323001 DOT 19503 AT access1 DOT cims DOT nyu DOT edu>
From: Brian Keener <bkeenerReMoVeAnTiSpAm AT thesoftwaresource DOT com>
Reply-To: Brian Keener <bkeenerReMoVeAnTiSpAm AT thesoftwaresource DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

Igor Peshansky wrote:
> The real directory is causing find to recurse into the /cygdrive/* 
> hierarchy, and that, in turn, causes the internal loop error.  Note that 
> if you had a c:\bwinrcb file, it would be found with the real /cygdrive 
> directory, and not found without it (using your command).  Also note that 
> in the new versions of Cygwin (probably 1.5.19), /cygdrive will be listed 
> in "/" even if it's a virtual directory. 
>  
> Also, all of what you've described in your message is normal expected 
> behavior.

Okay I think I get it now and just to test you I created a C:\bwinrcb.txt and 
then did the find without the -xdev and with only a virtual cygdrive and sure 
enough the find failed to find the C:\bwinrcb.txt file.  

Then I turned around a created a real cygdrive directory in /cygdrive/c/cygwin 
and tried the following:

BrianK AT atl-lt-5783 ~
$ find / -depth -name "*winrc*"
/cygdrive/c/bwinrcb.txt
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.


BrianK AT atl-lt-5783 ~
$ find / -xdev -depth -name "*winrc*"

BrianK AT atl-lt-5783 ~
$

As you can see in the first one it finds the bwinrcb.txt file but you get the 
internal loop warning.  If I then use the -xdev to prevent the message it of 
course doesn't find the file because I essentially told it now to look there.  
While it makes sense it does sort of seem like a catch 22 and still a bit 
confusing - is the find actually finishing or is it aborting when it finds the 
loop and therefore will never search the entire path it might have access to.

Thanks for the assistance from all and the additional info.  

bk




--
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