You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Olaf Hering <ol...@suse.de> on 2005/09/27 14:21:46 UTC

undetected local file corruption during svn export . $tmpdir

A checkout dir on a nfs share had a file with all zeros, likely due to
some crash and a resulting corruption on the nfs server.
However, svn export . $tmpdir did not catch that.
The 'entries' file in .svn does contain a checksum, should svn export
compare the checksum of the exported file against the checksum= content?
It appearently doesnt do that in 1.2.3.

We switched to svn export $url $tmpdir in the meantime, so that part is
solved.

-- 
short story of a lazy sysadmin:
 alias appserv=wotan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: undetected local file corruption during svn export . $tmpdir

Posted by Olaf Hering <ol...@suse.de>.
 On Tue, Sep 27, Max Bowsher wrote:

> First, "svn export ." and "svn export URL" are very different, since 
> exporting from a WC by default exports the WORKING version of the files, 
> not the BASE version.

I'm very well aware of that, and this is not what I'm talking about.

> Regarding the checksumming, my opinion is that svn should not checksum 
> here, because to do so would be a crippling slowdown in many cases. (And 
> spontaneous filesystem corruption ought to be very rare)

It should probably do that for unchanged files. The file in question was
a *.a file.
What is the purpose of the checksum= line in entries?

-- 
short story of a lazy sysadmin:
 alias appserv=wotan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: undetected local file corruption during svn export . $tmpdir

Posted by Max Bowsher <ma...@ukf.net>.
Olaf Hering wrote:
> A checkout dir on a nfs share had a file with all zeros, likely due to
> some crash and a resulting corruption on the nfs server.
> However, svn export . $tmpdir did not catch that.
> The 'entries' file in .svn does contain a checksum, should svn export
> compare the checksum of the exported file against the checksum= content?
> It appearently doesnt do that in 1.2.3.

First, "svn export ." and "svn export URL" are very different, since 
exporting from a WC by default exports the WORKING version of the files, not 
the BASE version.

Regarding the checksumming, my opinion is that svn should not checksum here, 
because to do so would be a crippling slowdown in many cases. (And 
spontaneous filesystem corruption ought to be very rare)

Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org