public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* mv does copy instead of rename
       [not found] <1149361203.19613.ezmlm@cygwin.com>
@ 2006-06-03 23:10 ` Richard Foulk
  2006-06-04  6:51   ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Foulk @ 2006-06-03 23:10 UTC (permalink / raw)
  To: cygwin

In an Active Directory environment Windows Explorer was refusing to
rename a directory, presumably because the directory was open by
another process.

On trying mv under Cygwin to rename the directory, mv seemed to just
hang.  It was a large directory and mv was actually copying the files
to the new named directory (on the same partition.)

Does this seem like appropriate behaviour?  It was certainly unexpected.

I'm pretty sure mv is never supposed to do this on Unix.


Richard

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mv does copy instead of rename
  2006-06-03 23:10 ` mv does copy instead of rename Richard Foulk
@ 2006-06-04  6:51   ` Larry Hall (Cygwin)
  0 siblings, 0 replies; 2+ messages in thread
From: Larry Hall (Cygwin) @ 2006-06-04  6:51 UTC (permalink / raw)
  To: cygwin

Richard Foulk wrote:
> In an Active Directory environment Windows Explorer was refusing to
> rename a directory, presumably because the directory was open by
> another process.


Why are you presuming this?  Didn't Windows report why this was not being
done?


> On trying mv under Cygwin to rename the directory, mv seemed to just
> hang.  It was a large directory and mv was actually copying the files
> to the new named directory (on the same partition.)
> 
> Does this seem like appropriate behaviour?  It was certainly unexpected.


Well, if Windows can't tell you why it couldn't move the directory, Cygwin,
which relies on Windows for it's functionality, is probably not going to be
able to out-do Windows in this regard.  'mv' may have misinterpreted Window's
"confusion" here as a cross-device move, which is implemented as a copy
followed by a remove of the original directory.  But you'd have to investigate
it to know for sure.


> I'm pretty sure mv is never supposed to do this on Unix.


Depends on the situation, as I noted above.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-04  2:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1149361203.19613.ezmlm@cygwin.com>
2006-06-03 23:10 ` mv does copy instead of rename Richard Foulk
2006-06-04  6:51   ` Larry Hall (Cygwin)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).