delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/12/05:25:17

X-Spam-Check-By: sourceware.org
Date: Fri, 12 Jan 2007 11:24:54 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Snapshot speed on managing files
Message-ID: <20070112102454.GA8311@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>
Mime-Version: 1.0
In-Reply-To: <62410.52144.qm@web25001.mail.ukl.yahoo.com>
User-Agent: Mutt/1.4.2.2i
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 Jan 11 13:14, Marco atzeri wrote:
> Hi All,
> I have found non specific info on the faq and
> documentation, so I am wondering if there is 
> any specific "debugging" reason to explain why
> latest snapshots 20070110 (and 04) are substantial 
> slower than 1.5.23-2 on removing multiple files.

FAQ and docs don't refer to snapshots, rather to the release.

Current CVS contains a change which is probably the cause for that.
Before deleting a file, the file is moved to the recycle bin.

The idea is to allow POSIX semantics.  A file which is in use by another
application can be deleted.  However, as long as the file is in use,
it's visible in directory listings.  There are POSIX applications which
treat the existence of the file as a failure in removing the file.  One
step further, there are applications which expect to be able to remove
the parent directory, which is also not possible as long as this file is
still in use.

To overcome this problem the file is moved to the recycle bin in
unlink(2), so that it disappears from it's original directory,
regardless whether it's still in use or not.  I tried to do this as
quick as possible but there's obviously some room for optimization.


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/

- Raw text -


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