delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/20/01:15:21

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <33536584.post@talk.nabble.com>
Date: Mon, 19 Mar 2012 22:14:36 -0700 (PDT)
From: leoslists <leoslists AT letterboxes DOT org>
To: cygwin AT cygwin DOT com
Subject: find: File system loop detected problem in find and locate
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Hi there

I'm trying to use locate and find. When I issue

    find / -xdev -name "*hallo*"

I get the warning 

    find: File system loop detected; `/c/cygwin' is part of the same file
system loop as `/'.

It is important to note, that I have mounted the C: drive at /c. After
reading some Cygwin posts I hoped that `-xdev' would solve this, but it
didn't...

The next thing I tried was pruning the Cygwin dir:

    find / -wholename /c/cygwin -prune -o -name "*hallo*"

But I still get the error message.

Any ideas how I can prevent the loop, but still do the find from root? (I
want to do the find from root, because inside locate, this determines the
paths written to the locate database.) 

Any help appreciated, Leo

-- 
View this message in context: http://old.nabble.com/find%3A-File-system-loop-detected-problem-in-find-and-locate-tp33536584p33536584.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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