X-Spam-Check-By: sourceware.org Date: Fri, 12 Jan 2007 20:31:18 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Snapshot speed on managing files Message-ID: <20070112193118.GA15815@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <62410 DOT 52144 DOT qm AT web25001 DOT mail DOT ukl DOT yahoo DOT com> <20070112102454 DOT GA8311 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i 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 Jan 12 10:34, Brian Ford wrote: > On Fri, 12 Jan 2007, Corinna Vinschen wrote: > > > Current CVS contains a change which is probably the cause for that. > > Before deleting a file, the file is moved to the recycle bin. > > Couldn't we make this conditional only if a "regular" delete fails because > the file is in use? Would it then only penalize deletes of open files? It wouldn't work. The problem is that the delete does not fail. Just the file does not disappear. And if you deleted the file and *then* notice that it didn't disappear, Windows does not allow you to move it anymore. So, either you move it right before deleting, or you're stuck. Two points, though: - P's to speed up the code are TC ;) - If somebody figures out a way to learn if a file has opened handles on it, quick and maybe in native NT code, I'd be most grateful. Corinna -- 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/