delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/16/06:53:08

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 16 Apr 2010 12:52:49 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: rsync: rename .file.JVPk8f -> file: Device or resource busy (16)
Message-ID: <20100416105249.GR8556@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <o2ta9a39a211004142214mfed097abv98beb16fb7db1bfd AT mail DOT gmail DOT com> <20100415084927 DOT GB7865 AT calimero DOT vinschen DOT de> <y2ha9a39a211004160213zd7424075wa8ccc2182b0f20fc AT mail DOT gmail DOT com> <20100416094519 DOT GO8556 AT calimero DOT vinschen DOT de> <u2ma9a39a211004160333yb81be21dy16b3a4354648cbdd AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <u2ma9a39a211004160333yb81be21dy16b3a4354648cbdd@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 Apr 16 12:33, Fr?d?ric Bron wrote:
> > Ok, so you're admin.  I assume that `id' lists the administrators
> > group in your supplementary group list?
> 
> true
> 
> > Not really.  So, with the above permissions, rsync fails but mv works,
> > right?  What's important when using mv is to mv the file within the
> > same filesystem.  Rsync does not fail to copy the file to the USB
> > stick.  It fails when trying to rename the copied file on the USB stick
> > from its temporary name (.file.foo) to the desired target name.  This
> > renaming is what we have to check for.  So, what das mv say when you
> > try to just rename the file?  What if you cp the file to the USB stick
> > and then try to mv it to another name there?
> works perfectly fine.
> 
> > Can you please create an strace rsyncing just this single file with
> > the failing permissions?
> 
> Log file is attached.
> In fact I saw that even with full control to my-self on local hard
> drive it fails sometimes so this was a bad idea.
> 
> > And please add the output of `cacls the_file'.  It's more exact to
> > show the ACL than the GUI.
> G:\Sauvegarde\Documents\Fred\bin\.pdfbook.exe.w6rU9f Tout le monde:F
> 
> "Tout le monde" in French means Everyone en English!

I actually meant the output of cacls for the file on your local disk :)

Anyway, the strace output shows that a sharing violation occurs.  There's
another process accessing the file, and that other process opened the
file with one of the sharing flags, probably FILE_SHARE_DELETE, not set.

I assume that's your virus scanner.  In theory I would shrug that away
as a BLODA problem, but I have one or two ideas how to fix this problem.
It might help in a couple of cases where BLODAs are involved.

May I send you a link to a test Cygwin DLL via PM?


Corinna

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

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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