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

Re: FAT32 svn errors

From: D.J. Heap <djheap_at_dhiprovo.com>
Date: 2003-04-15 17:09:38 CEST

>>I don't know whether this is something that should be fixed in APR or
in
>>svn_io_file_rename.
>>
>>
>
>Hmm. Looking at the code, APR is working correctly. So it seems like
>we're trying to rename over a file that we still have a handle to. I
>dunno why that would work in NTFS but not on FAT.

These are similar to the errors I was getting a while ago -- my setup
was Subversion 0.18 (I think), WinXP SP1 on a dual processor machine
with NTFS. It was fairly sporadic and I could only recreate it on my
dual processor machine. Using APR's code, I could not recreate the
problem in a test program, but I found that if I tweaked APR to use the
Win95 code block (Delete then MoveFile, instead of MoveFileEx) the
problem went away. It would also go away if I made a call to Sleep(1)
right before the MoveFileEx.

Since deleting or sleeping solved it for me at the time, I had ruled out
file handles being left open. My situation *was* slightly different,
though, in that I was getting 'access denied' errors, not 'handle in use
by another process', but that could be because of the different
filesystems, and I am 100% positive it was not a security problem.

In any case, I am now using Subversion 0.20.1 (and have gone back to the
original APR code) and I no longer have the problem, so haven't looked
into it any more.

It seemed to me like there was some fishy behavior in MoveFileEx, but I
could never prove it in a test setup.

DJ

**********************************************************************
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this email
in error please notify the system manager.

This footnote also confirms that this email message has been
swept by MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Apr 15 17:10:31 2003

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

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