Re: [PATCH] Fix checkout of large files to network shares under Windows XP

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Sixt
Date: Tuesday, April 20, 2010 - 1:18 am

Am 4/19/2010 22:43, schrieb René Scharfe:

Thanks for a thorough review. I had the gut feeling that something's wrong
with the code due to its structure, but didn't stare at the code long
enough to notice this.

I suggest to have this structure

	write
	if success or failure is not EINVAL
		return

	do
		reduce size
		if larger than known (presumed?) maximum
			reduce to that maximum
		write
	while not success and failure is EINVAL

	while not failure and exactly reduced size written
		write more

I don't think that we will observe any short writes *after* the size was
reduced, which Albert is concerned about. Somebody who observes the
failure that this works around could instrument the function to see
whether short writes are really a problem.

-- Hannes
--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix checkout of large files to network shares unde ..., Sebastian Schuberth, (Mon Apr 19, 5:45 am)
Re: [PATCH] Fix checkout of large files to network shares ..., Johannes Sixt, (Tue Apr 20, 1:18 am)
Re: [PATCH] Fix checkout of large files to network shares ..., Johannes Schindelin, (Tue Apr 20, 2:15 am)
Re: [PATCH] Fix checkout of large files to network shares ..., Sebastian Schuberth, (Tue Apr 20, 5:42 am)
Re: [PATCH] Fix checkout of large files to network shares ..., Sebastian Schuberth, (Tue Apr 20, 7:21 am)
Re: [PATCH] Fix checkout of large files to network shares ..., Sebastian Schuberth, (Fri Apr 30, 2:08 am)