X-Spam-Check-By: sourceware.org Date: Fri, 12 Jan 2007 15:42:49 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Snapshot speed on managing files Message-ID: <20070112144249.GA12610@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 09:24, Lev Bishop wrote: > On 1/12/07, Corinna Vinschen wrote: > > >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, I'm sure you thought about this already, but I thought I'd > check. Does this patch make sure to move the file to the recycle bin > on the same filesystem as the original file? Yes. See syscalls.cc, function unlink_nt and function try_to_bin. > Does it do something to > limit the number of files in a single subdirectory of the recycle bin? No, but 99% of the files are deleted immediately anyway. Only the files in use by another application will hang around until they are not used anymore. After all, this is the unlink function. 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/