delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/11/18:07:25

From: cgf AT bbc DOT com (Chris Faylor)
Subject: Re: interesting problem with "find"
11 Nov 1997 18:07:25 -0800 :
Message-ID: <EJI572.66C.cygnus.gnu-win32@bbc.com>
References: <971110155522 DOT 24a00358 AT d0tng DOT fnal DOT gov>
Reply-To: cgf AT bbc DOT com
To: gnu-win32 AT cygnus DOT com

In article <346874E8 DOT 571D AT switch DOT rockwell DOT com>,
Bartlee A. Anderson <banders AT ECD DOT Rockwell DOT COM> wrote:
>I've noticed a similar problem with rm.
>In directories with structure something/yada/yada/other/...
>rm -rf will tell you that you have a circular directory structure and to
>notify your administrator, it is almost certainly corrupt.
>You have to remove from the second yada and then once it's gone, the
>original command will work. Yuck.

I don't think that this is a problem with your directory.  More likely,
this is a problem with cygwin's calculation of inodes.  rm -rf keeps
track of the inodes of directories that it deletes.  If it comes across
a directory with the same inode as one it thinks that it has already deleted,
then it thinks something is wrong.

Since Windows does not support the concept of an inode, cygwin has to
create its own.  It bases the inode on the name of the file.  So, if you
have two directories with the same name, they'll have the same inode.
When rm -r sees these two (different) directories with the same inode,
it complains.

Currently, the only workaround is to delete the lower level subdirectories
by hand.  Sorry.
-- 
http://www.bbc.com/	cgf AT bbc DOT com			"Strange how unreal
VMS=>UNIX Solutions	Boston Business Computing	 the real can be."
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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