Re: Clean up sha1 file writing
- From
- H. Peter Anvin <hpa@zytor.com>
- Date
- Jun 2, 2006, 18:44 UTC
- Message-ID
- <44808710.1080000@zytor.com>
- In-Reply-To
- <Pine.LNX.4.64.0605241145490.5623@g5.osdl.org>
Linus Torvalds wrote:
Show 10 quoted lines
> > On Wed, 24 May 2006, Matthias Lederhofer wrote: > >>> checking for partial writes >> Just out of interest: is this to be safe on any OS or should this >> be checked always? > > Any POSIX-conformant OS/filesystem should always do a full write for a > regular file, unless a serious error happens. >
Actually, at least Linux won't, if the object is larger than 2 GB on a 64-bit system :)
-hpa