delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/07/06:30:07

X-Spam-Check-By: sourceware.org
Date: Wed, 7 Feb 2007 12:29:43 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ar 'unable to rename... Invalid cross-device link'
Message-ID: <20070207112943.GL27843@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <eqb01e$rr2$1 AT sea DOT gmane DOT org> <20070207105545 DOT GJ27843 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
In-Reply-To: <20070207105545.GJ27843@calimero.vinschen.de>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Feb  7 11:55, Corinna Vinschen wrote:
> On Feb  6 16:38, Matthew Woehlke wrote:
> > ...anyone have any guesses why rename() can't rename files in the same 
> > directory, if the directory is an NFS mount? This causes 'ar' to fail 
> > with the error:
> > 
> > ar: unable to rename 'libcloudobj.a' reason: Invalid cross-device link
> > 
> > I see this in strace with both 'ar' and 'mv':
> > 
> >    46  371094 [main] ar 2588 rename: -1 = rename 
> > (h:\<...path...>\src\objects\stWBl4pj, 
> > h:\<...path...>\src\objects\libcloudobj.a)
> > 
> > This seems to happen when the file already exists, but rename() only 
> > fails on NFS mounts (not local drives). Is this a problem with 'ar', or 
> > Cygwin's rename()?
> 
> Since you're one of the few running NFS, you should also debug the
> situation further.  Apparently the Cygwin rename function fails, but
> from your one-liner strace snippet there's no hint at all what happens.
> The error should have been mentioned a couple of lines before.  You
> should also mention if you use a release version of Cygwin or a
> developer snapshot.  You know http://cygwin.com/problems.html, don't
> you?

I just installed SFU NFS for testing and, here it comes:

  "I can not reproduce rename failing on an NFS share."

Maybe it's something with your permissions.
http://cygwin.com/acronyms/#SHTDI2(*)


Corinna


(*) I know, this is an invalid URL.  What I mean is "Somebody has to
    debug it", but that's not covered by SHTDI.

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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