This is the mail archive of the
cygwin
mailing list for the Cygwin project.
ar 'unable to rename... Invalid cross-device link'
- From: Matthew Woehlke <mw_triad at users dot sourceforge dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 06 Feb 2007 16:38:37 -0600
- Subject: ar 'unable to rename... Invalid cross-device link'
...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()?
--
Matthew
HIPPOS feel unacknowledged. HIPPOS get angry.
> PRAISE HIPPOS
HIPPOS seem somewhat placated.
--
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/