Re: Clean up sha1 file writing
- From
- Matthias Lederhofer <matled@gmx.net>
- Date
- May 24, 2006, 18:14 UTC
- Message-ID
- <E1Fixs4-0005pD-10@moooo.ath.cx>
- In-Reply-To
- <Pine.LNX.4.64.0605240820560.5623@g5.osdl.org>
> checking for partial writes
Just out of interest: is this to be safe on any OS or should this be checked always?
> + size = write(fd, buf, len);
> + if (!size)
> + return error("file write: disk full");Shouldn't write to a full disk return -1 with ENOSPC?