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 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: <20100415084927 DOT GB7865 AT calimero DOT vinschen DOT de> <20100416094519 DOT GO8556 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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