delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/03/22:42:00

X-Spam-Check-By: sourceware.org
Message-ID: <44824865.6030707@cygwin.com>
Date: Sat, 03 Jun 2006 22:41:41 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051223 Fedora/1.5-0.2.fc4.remi Thunderbird/1.5 Mnenhy/0.7.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: mv does copy instead of rename
References: <1149361203 DOT 19613 DOT ezmlm AT cygwin DOT com> <200606032223 DOT k53MNS0f019743 AT sd DOT skydive1 DOT com>
In-Reply-To: <200606032223.k53MNS0f019743@sd.skydive1.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

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/

- Raw text -


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