X-Spam-Check-By: sourceware.org To: cygwin@cygwin.com From: Matthew Woehlke Subject: ar 'unable to rename... Invalid cross-device link' Date: Tue, 06 Feb 2007 16:38:37 -0600 Lines: 21 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com ...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/