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

Re: Re[2]: Corrupt files when quickly committing...

From: Tankko <tankko_at_gmail.com>
Date: 2006-07-03 16:42:42 CEST

Thanks for all your help, but I think this is a bug in my code having
to do with how I opened the files. CreateFile() is a monstrosity of
options.

On 6/30/06, jason@subversus.org <jason@subversus.org> wrote:
> No, I meant a flag. ;-) CreateFile accepts a flag that tells it to not
> store data in the OS cache. I just don't recall what the name of the flag
> is.
>
> I believe you can also use FlushFileBuffers against a CreateFile file handle
> which will not only flush the buffers, but also the file metadata.
>
> -----Original Message-----
> From: Fernando P. Nájera Cano [mailto:tortoisesvn@fernandonajera.com]
> Sent: Friday, June 30, 2006 12:53 PM
> To: jason@subversus.org
> Subject: Re[2]: Corrupt files when quickly committing...
>
> Estimado jason,
>
> Con fecha viernes, 30 de junio de 2006, 1:21:44, escribió:
>
> jso> The reason I asked was because it sounds like the operating system
> jso> may be buffering the file output. Because of this, you can
> jso> sometimes get some odd results. I believe that you can force
> jso> semi-asynchronous behavior through the use of flags to force the
> jso> files to be written to the hard drive (I don't recall the flag name(s)
> off the top of my head).
>
> Like C fflush()? Although it is not a flag but a function...
>
> Best regards,
>
> Fernando Najera
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
> For additional commands, e-mail: users-help@tortoisesvn.tigris.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
> For additional commands, e-mail: users-help@tortoisesvn.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Mon Jul 3 16:42:57 2006

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