This is the mail archive of the mailing list for the Cygwin project. See the Cygwin home page for more information.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: B20: mv deletes files on error (NT)

> -----Original Message-----
> From: Bernard Dautrevaux []
> Sent: Tuesday, March 30, 1999 12:33 PM
> To: ''; cygwin users
> Subject: RE: B20: mv deletes files on error (NT)
> > -----Original Message-----
> > From: Earnie Boyd []
> > Sent: Tuesday, March 30, 1999 1:24 AM
> > To: cygwin users
> > Subject: Re: B20: mv deletes files on error (NT)
> > 
> > 
> > --- "Larry Hall (RFK Partners, Inc)" <> wrote:
> > --8<--
> > > Is there any other point that's been missed?  
> > --8<--
> > 
> > Can you think of others besides mv?  cp is out of the running 
> > as you can't copy
> > a file ontop of itself and in win32 foo and Foo are the same file.
> > 
> Yes, *any* program that looks at inode numbers to determine 
> if two files
> are the same. 
> If I correctly understand this thread it seems the problem is 
> that under
> cygwin Foo and foo have different inode numbers :-<; why not base the
> inode number for a file to its first sector (or cluster) 
> number? (I know
> this is simple in FAT, its in the directory entry, and it should be
> quite readily available under NTFS also).

Ooops... I just realize I was reasonning backwards... mv has the problem
because the inode numbers are the same, not the other way round :-)
Sorry for the consumed bandwidth.

Obviously the problem is that we *have* to adapt any program that expect
the underlying file system to be case sensitive. "mv" was just working
by error before :-(; however it is unfortunate that "mv" delete files
when moving foo to Foo. When the i-node numbers are equal, mv should
just do nothing (after all what you request is already true: "Foo" can
be used to refer to what was once "foo") or change file name case, but
either returning an error (quite puzzling :-() or silently deleting the
file (*very* annoying :-<) is an error in "mv".



Bernard Dautrevaux
Microprocess Ingéniérie
97 bis, rue de Colombes
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85

Want to unsubscribe from this list?
Send a message to