You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "B. Wells" <b_...@appleisp.net> on 2006/07/23 04:34:44 UTC

svn_io_file_create() tries to write out empty content

The function svn_io_file_create() in subversion/libsvn_subr/io.c  
always tries to write out the supplied contents using  
svn_io_file_write_full(), even if it is zero bytes in length. This  
typically happens when Subversion is creating empty files for an FSFS  
repository data store.

Is this attempt to write out zero bytes by design to ensure proper  
file creation on certain file systems?

Or could the svn_io_file_create() function skip its call to  
svn_io_file_write_full() when there is really no data to write out?

Thanks in advance,

– Brian Wells

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


Re: svn_io_file_create() tries to write out empty content

Posted by Greg Hudson <gh...@MIT.EDU>.
On Sun, 2006-07-23 at 00:34 -0400, B. Wells wrote:
> Or could the svn_io_file_create() function skip its call to  
> svn_io_file_write_full() when there is really no data to write out?

It could... but I doubt it would save any measurable amount of time.

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