On Sunday 14 February 2010 04:14:01 Junio C Hamano wrote:
There's a slight problem with that code (I tried to finish last
night's attempt but got stuck on this):
The create_tmpfile() and move_temp_to_file() duo goes to some lengths
to ensure that the file is created in the same directory that we want
it to end up in. However, in the block-based scheme, you cannot know
which directory this will be before you have already written the
entire output.
So again I guess there are a few possible solutions:
* Try the cross-directory rename anyway, but if it doesn't work,
copy&unlink. This of course means that you may write the same
object over network twice.
* Declare that keeping the memory usage near what it is today (the
full output buffer plus a constant) is okay.
* Give up and stick with Dmitry's patch :-)
--
Thomas Rast
trast@{inf,student}.ethz.ch
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html