Max Reitz 39411cf3c3 block/raw-posix: Fix preallocating write() loop
write() may write less bytes than requested; in this case, the number of
bytes written is returned. This is the byte count we should be
subtracting from the number of bytes still to be written, and not the
byte count we requested to write.

Reported-by: László Érsek <lersek@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2014-11-18 12:08:59 +01:00
..
2014-11-03 11:41:48 +00:00
2014-11-03 18:34:09 +00:00
2014-10-20 13:41:26 +02:00
2014-11-03 11:41:47 +00:00
2014-08-15 15:07:14 +02:00
2014-08-15 15:07:14 +02:00