[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Open file handles of TSVNCache prevent deletion of directories

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-05-22 17:37:19 CEST

Simon.Lux@etas.de wrote:
> Hi,
> TSVNCache keeps open file handles to directories that do not contain any
> file that is under version control of SVN. Thus the directories can not be
> deleted.

That's how the cache works: it keeps a directory watcher handle open to
monitor file system changes. Without this, it wouldn't know when to
check the status again and would always be out-of-date.

> The open handles also prevent the dismounting of e.g. TrueCrypt images.

Just tried it, and I can confirm this. But that's because TrueCrypt
doesn't send the WM_DEVICECHANGE message with the DBT_DEVICEQUERYREMOVE
param. If it would do that (windows does when you try to unmount e.g. a
flashdrive), then the cache would close all handles it has on that drive
and return 'ok'. That message is used to ask all programs which might
have open handles on that drive if it's ok to unmount it - if programs
don't get that message, how should they know that they should close open
handles they have/use?

You may report this to the TrueCrypt people...

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon May 22 17:37:35 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.