This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Re: interesting problem with "find"


In article <346874E8.571D@switch.rockwell.com>,
Bartlee A. Anderson <banders@ECD.Rockwell.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@bbc.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@cygnus.com" with one line of text: "help".


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