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 - 5:57 am

Am 4/20/2010 14:42, schrieb Sebastian Schuberth:

Sure, but René meant the opposite case: When fewer bytes than requested
were written, then you shouldn't retry to write more! That is, you should
exit the loop when write(fd, buf, n) does not return n.

I still find your code unnecessarily hard to read. In particular, you
should extract the non-problematic case out of the loop. If you followed
my suggestion elsewhere in the thread, you wouldn't have to write any
conditionals that 'break' out of a loop.

-- 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 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 ..., Johannes Sixt, (Tue Apr 20, 5:57 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)